Click here to Skip to main content
13,190,405 members (48,809 online)
Rate this:
Please Sign up or sign in to vote.
[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!

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.

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?

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

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 11-Nov-12 1:18am
Updated 12-Nov-12 5:28am
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. :-)
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

Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.171016.2 | Last Updated 14 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100