New Posts New Posts RSS Feed: Could not locate a suitable binder for a UltraLabel
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Could not locate a suitable binder for a UltraLabel

 Post Reply Post Reply
Author
matricis View Drop Down
Newbie
Newbie
Avatar

Joined: 13-Jul-2010
Posts: 5
Post Options Post Options   Quote matricis Quote  Post ReplyReply Direct Link To This Post Topic: Could not locate a suitable binder for a UltraLabel
    Posted: 13-Jul-2010 at 10:32am
Back to Top
davidklitzke View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 14-Jun-2007
Posts: 715
Post Options Post Options   Quote davidklitzke Quote  Post ReplyReply Direct Link To This Post Posted: 13-Jul-2010 at 9:33pm
Are you using  a 64-bit OS?  There is a known problem with the Assembly Binding Redirector if using 64-bit OS?  See:
 
Are you using a machine.config or a local app.config?
 
For binding failures, see if you can get a log from fusion log viewer:
 
Back to Top
matricis View Drop Down
Newbie
Newbie
Avatar

Joined: 13-Jul-2010
Posts: 5
Post Options Post Options   Quote matricis Quote  Post ReplyReply Direct Link To This Post Posted: 14-Jul-2010 at 6:04am
No we're using a 32bit OS and we're using a local app.config

I'll check your link for the binding failure log

Thanks
Back to Top
davidklitzke View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 14-Jun-2007
Posts: 715
Post Options Post Options   Quote davidklitzke Quote  Post ReplyReply Direct Link To This Post Posted: 14-Jul-2010 at 9:36am
Does the ToolBox Installer think that Infragistics 9.1 is installed?
 
What specific version of Infragistics 9.1 are you using?
 
Did you run the Assembly Binding Redirector?
Back to Top
matricis View Drop Down
Newbie
Newbie
Avatar

Joined: 13-Jul-2010
Posts: 5
Post Options Post Options   Quote matricis Quote  Post ReplyReply Direct Link To This Post Posted: 14-Jul-2010 at 10:55am
Hi David

We're using Infragistics 9.1.20091.2094

Here's the result of the Assembly Binding Redirector :

*** Assembly Binder Log Entry  (7/14/2010 @ 1:29:24 PM) ***

The operation was successful.
Bind result: hr = 0x0. The operation completed successfully.

Assembly manager loaded from:  c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Running under executable  C:\WINDOWS\system32\MsiExec.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: User = NT AUTHORITY\SYSTEM
LOG: DisplayName = System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
 (Fully-specified)
LOG: Appbase = file:///C:/WINDOWS/system32/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = NULL
Calling assembly : QMS, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in LoadFrom load context.
WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().
LOG: No application configuration file found.
LOG: Using host configuration file: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\CFG4A5.tmp
LOG: Using machine configuration file from c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Switch from LoadFrom context to default context.
LOG: Binding succeeds. Returns assembly from C:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll.
LOG: Assembly is loaded in default load context.

Back to Top
davidklitzke View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 14-Jun-2007
Posts: 715
Post Options Post Options   Quote davidklitzke Quote  Post ReplyReply Direct Link To This Post Posted: 14-Jul-2010 at 11:30am
The log indicates success, but I notice that says that it is using the machine.config.  Try running your app with the machine.config instead of the local app.config.  If that works, then there is something wrong with your local app.config.

Edited by davidklitzke - 14-Jul-2010 at 11:30am
Back to Top
matricis View Drop Down
Newbie
Newbie
Avatar

Joined: 13-Jul-2010
Posts: 5
Post Options Post Options   Quote matricis Quote  Post ReplyReply Direct Link To This Post Posted: 15-Jul-2010 at 7:36am
Hi David

I ran the Fusion Logger on our integration server another time and I found some new errors.
uploads/850/Fusion_Log_Errors.zip

Notice that they all found the application configuration file correctly this time.

Most of them are related to the resources assembly and I don't quite understand why.

The one that stand out the most is Infragistics2.Win.v9.1, Version=9.1.20091.1000 because it's the old version of the Infragistic control. Why is IdeaBlade.UI.WinForms.InfragisticsControls.v9_1.dll depending on the old version.

In our setup project, I checked the dependencies and found out that they all depend on the old .1000 version (compared to the new .2094 version)



I tried removing the IdeaBlade.UI.WinForms.InfragisticsControls.v9_1.dll from our setup project as it doesn't seem to be needed at all but when I run the application on the integration server I have another error

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at IdeaBlade.UI.WinForms.UIBinderMap.UpdateMap(Assembly pAssembly, Type pBinderBaseType)
   at IdeaBlade.UI.WinForms.ControlBinderMap.LoadControlSuite(Type pControlType)
   at IdeaBlade.UI.WinForms.ControlBinderMap.GetDataBinder(Type pControlType)
   at IdeaBlade.UI.WinForms.ControlBindingManager.BindCore(BindingDescriptor pDescriptor)
   at IdeaBlade.UI.WinForms.BindingManager.BindAll()
   at IdeaBlade.UI.WinForms.BindingManager.EndInit()
   at HSMS.Presentation.CostSheet.CostSheetForm.InitializeComponent()
   at HSMS.Presentation.CostSheet.CostSheetForm..ctor(ICostSheetEditorUI editor, IUIMediator mediator)
   at Dashboard.Dashboard.OpenCostSheetForm(ICostSheet costSheet)
   at HSMS.Presentation.CostSheet.CostSheetGrid.EditCostSheet()
   at HSMS.Presentation.CostSheet.CostSheetGrid._itemGrid_DoubleClick(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnDoubleClick(EventArgs e)
   at Infragistics.Win.UltraControlBase.OnDoubleClick(EventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Any of this new info makes sense to you?
Back to Top
davidklitzke View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 14-Jun-2007
Posts: 715
Post Options Post Options   Quote davidklitzke Quote  Post ReplyReply Direct Link To This Post Posted: 15-Jul-2010 at 11:32am
You are correct that the IdeaBlade DLL may look like it has a dependency on 9.1.20091.1000  because that is the version that was used to build the DLL, but in fact all of the Infragistics references in the DevForce DLL have their Specific Version property set to False.
 
You need to do something similar in your solution.  Make sure that your Infragistics references have their Specific Version property set to False.
Back to Top
matricis View Drop Down
Newbie
Newbie
Avatar

Joined: 13-Jul-2010
Posts: 5
Post Options Post Options   Quote matricis Quote  Post ReplyReply Direct Link To This Post Posted: 16-Jul-2010 at 11:46am
Good news!

I fixed my problem.

After a checked for the 10th time that all my dlls were set with SpecificVersion=False, I decided to install DevForce 5.2.7 to be sure taht all DevForce assemblies were not expecting specific version.

As expected, after the install, I rebuilded my solution and no assembly problem were detected (all referenced assembly were not expecting a specific version)

But during the install, the DevForce installer warned me about "unsupported" Infragistics version and asked me to add assemblyBinding instruction in my machine.config.

So I copied these lines in my application configuration file and after I deployed my app on my integration server, no more error!

Thanks David for you help
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down