Tuesday, January 18, 2011

The module was expected to contain an assembly manifest

.. Could not load file or assembly 'Microsoft.ReportViewer.Common..'

In the project I am currently involved in we had created some nice reports and had these render directly as PDF file to the browser. Worked great on my machine and on my colleague's machine. And then deploying it to our test environment that sits on a shared hosting server it failed.
Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The module was expected to contain an assembly manifest.
Clearly a security issue that will easily go away when you put the necessary assemblies in the GAC. But with shared hosting that is probably not an option. The hosting party will allow that nor facilitate.
Monday Monday ~~~~~~~~~~~Image by Trish Hamme ≧◡≦ via Flickr
Trying to figure out a solution
It took some Googling about with not much result but then I found this webpage that explains a simple solution to the problem. And hey presto! It works! Thanks, Desirée Harris from OrcsWeb. You just made our day!
Enhanced by Zemanta