Avatar of Starr Duskk
Starr DuskkFlag for United States of America

asked on 

Local IIS Website Not Running

I have Windows 7 Home Premium.
IIS 7.5

I have a remote website that I want to setup locally to run without an internet connection. Right now I am testing it with an internet connection, however.

I have setup the website on my local drive and published my code to it via Visual Studio 2012 and web copy:
C:\inetpub\wwwroot\RTODemo2013
I added Default.aspx to the Default Documents.
Authentication is: Anonymous Authentication

My application pool is setup framework 4.0 / Integrated / LocalSystem.
my binding is:
RTODemo2013

I type in my browser:
http://localhost/RTODemo2013

I get an error on this line in my web.config:
 <sessionState timeout="720" />

Configuration Error
  Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.

I have no virtual directories set up, nor should I.

What do I need to do to run a local version of the website?

thanks.
Microsoft IIS Web ServerASP.NET.NET Programming

Avatar of undefined
Last Comment
Starr Duskk
SOLUTION
Avatar of Rory Clerkin
Rory Clerkin
Flag of Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Starr Duskk
Starr Duskk
Flag of United States of America image

ASKER

>>you've made quite a few changes to your original post but this should still make sense

Yeah, sorry. Things changed after I added Application Development Features | ASP.NET.

I'll take a look at that. thanks!
Avatar of Starr Duskk
Starr Duskk
Flag of United States of America image

ASKER

I edited it, but it won't let me save the changes. It says access is denied. I am logged in as an administrator.
Avatar of Rory Clerkin
Rory Clerkin
Flag of Ireland image

Yeah, that happens. You need to copy the file somewhere else (desktop?) and make the changes. You then copy it back to the 'etc' folder which will ask you to provide admin rights to copy it into place.
Avatar of Rory Clerkin
Rory Clerkin
Flag of Ireland image

UAC - User Account Control. That's what the feature is called that causes the extra security restrictions. You can turn it off under User Accounts in Control Panel I think.
Avatar of Starr Duskk
Starr Duskk
Flag of United States of America image

ASKER

added to hosts:
127.0.0.1 RTODemo2013

After I added that, when I go to:
http://rtodemo2013/

I get error:
HTTP Error 500.21 - Internal Server Error

Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list

If I go to:
http://localhost/RTODemo2013

I get that same error as before:
I get an error on this line in my web.config:
 <sessionState timeout="720" />

Configuration Error
  Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.
ASKER CERTIFIED SOLUTION
Avatar of Starr Duskk
Starr Duskk
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of Starr Duskk
Starr Duskk
Flag of United States of America image

ASKER

Never got it to work, so used a different method.
.NET Programming
.NET Programming

The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.

137K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo