在我的本地计算机上部署已编译且没有错误的应用程序后,我收到内部服务器 500 错误。部署应用程序的服务器具有大量安全性,因此我需要为每个目录指定读写访问权限。此应用程序使用 Windows 身份验证和 Web 服务通过代理填充下拉框。我认为可能存在连接到 Web 服务的问题,或者文件的读/写安全性问题,或者活动目录身份验证的问题。
我编辑了 web.config,以便使用以下代码显示有关错误原因的更多信息:
<system.web>
<customErrors mode ="Off"></customErrors>
<compilation debug="true" strict="false" explicit="true" targetFramework="4.0" />
<trace enabled="true" pageOutput="true" />
<authentication mode="Windows"/>
<authorization>
<allow roles="alg\ADMIN_USER" />
<deny users="*" />
</authorization>
<client>
<endpoint address="http://63.236.108.91/aCompService.svc" binding="basicHttpBinding"
bindingConfiguration="BasicHttpBinding_IAcompService" contract="aComp_ServiceReference.IAcompService"
name="BasicHttpBinding_IAcompService" />
</client>
我现在收到以下错误:
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be
displayed.
我想查看带有错误来源的堆栈跟踪。
我应该在 web.config 文件中放入什么以便显示完整的堆栈跟踪?
从本地运行到部署需要在网站上进行哪些更改?
更新-部署人员解除了一些安全读/写限制,现在我明白了
Parser Error Message: The connection name 'ApplicationServices' was not found in
the applications configuration or the connection string is empty.
为了摆脱错误,我删除了在第 72 行声明的 AspNetSqlRoleProvider,但仍然出现错误。然后我删除了 AspNetWindowsTokenRoleProvider 和所有提供程序信息并得到以下错误:
Exception message: Default Role Provider could not be found.
我们的托管都是远程完成的,但服务器人员可以远程登录本地网络服务器。看起来服务器人员没有将文件发布在正确的位置。现在,我现在得到错误:
There is a problem with the resource you are looking for, and it cannot
be displayed.
关于如何解决这些问题的任何想法?
感谢您的关注!