.NET 程序集引用是如何“翻译”的?文件路径?
我正在尝试解决 SBS 2008 服务器上 Outlook Web Access 的 .NET 2.0 错误。
我收到的错误是:
Exception information:
Exception type: HttpException
Exception message: Could not load file or assembly 'Microsoft.Exchange.Data,
Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its
dependencies. The system cannot find the file specified.
(C:\Program Files\Microsoft\Exchange Server\ClientAccess\owa\web.config line 51)
在 web.config 的第 51 行,我有:
this is line 51 ---><add assembly="Microsoft.Exchange.Data,
Version=8.0.0.0,
Culture=neutral,
publicKeyToken=31bf3856ad364e35"/>
<add assembly="Microsoft.Exchange.Data.Storage,
Version=8.0.0.0,
Culture=neutral,
publicKeyToken=31bf3856ad364e35"/>
</assemblies>
所以在“web.config-ese”中,它如何“知道”Microsoft.Exchange.Data
程序集的位置.DLL 是,如何确定该文件以验证该文件是否存在?
I'm trying to troubleshoot a .NET 2.0 error with Outlook Web Access on a SBS 2008 Server.
The error I'm getting is:
Exception information:
Exception type: HttpException
Exception message: Could not load file or assembly 'Microsoft.Exchange.Data,
Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its
dependencies. The system cannot find the file specified.
(C:\Program Files\Microsoft\Exchange Server\ClientAccess\owa\web.config line 51)
On line 51 of web.config, I have:
this is line 51 ---><add assembly="Microsoft.Exchange.Data,
Version=8.0.0.0,
Culture=neutral,
publicKeyToken=31bf3856ad364e35"/>
<add assembly="Microsoft.Exchange.Data.Storage,
Version=8.0.0.0,
Culture=neutral,
publicKeyToken=31bf3856ad364e35"/>
</assemblies>
So in "web.config-ese", how does it "know" where that Microsoft.Exchange.Data
assembly .DLL is, and how can I determine this so as to verify that the file exists or not?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它在 c:\windows\Assembly 中的全局程序集缓存 (GAC) 中查找。它必须使用 gacutil 实用程序安装在 gac 中,该实用程序通常通过程序的安装过程进行安装...
It looks in the global assembly cache (GAC) in c:\windows\assembly. It has to be installed in the gac using the gacutil utility to install, which is often installed via the installation process of the program...
在网站中,Web 服务器将同时查找 GAC 和 bin 目录。查看 GAC 中内容的简单方法是右键单击“添加引用”,然后查看该 dll 是否列在 .NET 选项卡中。
要将 dll 添加到 GAC 请查看此处作为指导。
希望这有帮助。
In a web site the web server will look in both the GAC and the bin directory. And easy way to see what's in your GAC is to right click add reference and see if the dll is listed in the .NET tab.
To add a dll to the GAC look here for a guide.
Hope this helps.