我将一个 asp.net 网站部署到共享服务器......
我得到了错误
Server Error in '/' Application.
运行时错误
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
您是否检查过应用程序或 machine.config 上方目录中的 customErrors 模式?这些配置文件之一可能具有 RemoteOnly 的 customErrors 模式和 false 的 allowOverride,如本 MSDN 文章中所述。管理员可能已设置此设置以防止敏感数据显示给远程客户端。