Click here to Skip to main content
15,891,704 members
Please Sign up or sign in to vote.
3.67/5 (2 votes)
See more:
Hey all, I have an odd error I need advise on, I installed the latest version of Visual studios professional edition a few days ago, the default project worked fine the first time but ever since then I've had this error every time I run any website, including the default not changed template and a blank hello world website.

Server Error in '/' Application.

Specified argument was out of the range of valid values.
Parameter name: site

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.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: site

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 


[ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: site]
   System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +298

[HttpException (0x80004005): Specified argument was out of the range of valid values.
Parameter name: site]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9873912
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929


Any suggestions? any google searching I did came up with generic errors which weren't related to this problem.

The error happens on all browsers too, although the first time it ran it worked on chrome
Posted
Comments
Abhishek Pant 29-Dec-12 20:35pm    
update your browser and I think your new webservices for vs are not configured correctly
Phoenix234 30-Dec-12 6:08am    
My browser is updated as far as I can tell ( Chrome autoupdates and IE seems to be at the latest version)

How do I configure my web service properly?
Sergey Alexandrovich Kryukov 29-Dec-12 21:40pm    
Whatever it is, it is not related to Visual Studio, not in any sense.

You show some exception trace (your bug is trivial, it could be just empty collection, or you try to access index more then count minus 1), and not code. How can we see what's wrong? Due to the end of the year, my access to your hard drive through a chimney is somewhat limited :-)

—SA
Phoenix234 30-Dec-12 6:13am    
How do I show you more detail, since I'm having problems with this in the first place and haven't given more detail to start it seems logical to assume I don't know how to provide such detail.

The sarcastic comment seems both rude and inappropriate to be seen on a help website.
Sergey Alexandrovich Kryukov 30-Dec-12 13:11pm    
Your attitude is no good. I'm trying to help and you are playing the offended card. Where did you see a single rude word from me. This is you who is negative and impatient. Who will help you after that? Only such patient people as I am.

Yes, you can. The description of the exception suggests it was the exception caused by some source code. You could include a sample of such code in your question. Or do I miss anything?

—SA

One of the tools for logging, a very popular one, is Apache Log4Net: http://logging.apache.org/log4net/[^].

—SA
 
Share this answer
 

In short: Go to Control Panel > Programs > Turn Windows features on or off and enable Internet Information Services.


See: relevant thread on StackOverflow

 
Share this answer
 
The OpenMappedWebConfiguration method is missing the parameter for site. Drop any string in there to fix it such as "my website".
 
Share this answer
 
Comments
Phoenix234 30-Dec-12 6:10am    
I did a search for "OpenMappedWebConfiguration" and nothing came up, Can you be more descriptive in what I'm exactly doing? Last thing I want is to break it more by making a small mistake.

Not to mention if this is happening on ALL new default projects then does that mean its set up wrong entirely?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900