开发者

How to find the error when there is no error-information (problem hosting an ASP.Net MVC 3 App)

开发者 https://www.devze.com 2023-02-07 00:46 出处:网络
All we get when publishing our ASP.Net MVC 3 app is this: You may also relive the error here. There\'s no error message or anything. We\'ve seen this once before, when the connection-string wa开发

All we get when publishing our ASP.Net MVC 3 app is this:

How to find the error when there is no error-information (problem hosting an ASP.Net MVC 3 App)

You may also relive the error here.

There's no error message or anything. We've seen this once before, when the connection-string wa开发者_Go百科s invalid. This time however, we're sure that is not the problem.

How should we procceed to "debug" this app? It works fine on the dev server.


I'm seeing the following error when I visit the link you provided:

Could not load file or assembly 'System.Web.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

This error indicates that you do not have MVC 3 installed on the target server and did not deploy the right set of binaries with your app. Read the following for more information: http://weblogs.asp.net/scottgu/archive/2011/01/18/running-an-asp-net-mvc-3-app-on-a-web-server-that-doesn-t-have-asp-net-mvc-3-installed.aspx

(Btw, is your app doing localization, different response encodign, etc? maybe that's why you are seeing these garbled responses).


That is truly bizarre! If you have console access to the server, I would suggest logging in through Remote Desktop and executing the page there. You may get the "yellow screen of death", and be able to debug from there.

0

精彩评论

暂无评论...
验证码 换一张
取 消