The specified argument was out of range. Parameter Name: Site

I am using Visual Studio 2015 with a laptop running Windows 10 hp. After I created the asp.net mvc application, create it and run it, I get this error:

The specified argument is out of range. Parameter Name: Site
Description: An unhandled exception occurred during the execution of the current web request
Stack Trace:
[ArgumentOutOfRangeException: The specified argument was out of range. Parameter name: site]
System.Web.HttpRuntime.HostingInit (HostingEnvironmentFlags, hostingFlags, PolicyLevel, policylvel, Exception appDomainCreationException) +560
[HttpException (0x80004005): The specified argument was out of range. Parameter name: site]
System.Web.HttpRuntime.FirstRequestInit (HttpContext context) +765
System.Web.HttpRuntime.EnsureFirstRequestInit (HttpContext context) +95
System.Web.HttpRuntime.ProcessRequestNotificationPrivate (IIS7WorkerReuest wr, HttpContext context) +195

0
source share
1 answer

This solved the problem.

go

  • Control Panel
  • Programs and Features
  • Turn Windows features on or off
  • check Internet Information Services
  • then restart your laptop

It worked for me

I found that answer here

+16
source

Source: https://habr.com/ru/post/1689256/


All Articles