今天尝试在azure上发布网站后,无法正常访问

本地调试也提示:

Not running in a hosted service or the Development Fabric

谷歌百度半天…

最后发现是之前直接在azure发布webapplication的问题

只要删除掉web.config中的以下内容就OK了

<trace> 
    <listeners> 
        <add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=2.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="AzureDiagnostics"> 
            <filter type="" /> 
        </add> 
    </listeners> 
</trace>

相关文章:

  • 2022-03-04
  • 2022-01-26
  • 2021-09-01
  • 2021-12-04
  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
  • 2021-12-17
猜你喜欢
  • 2021-11-08
  • 2021-07-17
  • 2022-12-23
  • 2022-12-23
  • 2021-07-10
  • 2022-01-18
相关资源
相似解决方案