Sequence contains no elements and Server Error in '/' Application.

Jul 3, 2009 at 2:26 PM

Hello,

 

Sorry, is if is noob question. but still learning how everything works.

Sequence contains no elements

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Sequence contains no elements

Source Error:

Line 36:             this.validator = validator;
Line 37: this.pluginEngine = pluginEngine;
Line 38: this.cache = modules.GetModules<IOxiteCacheModule>().Reverse().First();
Line 39: this.siteService = siteService;
Line 40: this.morePartialViewsRegistry = morePartialViewsRegistry;


 

 

Then, after  refresh.. (I guess because the first one get cached or is database problem. and works after..i only get that error when first starting.)

 

Server Error in '/' Application.

The incoming request does not match any route.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The incoming request does not match any route.

Source Error:

Line 11:             HttpContext.Current.RewritePath(Request.ApplicationPath);
Line 12: IHttpHandler httpHandler = new MvcHttpHandler();
Line 13: httpHandler.ProcessRequest(HttpContext.Current);
Line 14: }
Line 15: }

 

Ive tried a few things..but don't know things well enough, to get it workin... i thought it may have something to do with gobal file.. but no luck.  Also tried to put in url for routes but that din't help either. just get error file not found.

 

I have a install that works... the one before all the refactoring.. so im not sure ive messed something up, In database.. but have tried the SQL script, and attaching it a couple of time. but still the same error.

 

Finally, there was another post here... back in Dec 2008 but there does not seem to be a solution, but it does seem like it has something to do with database.

 

I will try and see if i can work out better how everything works! 

http://www.codeplex.com/oxite/Thread/View.aspx?ThreadId=43076&ANCHOR

 

Could not find anything else on the above problems, on google or on oxite. So im guessing its something stupid ive done. :)

 


 

Coordinator
Jul 3, 2009 at 8:51 PM
I haven't kept Oxite.sln up to date. We do our development in Oxite.Dev.sln. I'll update Oxite.sln tonight so everything will work again.

(sent from WinMo 6.1 phone)


From: Matteh <notifications@codeplex.com>
Sent: Friday, July 03, 2009 7:27 AM
To: Erik Porter <Erik.Porter@microsoft.com>
Subject: Sequence contains no elements and Server Error in '/' Application. [oxite:61413]

From: Matteh

Hello,

Sorry, is if is noob question. but still learning how everything works.

Sequence contains no elements

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Sequence contains no elements

Source Error:

Line 36:             this.validator = validator;
Line 37: this.pluginEngine = pluginEngine;
Line 38: this.cache = modules.GetModules<IOxiteCacheModule>().Reverse().First();
Line 39: this.siteService = siteService;
Line 40: this.morePartialViewsRegistry = morePartialViewsRegistry;


Then, after refresh.. (I guess because the first one get cached or is database problem. and works after..i only get that error when first starting.)

Server Error in '/' Application.

The incoming request does not match any route.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The incoming request does not match any route.

Source Error:

Line 11:             HttpContext.Current.RewritePath(Request.ApplicationPath);
Line 12: IHttpHandler httpHandler = new MvcHttpHandler();
Line 13: httpHandler.ProcessRequest(HttpContext.Current);
Line 14: }
Line 15: }

Ive tried a few things..but don't know things well enough, to get it workin... i thought it may have something to do with gobal file.. but no luck. Also tried to put in url for routes but that din't help either. just get error file not found.

I have a install that works... the one before all the refactoring.. so im not sure ive messed something up, In database.. but have tried the SQL script, and attaching it a couple of time. but still the same error.

Finally, there was another post here... back in Dec 2008 but there does not seem to be a solution, but it does seem like it has something to do with database.

I will try and see if i can work out better how everything works!

http://www.codeplex.com/oxite/Thread/View.aspx?ThreadId=43076&ANCHOR

Could not find anything else on the above problems, on google or on oxite. So im guessing its something stupid ive done. :)


Coordinator
Jul 3, 2009 at 9:11 PM

hhhmmm...replying from my phone sort of sucks.  :)

Get latest and try again.  I Updated Oxite.sln and Oxite.Database.mdf so everything should work now.

Thanks for letting me know.

Jul 3, 2009 at 11:54 PM

thank you,  for fast responce. got it working now!

Yeh, checked both the dev and other sln : 0 even added all the missing classes to the normal one to see if that helped:0

oh, i see the module for the cache in database now too.

Good thing is that, all the digging around i did while trying to fix it over the last couple days helped me learn how everything all fits together:)