添加<;时托管WCF服务时出错;信任级别=“;“满”/>;
本文关键字:gt 出错 lt WCF 添加 服务 信任 | 更新日期: 2023-09-27 18:00:11
我正在尝试在"hostgator"中托管WCF服务。我想设置信任级别,因为我收到了安全权限错误。
当我在web.config
中设置Trust Level
时,我得到了一个错误。
web.config
:
<location allowOverride="true">
<system.web>
<compilation debug="true" targetFramework="4.5.2"/>
<identity impersonate="false" />
<authentication mode="None" />
<httpRuntime maxUrlLength="1024" relaxedUrlToFileSystemMapping="true"/>
<customErrors mode="Off"></customErrors>
<securityPolicy>
<trustLevel name="Full" policyFile="internal"/>
</securityPolicy>
</system.web>
</location>
错误:
服务器上出现应用程序错误。当前自定义错误此应用程序的设置阻止应用程序的详细信息远程查看时出错(出于安全原因)。它可以,但是可以由运行在本地服务器机器上的浏览器来查看。
有人能提出解决这个问题的方法吗?
在此处输入图像描述
Per HostGator常见问题解答您必须使用它们的共享主机在部分信任下运行:
没有。应用程序必须在Medium Trust中发布才能运行在Windows共享服务器上。
据我所知,您将无法在中等信任环境中使用SDK。随着Dynamics CRM 2016扩展对其REST API的支持,这可能会成为您的一个选择。