Я использую MVC 3. Я отредактировал свой Web.Release.Config
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<system.web>
<compilation xdt:Transform="RemoveAttributes(debug)" />
<customErrors defaultRedirect="GenericError.htm"
mode="RemoteOnly" xdt:Transform="Replace">
<error statusCode="500" redirect="InternalError.htm"/>
</customErrors>
</system.web>
</configuration>
Теперь, когда я получаю ошибку во время выполнения, я все еще вижу:
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
В комплекте со ссылкой на мой ИСТОЧНИК КОД :-(
Обратите внимание, что когда я запускаю, он установлен на "Release" и я запускаю с CTRL F5