2010-08-17 86 views
1

我正尝试在SBS 2008服务器上使用Outlook Web Access解决.NET 2.0错误。.NET程序集如何将引用“翻译”为文件路径?

我得到的错误是:

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中偏东”,它是如何“知道”Microsoft.Exchange.Data程序集.DLL的位置,以及如何确定这个以验证文件是否存在?

+0

此外,请检查您正在使用的Exchange版本。根据Web.config中的参考,它看起来像是预计程序集“版本8.0.0.0”,听起来像Exchange 2007.如果您安装了Exchange 2007以外的其他产品,则可能无法正常工作。 – 2010-08-17 15:50:10

回答

3

它在c:\ windows \ assembly中的全局程序集缓存(GAC)中查找。它必须使用gacutil实用程序安装在gac中,通常通过程序的安装过程进行安装...

+0

从.NET 4.0开始,.NET 4.0组件中的另一个GAC位于'C:\ WINDOWS \ Microsoft.NET \ assembly'。我不认为交易所会在那里,但对于其他集会来说,这是一个很好的第二个地方。 – 2010-08-17 15:46:59

+1

它也可以在应用程序的bin文件夹中:)但是对于OWA,我不知道MS放在哪里。注意,如果你在OWA安装中缺少DLL,我认为比简单的哎呦更多的东西出错了,我意外删除了这个DLL。 – Tommy 2010-08-17 15:47:20

+0

我已经比较了工作SBS 2008服务器和加油的服务器之间的owa/bin;没有区别。 C:\ windows \ assembly中的GAC看起来也一样。 – gravyface 2010-08-17 16:18:18

0

在Web站点中,Web服务器将在GAC和bin目录中查找。查看GAC中的内容的简单方法是右键单击添加引用,然后查看该.NET是否列在.NET选项卡中。

要向GAC look here添加dll以获得指导。

希望这会有所帮助。

+0

更简单的方法是导航到'C:\ windows \ assembly'或'C:\ winnt \ assembly' – fletcher 2010-08-17 15:53:54

相关问题