Adding references causes 'Could not load file or assembly error' RRS feed

  • Question

  • I don't know if this is neccessarily the correct forum for this issue, but it seems like the closest match I can find.  I recently added references to two dlls - Microsoft.SQLServer.Management.Reports and Microsoft.SQLServer.Management.ui.rsclient - to an existing web project.  Having done so, the web site blew up, giving the following error:


    Could not load file or assembly 'Microsoft.ReportingServices.Diagnostics' or one of its dependencies.  An attempt was made to load a program with an incorrect format. 


    Removing the two references from the project didn't have any impact.  I ended up excluding all Microsoft.ReportingServices dlls, as well as all Microsoft.VisualStudio.vsp dlls and msmgdsrv.dll, and that seemed to fix things.  Anyone have any idea as to why this happened?

    Tuesday, April 15, 2008 4:27 PM