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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
Ray TurnerSenior ConsultantAuthor Commented:
I've never seen this error before.
0
Learn SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

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
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ray TurnerSenior ConsultantAuthor Commented:
Thanks.  I will take a look at that.
0
Ray TurnerSenior ConsultantAuthor Commented:
Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.