Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • I am working on a VB.Net project. I have an error that I get only when I run the project in debug mode. The error only comes when I try to run reports. The error says "Binding Failure was Detected." Here are the details it gives:

                                    The assembly with display name 'DevExpress.XtraPrinting.v10.1' failed to load in the 'Load' binding context of the AppDomain with ID 1. The cause of the failure was: System.IO.FileNotFoundException: Could not load file or assembly 'DevExpress.XtraPrinting.v10.1' or one of its dependencies. The system cannot find the file specified.
                                    File name: 'DevExpress.XtraPrinting.v10.1'

                                    === Pre-bind state information ===
                                    LOG: User = IRONWOOD\DennisM
                                    LOG: DisplayName = DevExpress.XtraPrinting.v10.1
                                     (Partial)
                                    LOG: Appbase = file:///C:/School/School/bin/Debug/
                                    LOG: Initial PrivatePath = NULL
                                    Calling assembly : DevExpress.Data.v10.1, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a.
                                    ===
                                    LOG: This bind starts in default load context.
                                    LOG: Using application configuration file: C:\School\School\bin\Debug\Presentation.vshost.exe.Config
                                    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config.
                                    LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
                                    LOG: Attempting download of new URL file:///C:/School/School/bin/Debug/DevExpress.XtraPrinting.v10.1.DLL.
                                    LOG: Attempting download of new URL file:///C:/School/School/bin/Debug/DevExpress.XtraPrinting.v10.1/DevExpress.XtraPrinting.v10.1.DLL.
                                    LOG: Attempting download of new URL file:///C:/School/School/bin/Debug/DevExpress.XtraPrinting.v10.1.EXE.
                                    LOG: Attempting download of new URL file:///C:/School/School/bin/Debug/DevExpress.XtraPrinting.v10.1/DevExpress.XtraPrinting.v10.1.EXE.

                                    I have tried removing my DevExpress references and adding them back in, but that did not help. It looks like there are some files that should be in my bin folder, but aren't there. Is that right? If so, where do I get them?

                                    Thanks,

                                    Dennis

                                0

                                Hello Dennis,

                                Please process your application via the ProjectConverter tool (Start Menu\Programs\Developer Express v2010 vol 1\Components\Tools), delete the Bin and Obj subdirectory of your project and rebuild it. If the problem persists, try the recommendations from the BindingFailure was detected in DevExpress.XtraPrinting.v7.1 thread. If it does not help either, please provide us with a sample project, demonstrating the problem in action. Then we'll try to find the immediate cause of the problem.

                                Thanks,
                                Alessandro.

                                0

                                I did what you said, and it did not solve the problem. I decided to remove/re-add the reference to DevExpress products. The error I gave above went away, but another came in it's place asking about DevExpress.Xpf.Core.v10.1 instead of DevExpress.XtraPrinting.v10.1.

                                As I looked through the references list, I noticed that DevExpress.Xpf.core.v10.1 says (version-0.0.0.0) and (Path - <The system cannot find the reference specified>

                                I will try removing and re-install DevExpress.

                                Dennis

                                0

                                I uninstalled and re-installed Developer Express. The problem persists. I verified that the refernced dll file is in the same folder as all the other references. That is, I checked my hard drive to see that the file "DevExpress.Xpf.Core.v10.1.dll" is indeed in the "C:\Program Files (x86)\DevExpress 2010.1\Components\Sources\DevExpress.DLL" folder. Unfortunately, my project's references still say (version - 0.0.0.0) and (Path - <The system cannot find the reference specified>) regarding the DevExpress.Xpf.Core.v10.1 reference.

                                Any help would be appreciated.

                                Thank you,

                                Dennis

                                0

                                Just to be clearn, here is the current error. It happens whenever I try to export a report. And this problem does not just happen in debug mode anymore.

                                BindingFailure was detected
                                Message: The assembly with display name 'DevExpress.Xpf.Core.v10.1' failed to load in the 'Load' binding context of the AppDomain with ID 1. The cause of the failure was: System.BadImageFormatException: Could not load file or assembly 'DevExpress.Xpf.Core.v10.1' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
                                File name: 'DevExpress.Xpf.Core.v10.1'

                                === Pre-bind state information ===
                                LOG: User = IRONWOOD\DennisM
                                LOG: DisplayName = DevExpress.Xpf.Core.v10.1
                                 (Partial)
                                LOG: Appbase = file:///C:/School/School/bin/Debug/
                                LOG: Initial PrivatePath = NULL
                                Calling assembly : System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
                                ===
                                LOG: This bind starts in default load context.
                                LOG: Using application configuration file: C:\School\School\bin\Debug\Presentation.vshost.exe.config
                                LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config.
                                LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
                                LOG: Attempting download of new URL file:///C:/School/School/bin/Debug/DevExpress.Xpf.Core.v10.1.DLL.
                                ERR: Failed to complete setup of assembly (hr = 0x8013101b). Probing terminated.

                                Thanks,

                                Dennis

                                0

                                Sorry for so many posts....

                                I removed all references to DevExpress.Xpf.Core.v10.1 and the problem went away.

                                Sorry for the trouble. Thank you for the help. I'll re-open this if I have more problems later on.

                                Dennis

                                0

                                Dennis,

                                Please let me know what value is returned in your project when executing the following code:

                                	
                                [C#]
                                string CLRVersion = System.Runtime.InteropServices.RuntimeEnvironment.GetSystemVersion();

                                NOTE: Prior to running this code go to the Project > Properties > Debug tab in the VS and disable "Enable the Visual Studio hosting process" option (see the attached screenshot).

                                Thanks,
                                Alessandro.

                                Image.JPG
                                0

                                hmmm... the problem did happen again.

                                I ran the following code (VB)

                                Dim CLRVersion As String = System.Runtime.InteropServices.RuntimeEnvironment.GetSystemVersion()

                                CLRVersion = Version v2.0.50727

                                0

                                Dennis,

                                Thank you for the information. Apparently, the problem is caused by the fact that you're trying to run your application on CLR v2.0.50727 (supported frameworks: 2.0, 3.0, 3.0), whereas our XPF assemblies are built upon the CLR v4.0.30319 (supported frameworks: 4.0). Please add the removed reference to the DevExpress.Xpf.Core.v10.1 assembly, and upgrade your project to the .NET Framework 4.0. This can be done only in VS2010. Please let me know the result.

                                Thanks,
                                Alessandro.

                                0

                                Alessandro,

                                I do not have Visual Studio 2010. Does this mean that I need to install a previous version of DevExpress? What is the last version that will work?

                                Dennis

                                0

                                Hello Dennis,

                                Actually, v2010 vol 1 WPF and Silverlight components are compatible with VS 2010 (.NET 4.0) only. That's why you cannot integrate them into VS 2008 IDE. Please check the following blog post to learn more: Merging our Silverlight and WPF UI controls. I also suggest that you refer to the following report, to learn more on why this decision was made Is it possible to use WPF controls version v10.1 and higher under .Net 3.5 Framework and Visual Studio 2008?. Even though it is devoted to WPF controls, similar restrictions are applied to other controls, including our Silverlight products. To install them for VS 2008 use DXperience v2009 vol 3, which can co-exist with v2010 vol 1.

                                Thanks,
                                Alessandro.

                                To start a chat you should create a support ticket


                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners