From: Ray on
Hi
I have have had the same problem. Citrix was loaded onto our web server and that really made a mess of everything. We have got most of our sites back but our Reproting Services site is causing us grief.

I checked the kb case:
http://support.microsoft.com/kb/894435/en-us

We have got on of the applications to work - but the Reporting Services application is still not running.

The error is below

[BadImageFormatException: Could not load file or assembly 'ReportingServicesNativeClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
Microsoft.ReportingServices.Diagnostics.ResourceUtilities.UpdatePrivateMBytes() +0
Microsoft.ReportingServices.Diagnostics.MemoryStatsTimer.DoTimerAction() +5
Microsoft.ReportingServices.Diagnostics.MemoryStatsTimer..ctor() +11
Microsoft.ReportingServices.WebServer.Global..cctor() +149


Ray




odeddror wrote:

Report Manager Could not load file or assembly
23-Jul-09

Hi there,
I'm using SQL Server 2005 SP3 x64 and Windows Vista Business x64
Everything works fine until I install the cumulative patch for SP3
Now when I'm trying to open report manager i'm getting


Server Error in '/Reports' Application.
--------------------------------------------------------------------------------

Could not load file or assembly 'ReportingServicesNativeClient,
Version=0.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of
its dependencies. An attempt was made to load a program with an incorrect
format.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.BadImageFormatException: Could not load file or
assembly 'ReportingServicesNativeClient, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=89845dcd8080cc91' or one of its dependencies. An attempt was
made to load a program with an incorrect format.

Source Error:


An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.


Stack Trace:


[BadImageFormatException: Could not load file or assembly
'ReportingServicesNativeClient, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=89845dcd8080cc91' or one of its dependencies. An attempt was
made to load a program with an incorrect format.]
System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase,
Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark,
Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase,
Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark,
Boolean throwOnFileNotFound, Boolean forIntrospection) +43
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef,
Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
forIntrospection) +127
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence
assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142
System.Reflection.Assembly.Load(String assemblyString) +28
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String
assemblyName, Boolean starDirective) +46

[ConfigurationErrorsException: Could not load file or assembly
'ReportingServicesNativeClient, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=89845dcd8080cc91' or one of its dependencies. An attempt was
made to load a program with an incorrect format.]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String
assemblyName, Boolean starDirective) +613
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()
+203
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)
+105
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection
compConfig) +178
System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath
configPath, Boolean supportLocalization, String outputAssemblyName) +54
System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean
isPrecompiledApp) +232
System.Web.Compilation.BuildManager.CompileGlobalAsax() +52
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +337

[HttpException (0x80004005): Could not load file or assembly
'ReportingServicesNativeClient, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=89845dcd8080cc91' or one of its dependencies. An attempt was
made to load a program with an incorrect format.]
System.Web.Compilation.BuildManager.ReportTopLevelCompilationException()
+58
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +512
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager
appManager, IApplicationHost appHost, IConfigMapPathFactory
configMapPathFactory, HostingEnvironmentParameters hostingParameters) +729

[HttpException (0x80004005): Could not load file or assembly
'ReportingServicesNativeClient, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=89845dcd8080cc91' or one of its dependencies. An attempt was
made to load a program with an incorrect format.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8894031
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +259





--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:2.0.50727.4016;
ASP.NET Version:2.0.50727.4016

And from the event viewer

EventData

3008
A configuration error has occurred.
7/23/2009 5:43:19 AM
7/23/2009 12:43:19 PM
446f48f778ea4bdfa9b86aaec481232b
1
1
0
/LM/W3SVC/1/ROOT/Reports-1-128928265996401437
Full
/Reports
C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting
Services\ReportManager\
PLATO

5292
w3wp.exe
NT AUTHORITY\NETWORK SERVICE
HttpException
Could not load file or assembly 'ReportingServicesNativeClient,
Version=0.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of
its dependencies. An attempt was made to load a program with an incorrect
format.
http://localhost/Reports/Pages/Folder.aspx
/Reports/Pages/Folder.aspx
::1

False

NT AUTHORITY\NETWORK SERVICE
3
NT AUTHORITY\NETWORK SERVICE
False
at
System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() at
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() at
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager
appManager, IApplicationHost appHost, IConfigMapPathFactory
configMapPathFactory, HostingEnvironmentParameters hostingParameters)


How do I solve this issue?

Thanks,
Oded Dror

EggHeadCafe - Software Developer Portal of Choice
WPF And The Model View View Model Pattern
http://www.eggheadcafe.com/tutorials/aspnet/ec832ac7-6e4c-4ea8-81ab-7374d3da3425/wpf-and-the-model-view-vi.aspx