【发布时间】:2018-01-23 17:24:33
【问题描述】:
我刚刚开始研究 .NET。我是一个coldfusion开发人员,所以我习惯于通过FTP将所有文件上传到服务器。 我尝试对 .NET 做同样的事情,并创建了一个非常基本的网站,上面写着 Hello World。它在我的本地主机中运行良好。
使用 Visual Studio 我去:
Build -> Publish Project -> File System Method
然后我将文件保存在本地计算机中。
我使用 FileZilla 将文件传输到服务器。问题是当我运行服务器时,它只显示文件夹文件和目录。不是网站。
有人知道我该怎么办吗?
我可以在 Visual Studio 中使用 FTP 部署 MVC 网站。现在我运行网站 URL 时出现的问题是:
The Web server is configured to not list the contents of this directory.
Most likely causes:
A default document is not configured for the requested URL, and directory browsing is not enabled on the server.
谢谢
【问题讨论】:
标签: .net deployment server publish