Working with Visual Studio Community 2017 and a new Surface Book computer. Testing to create a new Project with ASP .NET Web Application and Empty site. Added a Default.aspx page. When debugging, I got the following error message:
[ArgumentOutOfRangeException: Det angivna argumentet hamnade utanför intervallet med giltiga värden.
Parameternamn: site]
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +280
[HttpException (0x80004005): Det angivna argumentet hamnade utanför intervallet med giltiga värden.
Parameternamn: site]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +10043436
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +95
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254
I have a project that works fine on the old computer, but not on the new one.
I try to check the error and find that it is in Swedish language. So I try to translate it in to an English.
ArgumentOutOfRangeException: The specified argument ended outside the range of valid values.
It looks like you are trying to pass any value on your page. Which is outside its valid range.
To solve the issue, Try to pass the valid value within the range.
If then also you get the same error then try to post your code here.
We will try to make a test with it on our side and try to provide you suggestions to solve the issue.
Regards
Deepak
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
It looks like something got corrupted in your Visual Studio.
I suggest you to repair your Visual Studio Application from control panel.
Then again try to create a project and check whether issue is persist or not.
Let us know about your testing result.
We will try to provide further suggestion, If needed.
Regards
Deepak
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
What if you try to select any Web browser to run the project?
Did you got same error or it runs without any issue?
Let us know about your testing result.
It can help us to narrow down the issue.
Also try to check if there any pending updates for windows is available or not.
If there is any then try to install it and again try to reproduce the issue.
Regards
Deepak
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
None
0 Points
9 Posts
Unable to run a simple webform
May 31, 2018 08:56 AM|Ingo40|LINK
Working with Visual Studio Community 2017 and a new Surface Book computer. Testing to create a new Project with ASP .NET Web Application and Empty site. Added a Default.aspx page. When debugging, I got the following error message:
[ArgumentOutOfRangeException: Det angivna argumentet hamnade utanför intervallet med giltiga värden.
Parameternamn: site]
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +280
[HttpException (0x80004005): Det angivna argumentet hamnade utanför intervallet med giltiga värden.
Parameternamn: site]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +10043436
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +95
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254
I have a project that works fine on the old computer, but not on the new one.
Ingemar
Contributor
2990 Points
1210 Posts
Re: Unable to run a simple webform
Jun 01, 2018 01:04 AM|Deepak Panchal|LINK
Hi Ingo40,
I try to check the error and find that it is in Swedish language. So I try to translate it in to an English.
It looks like you are trying to pass any value on your page. Which is outside its valid range.
To solve the issue, Try to pass the valid value within the range.
If then also you get the same error then try to post your code here.
We will try to make a test with it on our side and try to provide you suggestions to solve the issue.
Regards
Deepak
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
None
0 Points
9 Posts
Re: Unable to run a simple webform
Jun 01, 2018 06:10 AM|Ingo40|LINK
Contributor
2990 Points
1210 Posts
Re: Unable to run a simple webform
Jun 01, 2018 06:14 AM|Deepak Panchal|LINK
Hi Ingo40,
It looks like something got corrupted in your Visual Studio.
I suggest you to repair your Visual Studio Application from control panel.
Then again try to create a project and check whether issue is persist or not.
Let us know about your testing result.
We will try to provide further suggestion, If needed.
Regards
Deepak
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
None
0 Points
9 Posts
Re: Unable to run a simple webform
Jun 01, 2018 09:22 AM|Ingo40|LINK
Ingemar
All-Star
48710 Points
18173 Posts
Re: Unable to run a simple webform
Jun 01, 2018 09:29 AM|PatriceSc|LINK
Hi,
You are using IIS or IIS Express ? You tried to launch VS as an admin. AFAIK 0x80004005 is mot often related to a permission issue if I remember.
None
0 Points
9 Posts
Re: Unable to run a simple webform
Jun 01, 2018 09:55 AM|Ingo40|LINK
Ingemar
Contributor
2990 Points
1210 Posts
Re: Unable to run a simple webform
Jun 05, 2018 09:08 AM|Deepak Panchal|LINK
Hi Ingo40,
What if you try to select any Web browser to run the project?
Did you got same error or it runs without any issue?
Let us know about your testing result.
It can help us to narrow down the issue.
Also try to check if there any pending updates for windows is available or not.
If there is any then try to install it and again try to reproduce the issue.
Regards
Deepak
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
None
0 Points
9 Posts
Re: Unable to run a simple webform
Jun 06, 2018 11:14 AM|Ingo40|LINK
All-Star
48710 Points
18173 Posts
Re: Unable to run a simple webform
Jun 06, 2018 11:36 AM|PatriceSc|LINK
Try perhaps https://stackoverflow.com/questions/17772216/specified-argument-was-out-of-the-range-of-valid-values-parameter-name-site which seems the same.
It seems you need to repair the IIS Express installation or maybe to update some registry keys.
None
0 Points
9 Posts
Re: Unable to run a simple webform
Jun 17, 2018 08:46 AM|Ingo40|LINK
None
0 Points
9 Posts
Re: Unable to run a simple webform
Jul 05, 2018 03:24 PM|Ingo40|LINK
Problem solved when I did a complete reset of my new Surface computer.