Answered by:
Unable to run a simple webform

Question
-
User1394318050 posted
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
Thursday, May 31, 2018 8:56 AM
Answers
-
User1394318050 posted
Problem solved when I did a complete reset of my new Surface computer.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, July 5, 2018 3:24 PM
All replies
-
User347430248 posted
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.
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
Friday, June 1, 2018 1:04 AM -
User1394318050 posted
I am not passing any value. This is what happens when I start a. new webform project without any content at all.Friday, June 1, 2018 6:10 AM -
User347430248 posted
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
Friday, June 1, 2018 6:14 AM -
User1394318050 posted
The repair did not change anything. Stll the same error message.
IngemarFriday, June 1, 2018 9:22 AM -
User753101303 posted
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.
Friday, June 1, 2018 9:29 AM -
User1394318050 posted
I used IIS Express, could not find IIS. Also, I run as an Administrator but with the same result.
IngemarFriday, June 1, 2018 9:55 AM -
User347430248 posted
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
Tuesday, June 5, 2018 9:08 AM -
User1394318050 posted
I have tried with different browsers.Wednesday, June 6, 2018 11:14 AM -
User753101303 posted
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.
Wednesday, June 6, 2018 11:36 AM -
User1394318050 posted
No change after repair of IIS Express!Sunday, June 17, 2018 8:46 AM -
User1394318050 posted
Problem solved when I did a complete reset of my new Surface computer.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, July 5, 2018 3:24 PM