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.
LVL 2
Starr DuskkASP.NET VB.NET DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Red-KingIT ManagerCommented:
I think your problem might be with how you are using the binding.
When you have the binding entered as you do your URL needs to be;
http://rto.websitebname.com

As you have it, the webserver is looking for a file called rt.websitename.com under the Default Website.

To make this work you will need to edit your hosts file
C:\Windows\System32\drivers\etc\hosts
and add the following entry
127.0.0.1       rto.websitename.com

Open in new window


Now when you use http://rto.websitebname.com it should open the website on your local PC.
If you want to visit the version online you will need to edit the hosts file and put a  # at the start of the line to comment out the entry.

Edit: you've made quite a few changes to your original post but this should still make sense.
0
Starr DuskkASP.NET VB.NET DeveloperAuthor Commented:
>>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!
0
Starr DuskkASP.NET VB.NET DeveloperAuthor Commented:
I edited it, but it won't let me save the changes. It says access is denied. I am logged in as an administrator.
0
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

Red-KingIT ManagerCommented:
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.
0
Red-KingIT ManagerCommented:
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.
0
Starr DuskkASP.NET VB.NET DeveloperAuthor Commented:
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.
0
Starr DuskkASP.NET VB.NET DeveloperAuthor Commented:
Never got this to work. I just used visual studio express to run my local website. I can copy it from the server and it works great, so I'll nix using the above method.

thanks!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Starr DuskkASP.NET VB.NET DeveloperAuthor Commented:
Never got it to work, so used a different method.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft IIS Web Server

From novice to tech pro — start learning today.