2011-11-15 71 views
0

我有一个.NET程序集内置到sql中。它适用于所有其他SQL服务器,除了在一个系统上出现此错误。运行Sql程序集时出错

A .NET Framework error occurred during execution of user-defined routine or aggregate "GetCustomerData": 
System.IO.FileLoadException: The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) 
System.IO.FileLoadException: 
    at System.Diagnostics.TraceSource.Initialize() 
    at System.Net.Logging.InitializeLogging() 
    at System.Net.Logging.get_On() 
    at System.Net.WebClient.DownloadString(Uri address) 
    at System.Net.WebClient.DownloadString(String address) 
    at CustFromPhone.BaseFunctionClass.GetCustInfo(SqlString PhoneNo) 
+0

我重新启动了sqlserver并重新创建了程序集,并且工作正常。 我不会删除这个问题,因为我想知道这个错误是什么意思,以防万一它再次发生... – Ezi

回答

1

您只需为您的.NET二进制文件错误的舱单数据

的组件清单包含指定 集的版本要求和安全标识所需的所有元数据,以及所需要的所有 元数据定义汇编的范围并且解析对资源和类的引用 。 http://en.wikipedia.org/wiki/Manifest_%28.NET_Framework%29

这就是为什么它在重建时纠正的原因。