Shamil Salakhetdinov
shamil at smsconsulting.spb.ru
Tue Dec 28 09:44:10 CST 2010
Hi All -- I have got the following error message for VS2008 project converted to VS2010: VS 2010 Could not load file or assembly 'Microsoft.ReportDesigner, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) Googling: http://www.google.ru/search?hl=ru&source=hp&biw=1920&bih=919&q=VS+2010+Could +not+load+file+or+assembly+%27Microsoft.ReportDesigner%2C+Version%3D9.0.0.0% 2C+Culture%3Dneutral%2C+PublicKeyToken%3Db03f5f7f11d50a3a%27+or+one+of+its+d ependencies.+The+located+assembly%27s+manifest+definition+does+not+match+the +assembly+reference.+%28Exception+from+HRESULT%3A+0x80131040%29+&aq=f&aqi=g1 0&aql=&oq=&gs_rfai= resulted in http://connect.microsoft.com/VisualStudio/feedback/details/516964/upgrade-wi zard-fails-to-upgrade-the-reportviewer-winforms-to-v10 where one of the advises coming from MS stated: "Thank you for your feedback. The issue that you have reported is because the v9.0.0.0 ReportViewer control does not ship with VS 2010 (it is replaced with the v10.0.0.0). In order for you to upgrade without the issue, you need to install the v9.0 viewer control first: http://www.microsoft.com/downloads/details.aspx?FamilyID=cc96c246-61e5-4d9e- bb5f-416d75a1b9ef&displaylang=en BTW, we have chosen not to auto-upgrade the users from 9.0->10.0 because of new API changes, Reporting Server dependency, Framework dependency changes introduced by the 10.0 viewer." But it didn't work here. I did install ReportViewer's Viewer Control as they advised (although I was wondering why should I have to install it if I have VS2008 installed here on the same PC ?-)). It didn't help. So I have finally changed project type as beeing .NET Framework 4.0 based as well as I have set references to Microsoft.ReportViewer.Common.dll v.10.0 Microsoft.ReportViewer.WinForms.dll v.10.0 that helped immediately. I do not care that much on "new API changes, and Framework dependency changes introduced by the 10.0 viewer." they (MS) mention. But I wonder what are "introduced Reporting Server dependency" - wouldn't they imply some setup issues on ASP.NET hosting sites? Do you know what they are/do you have a reference on an article describing this issue? BTW, Microsoft.ReportViewer.Common.dll v.10.0 and Microsoft.ReportViewer.WinForms.dll v.10.0 are dependent on Runtime Vesion v2.0.50727 IOW .NET Framework 2.0 - am I wrong? Thank you. -- Shamil