【问题标题】:How to configure SymbolSource Server Basic如何配置 SymbolSource Server Basic
【发布时间】:2015-06-02 08:45:42
【问题描述】:

我已按照Xavier Decosters blog entry 中的说明安装并运行SymbolSource Server Basic

我已将 Visual Studio 设置为 recommended by SymbolSource

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

Visual Studio 在尝试加载 pdb 时会访问以下 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

SymbolServer 网站有以下内容:

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

我已经在浏览器中尝试了大量的 url 变体,但我无法让 Symbol 服务器为其中任何一个返回 404 以外的任何内容。

有人知道在这里做什么吗?

谢谢 - 塞德

【问题讨论】:

    标签: nuget nuget-server symbol-server


    【解决方案1】:

    如有任何错误,请参阅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

    【讨论】:

    • 谢谢。我现在基本上已经离开了 Symbol Server,它似乎已经死了。我被推荐 dotPeek 作为更方便的解决方案。
    猜你喜欢
    • 2017-06-04
    • 2012-02-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-10-17
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多