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

8/22/2022 - Mon
SOLUTION
Rory Clerkin

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
Starr Duskk

>>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!
ASKER
Starr Duskk

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

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.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Rory Clerkin

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.
ASKER
Starr Duskk

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
Starr Duskk

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
Starr Duskk

Never got it to work, so used a different method.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.