简体   繁体   中英

Move site (folder) to IIS 7 server

I'm not sure how often this is asked and I have been doing searching for a while but haven't found what I need.

I have a website currently running on a 3rd party host, the website was developed by a 3rd party company. Previously I moved the website to a subdomain on the same server (no problems).

Now I need to move the website to an in-house server (R2 2008, using IIS 7). So far I downloaded the site via FTP (the full httdocs) and placed inside C:\\inetpub\\wwwroot. I want to use it locally now but eventually I will make it live. So my initial error is

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.


"</pages><authentication mode="Windows"/>" 

I see many people have experienced this error, I followed a few solutions with little luck. I made it to a virtual directory but the error is the same. I think it's something to do with some authentication (at least that's my conclusion) becuase if I ommit these lines

</pages><authentication mode="Windows"/>
<sessionState timeout="50">
</sessionState>

I get this error

Module IIS Web Core 
   Notification BeginRequest 
   Handler Not yet determined 
   Error Code 0x8007000d 
   Config Error Configuration file is not well-formed XML  
   Config File \\?\C:\inetpub\wwwroot\tools2\web.config 
   Requested URL http://localhost:80/tools2/newsLetter/ 
   Physical Path C:\inetpub\wwwroot\tools2\newsLetter\ 
   Logon Method Not yet determined 
   Logon User Not yet determined 

IIs there some credentials I need to fill? How do I set up a user login for the server (do I need to)? What changes do I need to make to the web.config? Will I need to change settings if I was to move ir from local to public(live)?

Any good links will be helpful

好的,所以问题是我没有下载httdocs之外的bin文件夹,在ISS Manager上,我右键单击我的站点文件夹并选择“转换为应用程序”,(我要做)现在可以正常运行。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM