none
Issue with hosting Web application on x64 RRS feed

  • Question

  • Hello!

    AgentDesktop throws following error on Win 2008 x64 machine during web application integration:

    Message: "Object reference not set to an instance of an object."

    Source: "mscorlib"

    Trace:

    ===================================================

       at System.Runtime.InteropServices.ComTypes.IConnectionPoint.Advise(Object pUnkSink, Int32& pdwCookie)
       at Microsoft.Ccf.Csr.Browser.Web.WebBrowserEventSink.Advise(IWebBrowser2 ie)
       at Microsoft.Ccf.Csr.Browser.Web.WebBrowserExtended.StartBrowser(String urlString)
       at Microsoft.Ccf.Csr.Browser.Web.WebBrowserExtended.WebBrowserExtended_Load(Object sender, EventArgs e)
       at System.Windows.Forms.UserControl.OnLoad(EventArgs e)
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl()
       at System.Windows.Forms.Control.ControlCollection.Add(Control value)
       at Microsoft.Practices.CompositeUI.WinForms.DeckWorkspace.OnShow(Control smartPart, SmartPartInfo smartPartInfo)
       at Microsoft.Practices.CompositeUI.WinForms.DeckWorkspace.Microsoft.Practices.CompositeUI.SmartParts.IComposableWorkspace<System.Windows.Forms.Control,Microsoft.Practices.CompositeUI.SmartParts.SmartPartInfo>.OnShow(Control smartPart, SmartPartInfo smartPartInfo)
       at Microsoft.Practices.CompositeUI.SmartParts.WorkspaceComposer`2.OnShow(TSmartPart smartPart, TSmartPartInfo smartPartInfo)
       at Microsoft.Practices.CompositeUI.SmartParts.Workspace`2.Show(Object smartPart, ISmartPartInfo smartPartInfo)
       at Microsoft.Practices.CompositeUI.WinForms.DeckWorkspace.Show(Object smartPart, ISmartPartInfo smartPartInfo)
       at Microsoft.Ccf.Csr.CcfDeckControl.ShowApplication(Object application, Boolean closable)
       at Microsoft.Ccf.Csr.UIConfiguration.CCFPanel.Add(Object child, String initializationXml, Boolean useToolbar, Boolean closeButton) in C:\Program Files (x86)\Microsoft CCF 2009\Reference Implementations\Microsoft.Ccf.Samples\Csr\HostedControlInterfaces\CCFPanel.cs:line 315
       at Microsoft.Ccf.Csr.UIConfiguration.CCFAppsUI.AddApplication(String panelName, Object app, String initializationXml, Boolean closeButton) in C:\Program Files (x86)\Microsoft CCF 2009\Reference Implementations\Microsoft.Ccf.Samples\Csr\HostedControlInterfaces\UIConfiguration.cs:line 1410
       at Microsoft.Ccf.Samples.Csr.AgentDesktop.Desktop.startApplication(IHostedApplication app) in c:\Program Files (x86)\Microsoft CCF 2009\Reference Implementations\Microsoft.Ccf.Samples\Csr\AgentDesktop\Desktop.cs:line 3004
       at Microsoft.Ccf.Csr.ApplicationHost.LoadApplications(ArrayList appsInWorkflow, Boolean loadOnlyGlobal, Boolean workflowExists)
       at Microsoft.Ccf.Samples.Csr.AgentDesktop.Desktop.AddSession(CustomerProviderCustomerRecord customerRecord, CallClassProvider call) in c:\Program Files (x86)\Microsoft CCF 2009\Reference Implementations\Microsoft.Ccf.Samples\Csr\AgentDesktop\Desktop.cs:line 1043
       at Microsoft.Ccf.Samples.Csr.AgentDesktop.Desktop.startHostedApplications() in c:\Program Files (x86)\Microsoft CCF 2009\Reference Implementations\Microsoft.Ccf.Samples\Csr\AgentDesktop\Desktop.cs:line 2899
       at Microsoft.Ccf.Samples.Csr.AgentDesktop.Desktop.Desktop_Load(Object sender, EventArgs e) in c:\Program Files (x86)\Microsoft CCF 2009\Reference Implementations\Microsoft.Ccf.Samples\Csr\AgentDesktop\Desktop.cs:line 2538
       at System.Windows.Forms.Form.OnLoad(EventArgs e)
       at Microsoft.Ccf.Csr.UIConfiguration.UIConfiguration.OnLoad(EventArgs e) in C:\Program Files (x86)\Microsoft CCF 2009\Reference Implementations\Microsoft.Ccf.Samples\Csr\HostedControlInterfaces\UIConfiguration.cs:line 364
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl()
       at System.Windows.Forms.Control.WmShowWindow(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at Microsoft.Ccf.Csr.UIConfiguration.UIConfiguration.WndProc(Message& m) in C:\Program Files (x86)\Microsoft CCF 2009\Reference Implementations\Microsoft.Ccf.Samples\Csr\HostedControlInterfaces\UIConfiguration.cs:line 477
       at Microsoft.Ccf.Samples.Csr.AgentDesktop.Desktop.WndProc(Message& m) in c:\Program Files (x86)\Microsoft CCF 2009\Reference Implementations\Microsoft.Ccf.Samples\Csr\AgentDesktop\Desktop.cs:line 525
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    ================================================

     The platform target is indicated to x64. AgentDesktop from installation package successfully integrates web applications on the same machine.

    How to compile (or configure) AgentDesktop for running on x64 machine?

    Thursday, June 14, 2012 3:52 PM

Answers

  • The issue is solved! 

    Resume: For compiling AgentDesktop on x64 set target platform in Visual Studio to x86. It caused by CCF dll dependency.

    CCF version: 2009 SP1 QFE

    • Marked as answer by Pavlentij Sunday, June 17, 2012 11:09 PM
    Sunday, June 17, 2012 11:09 PM