找到你要的答案

Q:DLL on Production Server Throws Server Error, IIS 7.5

Q:DLL在生产服务器将服务器错误,IIS 7.5

I've been having problems with a site we have built in MVC5. It contains the standard mix of JS, CSS, jQuery, controllers, views and so on. The other day when we copied the DLL's to the live server, we got a generic server error message like this:-

https://sslproxy.getsatisfaction.com/sslproxy/SWhAdDNLMG5zdGFuVGlWenmLbJDGd3CABhjZermgcystANA4T6nd0pzV0fSzBRRGOd17A4b8ZLwi6-HESbXI0jZCKKXz14fzqyaK9srU32RZSu1EuPVb0ug2sk5zFhaRn-eVxTfQVKiEYo0BC-vdpQ==.jpg

It wasn't an IIS message, and the facility in Global.asax that we have to email us with the Exception details never came through. If we copy back the backed up DLL, the site works fine again.

I spent some time doing some digging and we tried various stuff, and eventually this addition in the web.config fixed the issue:-

<httpErrors existingResponse="PassThrough">
    <remove statusCode="404" subStatusCode="-1" />
    <error statusCode="404" prefixLanguageFilePath="" path="/404/" responseMode="ExecuteURL" />
</httpErrors>

I added the existingResponse="PassThrough" and the site with the DLL's that would orignally break, suddenly started working. But why? What does this existing response passthrough do and I am simply suppressing a bigger problem I'm not aware of?

Any information or suggestions would be fantastic! Thanks, Mike.

我一直有一个网站,我们已经建立在MVC5问题。它包含JS,CSS标准组合、jQuery、控制器、视图等。一天当我们复制DLL的直播服务器,我们有一个通用的服务器这类错误信息:—

http:/ / sslproxy。getsatisfaction。COM / sslproxy / swhaddnlmg5zdgfuvglwenmlbjdgd3cabhjzermgcystana4t6nd0pzv0fszbrrgod17a4b8zlwi6-hesbxi0jzckkxz14fzqyak9sru32rzsu1eupvb0ug2sk5zfharn-evxtfqvkieyo0bc-vdpq = =。JPG

这不是一个IIS信息,和中的设施,我们要给我们的异常细节从未经历。如果我们复制备份的DLL,网站工作又好了。

我花了一些时间做一些挖掘,我们尝试不同的东西,并最终在一些固定的问题:—

<httpErrors existingResponse="PassThrough">
    <remove statusCode="404" subStatusCode="-1" />
    <error statusCode="404" prefixLanguageFilePath="" path="/404/" responseMode="ExecuteURL" />
</httpErrors>

我说,existingresponse =“直通”网站与DLL,开始休息,突然开始工作。但是为什么呢?这个现有的响应通过做和我只是抑制一个更大的问题我不知道?

Any information or suggestions would be fantastic! Thanks, Mike.

answer1: 回答1:

I create a new site on IIS, and the problems with the DLL corruption were solved. I didn't need the change in the web.config in the end.

我在IIS上创建一个新的网站,并与DLL的腐败问题解决了。我不需要在web.config文件中的变化。

asp.net-mvc  web-config  iis-7.5  windows-server-2008-r2  internal-server-error