467,891 Members | 1,700 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,891 developers. It's quick & easy.

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

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
  • viewed: 7947
Share:
1 Reply
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.

Similar topics

3 posts views Thread by Xpeppe | last post: by
1 post views Thread by steve | last post: by
reply views Thread by elbetzio | last post: by
1 post views Thread by Brett Romero | last post: by
reply views Thread by Fred G. Sanford | last post: by
reply views Thread by billygotee | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.