【发布时间】:2015-02-19 03:35:52
【问题描述】:
我正在使用 Visual Studio 2013 调试器测试一个简单的 dll。 Web 设置设置为使用 IIS Express 加载访问 dll 的页面。当我将 dll 输出到默认的 /bin 目录时,一切正常。当我将 dll 输出到 bin/x64 目录时,页面无法使用 VS2013 调试器正确加载。我所做的唯一更改是将 dll 输出到 bin/x64 目录,而不是 bin 目录。我尝试指定:
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="x64" />
</assemblyBinding>
</runtime>
在 web.config 中,但这也不起作用。
当我转到: C:\Users...\Documents\IISExpress\config\applicationhost.config
我看到了虚拟目录的条目:
<site name="MyApp" id="7">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="C:\MyP\Working" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:27427:localhost" />
</bindings>
</site>
并指定正确的工作目录。我假设 ASP 默认从项目工作目录的 bin 子目录中选择 dll。我猜问题变成了:
我如何告诉 IISEXpress / ASP 从 bin 的子目录中选择 dll,即 bin/x64。
非常感谢有关此问题的任何指导。我已经用尽了我的资源。谢谢,
【问题讨论】:
-
我开始相信 IIS Express 会忽略或错误处理 web.config 中的
标记。任何有用的指针。
标签: c# asp.net dll visual-studio-2013