Last post Jul 05, 2018 03:24 PM by Ingo40
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.
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +280
[HttpException (0x80004005): Det angivna argumentet hamnade utanför intervallet med giltiga värden.
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.
Jun 01, 2018 01:04 AM|Deepak Panchal|LINK
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.
Jun 01, 2018 06:10 AM|Ingo40|LINK
Jun 01, 2018 06:14 AM|Deepak Panchal|LINK
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.
Jun 01, 2018 09:22 AM|Ingo40|LINK
Jun 01, 2018 09:29 AM|PatriceSc|LINK
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.
Jun 01, 2018 09:55 AM|Ingo40|LINK
Jun 05, 2018 09:08 AM|Deepak Panchal|LINK
What if you try to select any Web browser to run the project?
Did you got same error or it runs without any issue?
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.
Jun 06, 2018 11:14 AM|Ingo40|LINK
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.
Jun 17, 2018 08:46 AM|Ingo40|LINK
Jul 05, 2018 03:24 PM|Ingo40|LINK
Problem solved when I did a complete reset of my new Surface computer.