2016-08-04 55 views
0

時承載WCF服務時出錯我試圖在「hostgator」中託管WCF服務。我想設置信任級別,因爲我正在獲取安全權限錯誤。當添加<trust level =「Full」/>

當我在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> 

錯誤:

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.

任何人可以提出一個方法來解決這個問題?

enter image description here

回答

0

HostGator FAQ必須使用在部分信任運行他們的共享主機:

No. The applications must be published in Medium Trust in order to run on the Windows Shared Server.

你不會要能夠使用SDK在中等信任環境,從我」已閱讀。由於Dynamics CRM 2016擴展了對其REST API的支持,因此可能成爲您的選擇。

相關問題