• Register
0 votes
57 views

Problem :

I am facing this Kind of Error like::

Specified argument was out of the range of valid values.Parameter name: site

While Debugging any of the Project.

I have also tried after Reinstalling the Visual Studio 2012. But again a same kind of problem I am getting while Debugging it.

My System's Configurations are as below :

  1. Windows 8 : 32-bit
  2. Visual Studio : 2012

Exception is thrown at the time of Showing Web Page as below,

[ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: site]
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +298
[HttpException (0x80004005): Specified argument was out of the range of valid values.
Parameter name: site]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9873912
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254

 

7 5 2
3,870 points

1 Answer

0 votes

Solution :

If using the IIS:

· Go to control panel

· Then to Programs

· After that open or close windows features

· Next tick internet information services

· Then restart the visual studio

If using IIS Express:

Open the 'Add/Remove Programs' from a old control panel and run the repair on IIS Express Or you might go to Control Panel ->> Programs ->> Programs and Features ->> Turn Windows features on or off ->> Internet Information Services and check the checkbox for IIS.

 

9 7 4
38,600 points

Related questions

0 votes
1 answer 37 views
37 views
Problem : I want to add the data as one by one row to my datagridview. But I am facing the following error: "Index was out of range. Must be non-negative and less than the size of the collection parameter name: index" Why am I facing this error ? ... ColumFive = Convert.ToString(sum); string[] row = new string[]{ ColumOne, ColumTwo, ColumThree, ColumFour, ColumFive }; myDataGridView.Rows.Add(row);
asked Dec 4, 2019 alecxe 7.5k points
0 votes
1 answer 72 views
72 views
Problem : I have recently installed a website on my local machine using IIS 7 successfully. But when I tried to deploy it on the live server, I got a following error: "The page cannot be displayed because an internal server error has occurred" Nothing else. Using a same IIS 7 on live and also set to have the Detailed errors in Error Pages module, but still getting a same. What can be the reason?
asked Jan 28 jwilliam 3.9k points
0 votes
1 answer 73 views
73 views
Problem : I am getting bellow error related to datetime the conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value.
asked Nov 7, 2019 peterlaw 6.9k points