1

我按照Xavier Decosters 博客条目中的说明安装并运行了SymbolSource Server Basic

我已经按照SymbolSource的建议设置了 Visual Studio

问题是符号服务器为 Visual Studio 要求的所有 url 返回 404。

尝试加载 pdb 时,Visual Studio 会访问以下 url:

  • http.../WinDbg/pdb/MightyLittleGeodesy.pdb/82A03D09EC754F5893C3806CDA329EC92/MightyLittleGeodesy.pdb

  • http.../WinDbg/pdb/MightyLittleGeodesy.pdb/82A03D09EC754F5893C3806CDA329EC92/MightyLittleGeodesy.pd_

  • http.../WinDbg/pdb/MightyLittleGeodesy.pdb/82A03D09EC754F5893C3806CDA329EC92/file.ptr

    来自 Fiddler 的 404 错误

SymbolServer 网站有以下内容:

  • \...\Data\MightyLittleGeodesy\1.0.0.0\Binaries\MightyLittleGeodesy\82A03D09EC754F5893C3806CDA329EC92\MightyLittleGeodesy.pdb

    符号服务器数据目录

我在浏览器中尝试了大量的 url 变体,但我无法让 Symbol 服务器返回除 404 之外的任何内容。

有谁知道在这里做什么?

谢谢-Cedd

4

1 回答 1

2

对于任何错误,请参阅http://localhost/%your_app%/elmah.axd

如果您遇到 404.* 错误,那么您应该检查以下情况:

  1. 将写入权限添加到 IIS_IUSRS 组的应用程序的“数据”目录
  2. 为应用程序创建单独的 AppPool 并启用 32 位选项
  3. 为 .pdb(应用程序/八位字节流)和 .cs(文本/纯文本)文件类型添加 MIME 类型
  4. 编辑 web.config 并添加以下行:

    <location path="Data">
    <system.webServer>
      <handlers>
        <clear />
        <add name="Deny" verb="*" path="*.config" type="System.Web.HttpForbiddenHandler" />
        <add name="Allow" verb="GET,HEAD" path="*" type="System.Web.StaticFileHandler" />
      </handlers>
      <security>
        <requestFiltering>
          <fileExtensions allowUnlisted="true">
            <clear />
         <add fileExtension=".cs" allowed="true" />
          </fileExtensions>
        </requestFiltering>
      </security>
    </system.webServer>
    

    <location path="WinDbg/pdbsrc">
    <system.webServer>
      <handlers>
        <clear />
        <add name="Deny" verb="*" path="*.config" type="System.Web.HttpForbiddenHandler" />
        <add name="Allow" verb="GET,HEAD" path="*" type="System.Web.StaticFileHandler" />
      </handlers>
      <security>
        <requestFiltering>
          <fileExtensions allowUnlisted="true">
            <clear />
         <add fileExtension=".cs" allowed="true" />
          </fileExtensions>
        </requestFiltering>
      </security>
    </system.webServer>
    

我的 SymbolSource 版本是 1.3.3

于 2015-07-13T11:57:30.387 回答