【问题标题】:Move site (folder) to IIS 7 server将站点(文件夹)移动到 IIS 7 服务器
【发布时间】:2013-11-27 07:48:57
【问题描述】:

我不确定这个问题被问的频率,我已经搜索了一段时间,但没有找到我需要的东西。

我有一个网站目前在第 3 方主机上运行,​​该网站是由第 3 方公司开发的。以前我将网站移动到同一服务器上的子域(没问题)。

现在我需要将网站移动到内部服务器(R2 2008,使用 IIS 7)。 到目前为止,我通过 FTP(完整的 httdocs)下载了该站点并放在 C:\inetpub\wwwroot 中。我现在想在本地使用它,但最终我会让它上线。 所以我最初的错误是

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"/>" 

我看到很多人都遇到过这个错误,我遵循了一些解决方案,但运气不佳。我进入了一个虚拟目录,但错误是一样的。我认为这与某些身份验证有关(至少这是我的结论)因为如果我省略这些行

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

我收到这个错误

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 

我需要填写一些凭据吗? 如何为服务器设置用户登录名(是否需要)? 我需要对 web.config 进行哪些更改? 如果我要将 ir 从本地移动到公共(直播),是否需要更改设置?

任何好的链接都会有所帮助

【问题讨论】:

    标签: asp.net iis windows-server-2008


    【解决方案1】:

    好的,所以问题是我没有下载 httdocs 之外的 bin 文件夹,在 ISS 管理器上我右键单击我的站点文件夹并选择转换为应用程序,(我需要这样做)现在运行顺利。

    【讨论】:

      猜你喜欢
      • 2010-10-04
      • 1970-01-01
      • 2016-08-11
      • 1970-01-01
      • 2017-12-24
      • 1970-01-01
      • 1970-01-01
      • 2013-10-16
      • 2016-11-11
      相关资源
      最近更新 更多