Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
1.67/5 (3 votes)
See more: , +
[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


This is the error each time I want to "View in Browser", or run debugging from Visual Studio 2012. Can anyone read out the problem in this stacktrace?
By the way, I have tried to view the site in Page Inspector, the result I get says that no mapping data was returned from the server.

The error itself repeats itself for any project i start in VS2012.
Working on windows 7 64 bit!

EDIT:
Just hit me, I did have some minor fault while installing vs2012. What happened is that during the installation a small time error popped out saying that some component, tool or something named like visual studio 2010 toolkit or something similar can not be found. Some file like vs...04 was missing. Skipped it, install finished and everything seemed to be ok.

EDIT:
Re-started the installation to found out which was the file that was causing the problem. It was vstor40_x64.msi (Visual Studio 2010 Tools for Office Runtime)!
Does this identify as the problem-cause for the stacktrace when trying to debug/view in browser?

EDIT:
About to reinstall VS2012, downloaded the vstor40_x64.exe from microsoft's site, and installed it, all went well for now.

EDIT:
Reinstall did nothing, same problem. I did notice although that the error page states at the bottom:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929
That is for all I know .NET 4! I checked the property page in VS12 and it is set to 4.5. Help me out here :)...
Posted
Updated 12-Nov-12 5:28am
v7
Comments
dsagner 11-Nov-12 8:48am    
The thing is I opened a brand new, blank and unchanged project from scratch, hit ctrl+f5 and same thing happens.
Sergey Alexandrovich Kryukov 12-Nov-12 13:20pm    
No code sample? OK, but then there is nothing to look at. :-)
--SA
dsagner 12-Nov-12 17:41pm    
The thing is that I could only attach the code from the "create new empty VB.NET application" from VS2012. No changes made in a new project what so ever produce this error. I'm dazzled :P!

1 solution

This[^] is how to research a question like this with google. Tons of hits there.
 
Share this answer
 

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