ReportViewer.RefreshReport: 'Microsoft.ReportViewer.WinForms.XmlSerializers' failed to load

P

Pieter

Hi,

In my application VB.NET 2005 application I placed a ReportViewer, and link
it to a server-report:
Me.ReportViewer1.ProcessingMode =
Microsoft.Reporting.WinForms.ProcessingMode.Remote
Me.ReportViewer1.ServerReport.ReportPath =
"/myproject/DemandeDeCotation"
Me.ReportViewer1.ServerReport.ReportServerUrl = New
System.Uri("http://myserver/reportserver2005", System.UriKind.Absolute)

When I run the application, I get this exception on the
Me.ReportViewer1.RefreshReport()

When I do exactly the same, but in a new project, everything works fine... I
just don't get it :-/

Thanks a lot in advance,

Pieter


The exception:

BindingFailure was detected
Message: The assembly with display name
'Microsoft.ReportViewer.WinForms.XmlSerializers' failed to load in the
'LoadFrom' binding context of the AppDomain with ID 1. The cause of the
failure was: System.IO.FileNotFoundException: Could not load file or
assembly 'Microsoft.ReportViewer.WinForms.XmlSerializers, Version=8.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
dependencies. The system cannot find the file specified.
File name: 'Microsoft.ReportViewer.WinForms.XmlSerializers, Version=8.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

=== Pre-bind state information ===
LOG: User = MyDomain\MyUserName
LOG: DisplayName = Microsoft.ReportViewer.WinForms.XmlSerializers,
Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a,
processorArchitecture=MSIL
(Fully-specified)
LOG: Appbase = file:///D:/NET Projecten/Code Source Sodimex -
Ghost/Sodimex/bin/Debug/
LOG: Initial PrivatePath = NULL
Calling assembly : System.Xml, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: D:\NET Projecten\Code Source
Sodimex - Ghost\Sodimex\bin\Debug\Ghost.vshost.exe.config
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Post-policy reference: Microsoft.ReportViewer.WinForms.XmlSerializers,
Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a,
processorArchitecture=MSIL
LOG: Attempting download of new URL file:///D:/NET Projecten/Code Source
Sodimex -
Ghost/Sodimex/bin/Debug/Microsoft.ReportViewer.WinForms.XmlSerializers.DLL.
LOG: Attempting download of new URL file:///D:/NET Projecten/Code Source
Sodimex -
Ghost/Sodimex/bin/Debug/Microsoft.ReportViewer.WinForms.XmlSerializers/Microsoft.ReportViewer.WinForms.XmlSerializers.DLL.
LOG: Attempting download of new URL file:///D:/NET Projecten/Code Source
Sodimex -
Ghost/Sodimex/bin/Debug/Microsoft.ReportViewer.WinForms.XmlSerializers.EXE.
LOG: Attempting download of new URL file:///D:/NET Projecten/Code Source
Sodimex -
Ghost/Sodimex/bin/Debug/Microsoft.ReportViewer.WinForms.XmlSerializers/Microsoft.ReportViewer.WinForms.XmlSerializers.EXE.
 
P

Pieter

It's getting weird:
When I run the exe-file everything works fine, but when I run it from Visual
Studio I get the error...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top