2011-04-09 57 views
1

我目前正在考虑devloping一个ASP.NET网站。我在我的开发机器上配置了IIS7以及我的服务器。ASP.net部署

我已经将开发文件复制到我的开发机器上的本地IIS服务器上,并且这种工作正常,没有任何问题。

然而,当我在VS2010通过FTP上传的ASP.NET应用程序,以我的网站mydomain.com/myasp它显示它说的错误:

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.

Source Error: Line 34: ASP.NET to identify an incoming user. Line 35: --> Line 36: Line 37: section enables configuration

我已经转换目录IIS内的应用程序,但它仍然会出现这个错误。

你可以提供任何帮助将是巨大的感谢

+0

发布截图或确切的措辞? – 2011-04-09 02:43:56

+0

看看这个问题:http://stackoverflow.com/questions/470136/configuring-an-asp-net-application-in-iis。你说你创建了一个应用程序,你是否仅将执行权限设置为脚本? – rsbarro 2011-04-09 03:01:25

回答

1

我发现这是因为我是从http://localhost/myaspx.aspx直接某种原因,这导致错误的服务器上调用ASPX。当我尝试它http://www.mydomain.com/myaspx.aspx它工作正常。

一个奇怪的问题,为什么它不喜欢使用本地主机的位。我猜这一定是iis的配置错误问题

+0

这是一个安全的东西,我认为... – jcolebrand 2011-04-15 23:37:01

+0

本地主机在主机文件中定义? – 2011-04-15 23:54:44