Visual Studio Error

When I try to run an ASP.Net Web Application I get the following error.  What is the cause of this?  How do I fix?  This is happening with all of my projects.


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) +280

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

 


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2556.0
Ray TurnerSenior ConsultantAsked:
Who is Participating?
 
Siddharth LuckyStudentCommented:
Please follow this link. It has elaborate information on how to manage ur virtual directories by IIS https://msdn.microsoft.com/en-us/library/bb763173.aspx
0
 
Siddharth LuckyStudentCommented:
Hi Ray, as far as I see the values that you are trying to set the variable site are more in size than what it can accommodate. Can you please give me more information on what you are trying to store in that variable.
0
 
Ray TurnerSenior ConsultantAuthor Commented:
This is an ASP.Net application.  Which variable should i be looking fo?
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
Ray TurnerSenior ConsultantAuthor Commented:
I've never seen this error before.
0
 
Siddharth LuckyStudentCommented:
Is there any variable named site in your code
0
 
Ray TurnerSenior ConsultantAuthor Commented:
No
0
 
Ray TurnerSenior ConsultantAuthor Commented:
Where should I see the virtual folder/directory created by IIS Express?
0
 
Ray TurnerSenior ConsultantAuthor Commented:
Thanks.  I will take a look at that.
0
 
Ray TurnerSenior ConsultantAuthor Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.