简体   繁体   English

在IIS 7上部署ASP.NET Web

[英]Deployment of asp.net web on IIS 7

I am going to deploy my asp.net web on IIS 7. For this purpose I have googled and found a tutorial link . 我将在IIS 7上部署asp.net网站。为此,我用Google搜索并找到了教程链接 I followed all the steps and then run the web, in the result web is not running, its not showing its asp.net page instead of this it is showing directory listing of my web. 我按照所有步骤操作,然后运行Web,结果Web未运行,其未显示asp.net页面,而是显示了我的Web的目录列表。

When I run the web through visual studio the default page in browser is http://localhost:58276/Home/LogIn?ReturnUrl=%2f 当我通过Visual Studio运行网络时,浏览器中的默认页面为http:// localhost:58276 / Home / LogIn?ReturnUrl =%2f

Normally, IIs looks for a certain type of file names that it considers are entry file names. 通常,II会查找它认为是入口文件名的某种类型的文件名。 Usually the start page for ASP.NET applications is Default.apsx . 通常,ASP.NET应用程序的起始页为Default.apsx (You can check that in the IIs manager -> Default Document. (您可以在IIs管理器->默认文档中进行检查。

Check that your start page has that name. 检查您的起始页是否具有该名称。

You should check the start page as @Magnus Johansson mentioned; 您应该按照@Magnus Johansson所述检查起始页; if that's not the problem, it might be that you're targeting the wrong ASP.NET version. 如果不是问题所在,则可能是您定位的ASP.NET版本错误。

Did you specify ASP.NET 4.0 for your Application Pool? 您是否为应用程序池指定了ASP.NET 4.0? If you created your own application pool, you should open up the configuration for it and make sure it's set to .NET Framework v.4.0. 如果创建了自己的应用程序池,则应为其打开配置,并确保将其设置为.NET Framework v.4.0。

If that's not an option for your application pool, you might not have ASP.NET 4.0 set up on your system (which can happen if you install the .NET Framework 4 before you install IIS 7). 如果这不是您的应用程序池的选项,则您可能没有在系统上设置ASP.NET 4.0(如果在安装IIS 7之前安装.NET Framework 4,则可能会发生这种情况)。 If that's the case, you may need to run aspnet_regiis: http://msdn.microsoft.com/en-us/library/ie/k6h9cz8h.aspx . 在这种情况下,您可能需要运行aspnet_regiis: http : //msdn.microsoft.com/zh-cn/library/ie/k6h9cz8h.aspx (The set of options you want is probably aspnet_regiis -i ) (所需的选项集可能是aspnet_regiis -i

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

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