none
CCF 2009 Agent Desktop: DESKTOP_APPCREATE_ERROR: Unable to start application RRS feed

  • Question

  • Hi,
    I got a "DESKTOP_APPCREATE_ERROR: Unable to start application" error when opening any hosted Web applications (including the Sample Web App) from the Agent Desktop on one specific workstation.  The tab for the Web app would open but is empty.  All other types of applications could be launched with no problems.  I don't have this error on other workstaitons but only this one.  I've tried reinstall but still not working.  Here is the stack trace from the CCF log:

    Microsoft Customer Care Framework 2009: DESKTOP_APPCREATE_ERROR: Unable to start application:
    System.Runtime.InteropServices.COMException (0x80040202): Exception from HRESULT: 0x80040202
       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.UserControl.OnCreateControl()
       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)
       at Microsoft.Ccf.Csr.UIConfiguration.CCFAppsUI.AddApplication(String panelName, Object app, String initializationXml, Boolean closeButton)
       at Microsoft.Ccf.Samples.Csr.AgentDesktop.Desktop.startApplication(IHostedApplication app)


    Thanks in advance for any help.

    Ken
    Tuesday, June 30, 2009 3:28 PM

All replies

  • Hi,

    Are all other hosted applications opening corectly except for the Web App that is hosted?

    Can you open that particular Web App or any other web App in a browser on that pc?

    At which exact point is this error beeing displayed? Does the Agent Desktop even open?

    Has the Agent desktop been deployed via ClickOnce to this machine?
    If so can you try clearing the cache an then trying again..


    Ill wait for your reply.

    Regards,
    Suelman Rahaman

     

    Wednesday, July 1, 2009 12:44 PM
  • Yes, only hosted Web Apps have the problem.  The Agent Desktop can be open as well as other types of applications.  All the Web Apps I tried can be open from the browser correctly.  The error pops up right after the Agent Desktop is started up (for the global Web App) or after the 'New' button is clicked to create a new customer (for the mapped Web App).  The Agent Desktop was installed manually.

    Thank you!
    Ken
    Wednesday, July 1, 2009 4:20 PM
  • Sounds like Protected mode in IE is turned on.
    You will need to turn that off for sites that you wish to access and host via CCF.

    MattB-MSFT

    Thursday, July 2, 2009 2:35 PM
    Moderator
  • The Security tab in IE was hidden by our administrator...  Plus, we use XP and IE6 on our workstations.  So is there a similar setting like Protected mode in IE6?  Thank you!

    Ken
    Friday, July 3, 2009 2:23 PM
  • Hi,

    Are you using any workflows on those web pages? can you try a standard web page with no workflow? just add a new new web application and point the URL to any external website eg. www.microsoft.com and disable all other web applcations. If that works then i think the issue lies with the wy the workflows are defined.
    Monday, July 6, 2009 9:32 AM
  • Unfortunately I do not have ready access to that configuration or a machine running iE6..  however I can tell you that the error you are getting is related to the CCF Browser system “wiring” the browser events, which will fail on IE 7 and 8 if protected mode is running in the same manner , with the same error , you are describing. 

    I have attached a System.Diag block you can replace in the AgentDesktop Config that will give you a step by step break down of where the error is occurring.

    Please add this to the app.config for the agentdesktop and run the desktop though to the error,  you will see, in the visual studio output log,  the error generated from the core CCF system.. it should give you a bit more info on why the failure is happening.

    <system.diagnostics>
        <sources>
          <source name="Microsoft.Practices.CompositeUI.EventBroker.EventTopic"
                  switchName="EventTopicSwitch"
                  switchType="System.Diagnostics.SourceSwitch">
            <listeners>
              <add name="console"
               type="System.Diagnostics.DefaultTraceListener">
              </add>
              <remove name="Default"/>
            </listeners>
          </source>
        </sources>
        <switches>
          <add name="EventTopicSwitch" value="Verbose"/>
          <!-- 
                Possible values for switches: Off, Error, Warining, Info, Verbose
                    Verbose:    includes Error, Warning, Info, Trace levels
                    Info:       includes Error, Warning, Info levels
                    Warning:    includes Error, Warning levels
                    Error:      includes Error level
            -->
          <add name="Microsoft.Ccf.Common.Logging" value="Verbose" />
        </switches>
      </system.diagnostics>

    Make sure you remove this block, or set the swtich value's to Error prior to doing any perf testing.
    MattB-MSFT.

     

     

    Tuesday, July 7, 2009 2:30 PM
    Moderator
  • Hi,

    I too have a similar issue currently,

    On one particular workstation which is a windows 2008 OS & has IE 7 installed, the CCF AgentDesktop does not host the web applications. The agent desktop has been installed via ClickOnce. The following is the Stack Trace from the CCF log file:

    7/14/2009 3:47:50 PM: Microsoft Customer Care Framework 2009: DESKTOP_ERR_SETTING_CONTEXT_APP: Failed to set the application context.
    Microsoft.Practices.CompositeUI.EventBroker.EventTopicException: One or more exceptions occurred while firing the topic 'topic://RequestDefaultAction'
       at Microsoft.Practices.CompositeUI.EventBroker.EventTopic.CallSubscriptionHandlers(Object sender, EventArgs e, EventTopicFireDelegate[] handlers)
       at Microsoft.Practices.CompositeUI.EventBroker.EventTopic.Fire(Object sender, EventArgs e, WorkItem workItem, PublicationScope scope)
       at Microsoft.Practices.CompositeUI.EventBroker.EventTopic.Fire(Publication publication, Object sender, EventArgs e)
       at Microsoft.Practices.CompositeUI.EventBroker.Publication.PublicationHandler(Object sender, EventArgs e)
       at Microsoft.Ccf.Csr.ApplicationHost.ExecuteDefaultActions(Boolean taggedApplicationsOnly)
       at Microsoft.Ccf.Csr.ApplicationHost.ExecuteDefaultActions()
       at Microsoft.Ccf.Samples.Csr.AgentDesktop.Desktop.SetContext(CallClassProvider call)
    7/14/2009 3:47:50 PM: Microsoft Customer Care Framework 2009: Desktop_Load() successful

    Thanks in Advance for any help on this.

    Thanks & Regards
    Soma
    Tuesday, July 14, 2009 9:33 PM
  • Follow the steps above for turning on diagnostics.
    then post the output stream.

    MattB-MSFT

    Tuesday, July 14, 2009 9:42 PM
    Moderator
  • Thanks Matt,

    It was the problem with Protected Mode being turned ON for the Site Zone, as you described earlier within this mail chain. Turned Off the Protected Mode, the applications seem to work fine.

    Thanks & Regards
    Soma
    Wednesday, July 15, 2009 8:41 AM