How to solve “Could not load file or assembly ‘DevExpress.Xpf.Printing.v11.1.Core, Version=11.1.6.5… ” error?

I just transferred to a more powerful computer with a 64-bit operating system.  As expected there were errors in transferring my Visual Studio Lightswitch projects.  One of the errors is:

“Could not load file or assembly ‘DevExpress.Xpf.Printing.v11.1.Core, Version=11.1.6.5… ”

To solve the error you will have to follow two steps

1. Set all the DevExpress assemblies in the ServerGenerated directory to CopyLocal=True

2. Comment all the DevExpress assemblies in the Config.XML in the ClientGenerated directory entries except DevExpress.XtraReports.v11.1.LightSwitch.Common and DevExpress.XtraReports.v11.1.LightSwitch.Client

Thats it, your XTRAReport now will be working as expected.   Below is the sample report already working.

Advertisements

8 thoughts on “How to solve “Could not load file or assembly ‘DevExpress.Xpf.Printing.v11.1.Core, Version=11.1.6.5… ” error?

      1. Yes but I am using the extension in my project and I get a bunch of “could not find reference to DevExpress…” errors if I turn off the extension. I need it for my project so turning it off is not really an option 😦 Any other ideas?

      2. Try Clean and Build your project, if there are errors click on them they normally point directly to the code that causes the error, if the code are Lightswitch generated then go to the screen and remove the control.

      3. There are no errors in the Errors panel. I just get that window and after I close it I get another small one that says: “Object reference not set to an instance of an object.”

    1. Hmmm…where is it happening, upon opening of the application or upon opening of the report. If it is upon opening of the report then re-create the report. The beauty of a dev-express report is you can cut-and paste the controls. If it is upon opening of the application, there might be some corrupt XAML which can be fixed using CLEAN and BUILD, aside from that you can post your problem in Microsoft MSDN Lightswitch Forum (http://social.msdn.microsoft.com/Forums/en-US/category/vslightswitch), I am active poster but there are also Microsoft employees who is part of the Lightswitch team that could help us in disecting your problem, especially in the XAML side.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s