简体   繁体   English

尝试在IIS上托管ASP.NET MVC网站

[英]Trying to host ASP.NET MVC website on IIS

I have server, with static IP. 我有带有静态IP的服务器。 All I want is to make my ASP.NET MVC 5 webstite work on this server. 我要做的就是让我的ASP.NET MVC 5网站在此服务器上工作。 I have follow many tutorials. 我遵循了许多教程。 But none of them does not give me expected result. 但是他们都没有给我预期的结果。 I was facing many troubles, IIS could not read config file, file browsering disable etc, etc. I was fixing all of them. 我面临许多麻烦,IIS无法读取配置文件,文件浏览器禁用等,等等。我正在解决所有这些问题。 In one moment I have got this instead of Login page which should be default(I changed it in config and IIS default files). 一会儿我得到了这个而不是应该是默认的登录页面(我在配置和IIS默认文件中更改了它)。 When I try to open my Views I have this . 当我尝试打开我的视图时,我有这个 I was googling this problem. 我在搜索这个问题。 But none of solutions from internet does not help. 但是,互联网提供的解决方案都无济于事。 Pls let me know if you need more information. 请让我知道是否需要更多信息。 Im stacked, pls help. 我堆积如山,请帮忙。

在此处输入图片说明

problem 1: Directory browsing: needs to be turned off. 问题1:目录浏览:需要关闭。

problem 2: Default document: specify the actual filename. 问题2:默认文档:指定实际的文件名。 Doublecheck that it's in there and marked at top. 仔细检查它是否在其中并标记在顶部。 I for example have a website which has a different named file, which is not in the default IIS settings, and I have to re-add it every time I publish. 例如,我有一个网站,该网站具有不同的命名文件,该文件不在默认的IIS设置中,并且每次发布时都必须重新添加它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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