Ticket Q265903
Visible to All Users

Binding Failure was detected

created 15 years ago

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

Show previous comments (7)
Alessandro (DevExpress Support) 15 years ago

    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.

      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

      Alessandro (DevExpress Support) 15 years ago

        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.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.