I have a .net assembly build in to sql. It works on all other sql servers, except on one system I get this error.
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)
You simply have wrong manifest data for your .NET binaries
This is why its corrected when you rebuild it.