简体   繁体   English

在运行IIS 6的Windows 2003计算机上部署ASP.NET MVC4网站时出现500错误

[英]500 ERROR WHEN DEPLOYING THE ASP.NET MVC4 WEBSITE ON Windows 2003 machine running IIS 6

I am having trouble when deploying the asp.net mvc on iis6 runing on windows 2003. Below is the case: I have it running on a separate app pool and it is setup to use asp.net 4.0. 在Windows 2003上运行的iis6上部署asp.net mvc时遇到麻烦。下面是这种情况:我在单独的应用程序池上运行它,并且设置为使用asp.net 4.0。 I have a Wildcard application mapping to aspnet_isapi.dll which was required to get the page to appear. 我有一个通配符应用程序映射到aspnet_isapi.dll,这是显示页面所必需的。 But When I visit the site from another computer, the error happened and I just got the error code 500 inside the server's log file. 但是,当我从另一台计算机访问该站点时,发生了错误,并且我只是在服务器的日志文件中收到了错误代码500。 I have no idea what to do. 我不知道该怎么做。 I already copy all the dlls needed to server(CopyLocal =true). 我已经将所有需要的dll复制到了服务器(CopyLocal = true)。 When I type ipAddress/repairlist/index (repairlist is the name of my controller), I got the error. 当我输入ipAddress / repairlist / index(repairlist是我的控制器的名称)时,出现错误。 but when i type ipAddress/test.txt, it just display the content of the text. 但是,当我键入ipAddress / test.txt时,它仅显示文本的内容。 What makes me feel puzzled is that I create a template website using visual studio 2010, and i deploy it on the server, it just worked. 让我感到困惑的是,我使用Visual Studio 2010创建了一个模板网站,然后将其部署在服务器上,就可以了。 I feel so frustrated. 我感到非常沮丧。 So, I wonder How to deal with the problem like this? 所以,我想知道如何处理这样的问题? How can I get the detail error information so I can make it work. 如何获取详细错误信息,以便使其正常工作。 The log file of the IIS just indicates the 500 0 0 error code. IIS的日志文件仅指示500 0 0错误代码。 I already follow the basic step indicated by the google. 我已经按照Google指示的基本步骤进行了操作。 How could the template website just work, and mine didn't? 模板网站如何工作,而我的网站却没有?

Tough although it seems it is an ASP.Net error - re: IIS is serving text file fine - don't confuse this with ASP.Net application - a text ( .txt ) file can be served by IIS without Asp.net. 艰难尽管它看来,这是一个ASP.Net错误-回复:IIS是服务文本文件罚款-不与ASP.Net应用程序混淆-文本( .txt )文件可以通过IIS 没有 Asp.net送达。

Process of elimination: 排除法:

  • Just put up an aspx file - does nothing but return "Hello World" - this is just a check to see if ASP.net is configured properly (without any other dependency) 只需放置一个aspx文件-除了返回“ Hello World”之外什么都不做-这只是检查ASP.net是否配置正确(没有任何其他依赖项)

    • If the above works, then have you tried customErrors="Off" ? 如果上述方法可行,那么您是否尝试过customErrors="Off" This will hopefully give you enough error detail to track application errors (missing assemblies, db connections/strings, etc.) 希望这将为您提供足够的错误详细信息以跟踪应用程序错误(缺少程序集,数据库连接/字符串等)。

    • Otherwise, it at least is pointing to ASP.net not configured properly (if it can't even serve a simple aspx page that only returns "hello world"). 否则,它至少指向没有正确配置的ASP.net(如果它甚至不能提供仅返回“ hello world”的简单aspx页面)。

It's been a while for me (IIS 6) so maybe this will help: ASP.NET MVC on IIS 6 Walkthrough 对我来说(IIS 6)已经有一段时间了,所以也许这会有所帮助: IIS 6上的ASP.NET MVC演练

Hth. Hth。

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

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