Workflow4发布时,出现此问题,修改配置文件即可。

其中 serviceDebug includeExceptionDetailInFaults="false",默认值为false,把false改为true即可。

详细的配置文件:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.web>
    <compilation debug="true" targetFramework="4.0" />
  </system.web>
  <system.serviceModel>
    <behaviors>
      <serviceBehaviors>
        <behavior>
          <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
          <serviceMetadata httpGetEnabled="true"/>
          <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
          <serviceDebug includeExceptionDetailInFaults="true"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
  </system.serviceModel>
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
  </system.webServer>
</configuration>

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-17
  • 2022-02-01
  • 2021-10-29
  • 2021-06-09
猜你喜欢
  • 2021-09-10
  • 2021-09-15
  • 2022-12-23
  • 2021-06-26
  • 2022-12-23
  • 2021-05-20
  • 2021-07-21
相关资源
相似解决方案