使用ws_ftp托管ASP.Net网站 [英] Hosting ASP.Net Website using ws_ftp
问题描述
您好,
我想在WS_Ftp中托管我的ASP网站。
我使用的是VS 2012和IIS8
我按照在WS_FTP中配置您的网站 [ ^ ]
我连接到我的服务器(ftp.mywebsite.de)并可以轻松地将我的文件上传到我的服务器。
我可以轻松地在本地运行我的网站(也在localhost中)。我在本地托管我的网站时没有网页配置错误。
但是我在服务器托管时遇到网页配置文件错误http://mywebsite.de/myproject
之前我添加了
Hello ,
I wanted to host my ASP website in WS_Ftp.
I am using VS 2012 and IIS8
I followed the steps according to CONFIGURING YOUR WEBSITE IN WS_FTP[^]
I am connected to my server(ftp.mywebsite.de) and can upload my files to my server easily.
I can easily run my website locally(in localhost too). I donot have web config error while hosting my website locally.
But I am getting web config file error while hosting in server "http://mywebsite.de/myproject"
Previously I added
<customErrors mode="Off">
</customErrors>
在我的网络配置中,但我仍然遇到配置错误。
In my web config, but still I am getting configuration errors.
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.
Line 22: </customErrors>
Line 23: <compilation debug="true" targetFramework="4.5"/>
Line 24: <httpRuntime targetFramework="4.5"/>
Line 25: <pages>
Line 26: <namespaces>
如何解决这个问题?
谢谢。
How to solve this?
Thank you.
推荐答案
这是因为该文件夹不被视为虚拟目录(配置为IIS或Web服务器中的应用程序的目录)。
您应该考虑咨询托管支持,关于如何将目录设置为虚拟目录。您的托管很可能会有一个基于Web的控制面板来管理网站。
this is because the folder is NOT considered a virtual directory (a directory configured to be an application in IIS or a web server).
you should consider consulting the hosting support, regarding how to set your directory as a virtual directory. your hosting will most likely have a web-based control panel to manage sites.
这篇关于使用ws_ftp托管ASP.Net网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!