.NET 程序集引用是如何“翻译”的?文件路径?

发布于 2024-09-14 13:38:34 字数 1041 浏览 1 评论 0原文

我正在尝试解决 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

无远思近则忧 2024-09-21 13:38:34

它在 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...

-小熊_ 2024-09-21 13:38:34

在网站中,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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文