By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,771 Members | 1,669 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,771 IT Pros & Developers. It's quick & easy.

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

P: n/a
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\conf ig\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 .

Jan 25 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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...
Jan 25 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.