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
About

Software developer living in the Philippines.

Posted in Lightswitch
8 comments on “How to solve “Could not load file or assembly ‘DevExpress.Xpf.Printing.v11.1.Core, Version=11.1.6.5… ” error?
  1. mcknightikus says:

    Hello! Very nice and simple guide for the problem. Thank you – but I still get this error after everything: http://i.imgur.com/v6RaP.jpg
    Do you have any ideas or do I just need to remove all phone numbers from the project? 🙂 Any help would be appreciated.

    • hgminerva says:

      Remove the extension you installed in your project by un-checking the extension at the project properties extension tab.

      • mcknightikus says:

        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?

      • hgminerva says:

        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.

      • mcknightikus says:

        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.”

    • hgminerva says:

      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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

Author

Harold Glenn P. Minerva
Software Developer / Tech Enthusiast
Living in the Philippines

View Harold Glenn Minerva's profile on LinkedIn

Instagram

Software Engineer - Seasonal and Range Trading Software. Magenta Trader is a powerful stock market visualization software that increases your probability of trading success.

Software Architect and Founder - Easyfis.com is a multi-tenant cloud-based Software-as-a-Service (SaaS) business app that caters to micro, small and medium trading businesses.

CTO and Co-Founder - We give your company the leverage by providing innovative software solutions products such as Point-of-Sales (POS), Financial Information System (FMIS), Payroll and DTR (HRIS), and many more.

%d bloggers like this: