locked
CRM 4.0 Stop to work - Async service not starting anymore RRS feed

  • Question

  • Hi to all,

    After Email Router installation, a previously working installation of crm4.0 has stop to work. Searching into logs and much more, i have found this:

    Host CRMSERVER: failed while starting monitoring asynchronous operations queue. Exception: System.MethodAccessException: Microsoft.Crm.LocatorService..ctor()

    in Microsoft.Crm.Asynchronous.ConfigurationFactory.Create(CrmServiceFactory crmServiceFactory, AsyncServiceContext context)

    in Microsoft.Crm.Asynchronous.AsyncService.InitializeComponents()

    in Microsoft.Crm.Asynchronous.AsyncService.OnStart(String[] args)

    I have tryied the following solutions:

    - Repair CRM installation: not working, i have 2 errors: (i have translated it from italian)

    - Installinfo TargetFolder not found
    - The web site does not exist
    - PrivuserGroup not specified
    - IIS - Unable to find specified destination

    The same thing if i try to install an update rollup

    Any help?

    Cordially,

    Claudio Prono.

    Monday, March 8, 2010 10:29 AM

Answers

  • Hi, 

    Which version of E-mail Router have you installed? I've installed the "Microsoft Dynamics CRM Online E-mail Router" and
    had the same problem. This version should not be installed on an on-premise version of CRM Server. After searching the net couldn't find any answer that could solve the problem, so I decided that I will try to investigate it by myself. After all I found the problem. This version of CRM Online E-mail Router replaces some important DLLs (.net assemblies) that are not compatible with the CRM server. The most important one is the microsoft.crm.dll in th GAC.
    What I have done to solve the problem is the following:
    1. Checked the version of the latest rollup package that I have installed on the CRM server
    2. Downloaded this version of Rollup Installation package from the net
    3. Extracted the content of the installation package (I used mscab.exe for this)
    4. Replaced the microsoft.crm.dll in GAC with the one that was extracted in step 3. This can be done using gacutil.exe or by simply replacing the dll in the path (in 32bit version of windows) C:\WINDOWS\assembly\GAC_32\Microsoft.Crm\4.0.0.0__31bf3856ad364e35\microsoft.crm.dll using command prompt or directly opening in explorer (Start/Run) the following folder "C:\WINDOWS\assembly\GAC_32\Microsoft.Crm\4.0.0.0__31bf3856ad364e35" then copy/paste the dll.

    Hope this will help.

    David.


    wdavid
    Thursday, June 24, 2010 7:06 AM
  • It looks like something has gone very wrong in your environment.  If this is not a production machine, then I suggest you wipe the drive and start over.  If you are not able to uninstall or repair the CRM application then I think your options are limited.
    Best Regards | Twitter: edwardsdna
    Friday, March 12, 2010 6:32 PM

All replies

  • well you have problems if you

    targetFolder not found - im assuming it cant find CRM folder -correct me if im wrong
    website does not exist - i think its talking about CRM website in IIS. is this true? can you access CRM?
    privUserGroup in active directory - this is also very important group.


    i suggest you do a SQL backup. uninstall CRM and re-install CRM (with a new organization called 'test') then import your organization.


    looks like the install is broken?

    http://mscrmblog.net
    Microsoft Certified Business Management Solutions Specialist
    Microsoft Certified CRM Developer
    Tuesday, March 9, 2010 1:29 PM
  • The WWW site of CRM exist, if i try to go to the web site i have the following error:

     

    Errore server nell'applicazione '/'.

    Microsoft.Crm.LocatorService..ctor()

    Descrizione: Eccezione non gestita durante l'esecuzione della richiesta Web corrente. Per ulteriori informazioni sull'errore e sul suo punto di origine nel codice, vedere l'analisi dello stack.

    Dettagli eccezione: System.MethodAccessException: Microsoft.Crm.LocatorService..ctor()

    Errore nel codice sorgente:

    Durante l'esecuzione della richiesta Web corrente è stata generata un'eccezione non gestita. Per informazioni sull'origine e la posizione dell'eccezione, vedere l'analisi dello stack dell'eccezione riportata di seguito.

    Analisi dello stack:

    [MethodAccessException: Microsoft.Crm.LocatorService..ctor()]
       Microsoft.Crm.Application.Utility.Util.IsLive() +0
       Microsoft.Crm.MainApplication.Application_OnStart() +501
    


    Informazioni di versione: Versione di Microsoft .NET Framework:2.0.50727.3607; Versione di ASP.NET:2.0.50727.3082

    Anyway, i will backup all the database, then reinstall CRM. I make you know how proceed.

    Thank u for the moment.

    Claudio.
     
    Tuesday, March 9, 2010 5:31 PM
  • Another problem...when i try to uninstall CRM 4.0 the uninstall fails with this error:

    16:09:39|   Info| Executing Uninstall action: Microsoft.Crm.Setup.Server.RemoveHelpVirtualDirAction
    16:09:39|  Error| System.Exception: Operazione Microsoft.Crm.Setup.Server.RemoveHelpVirtualDirAction non riuscita. ---> System.Runtime.InteropServices.COMException (0x80070003): Impossibile trovare il percorso specificato.

       in System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
       in System.DirectoryServices.DirectoryEntry.Bind()
       in System.DirectoryServices.DirectoryEntry.get_SchemaClassName()
       in Microsoft.Crm.Setup.Server.Utility.IIsUtility.RetreiveWebVirtualDirSettings(String path)
       in Microsoft.Crm.Setup.Server.RemoveHelpVirtualDirAction.Do(IDictionary parameters)
       in Microsoft.Crm.Setup.Common.Action.ExecuteAction(Action action, IDictionary parameters, Boolean undo)
       --- Fine dell'analisi dello stack dell'eccezione interna ---, Error, RetryCancel, Option1
    16:09:47|   Info| InputResult: Retry
    16:09:47|  Error| System.Exception: Operazione Microsoft.Crm.Setup.Server.RemoveHelpVirtualDirAction non riuscita. ---> System.Runtime.InteropServices.COMException (0x80070003): Impossibile trovare il percorso specificato.

       in System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
       in System.DirectoryServices.DirectoryEntry.Bind()
       in System.DirectoryServices.DirectoryEntry.get_SchemaClassName()
       in Microsoft.Crm.Setup.Server.Utility.IIsUtility.RetreiveWebVirtualDirSettings(String path)
       in Microsoft.Crm.Setup.Server.RemoveHelpVirtualDirAction.Do(IDictionary parameters)
       in Microsoft.Crm.Setup.Common.Action.ExecuteAction(Action action, IDictionary parameters, Boolean undo)
       --- Fine dell'analisi dello stack dell'eccezione interna ---, Error, RetryCancel, Option1
    16:09:48|   Info| InputResult: Retry
    16:09:48|  Error| System.Exception: Operazione Microsoft.Crm.Setup.Server.RemoveHelpVirtualDirAction non riuscita. ---> System.Runtime.InteropServices.COMException (0x80070003): Impossibile trovare il percorso specificato.

       in System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
       in System.DirectoryServices.DirectoryEntry.Bind()
       in System.DirectoryServices.DirectoryEntry.get_SchemaClassName()
       in Microsoft.Crm.Setup.Server.Utility.IIsUtility.RetreiveWebVirtualDirSettings(String path)
       in Microsoft.Crm.Setup.Server.RemoveHelpVirtualDirAction.Do(IDictionary parameters)
       in Microsoft.Crm.Setup.Common.Action.ExecuteAction(Action action, IDictionary parameters, Boolean undo)
       --- Fine dell'analisi dello stack dell'eccezione interna ---, Error, RetryCancel, Option1
    16:09:49|   Info| InputResult: Retry
    16:09:49|  Error| System.Exception: Operazione Microsoft.Crm.Setup.Server.RemoveHelpVirtualDirAction non riuscita. ---> System.Runtime.InteropServices.COMException (0x80070003): Impossibile trovare il percorso specificato.

       in System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
       in System.DirectoryServices.DirectoryEntry.Bind()
       in System.DirectoryServices.DirectoryEntry.get_SchemaClassName()
       in Microsoft.Crm.Setup.Server.Utility.IIsUtility.RetreiveWebVirtualDirSettings(String path)
       in Microsoft.Crm.Setup.Server.RemoveHelpVirtualDirAction.Do(IDictionary parameters)
       in Microsoft.Crm.Setup.Common.Action.ExecuteAction(Action action, IDictionary parameters, Boolean undo)
       --- Fine dell'analisi dello stack dell'eccezione interna ---, Error, RetryCancel, Option1
    16:09:50|   Info| InputResult: Cancel
    16:09:50|  Error| Install exception.System.Exception: Operazione Microsoft.Crm.Setup.Server.RemoveHelpVirtualDirAction non riuscita. ---> System.Runtime.InteropServices.COMException (0x80070003): Impossibile trovare il percorso specificato.

       in System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
       in System.DirectoryServices.DirectoryEntry.Bind()
       in System.DirectoryServices.DirectoryEntry.get_SchemaClassName()
       in Microsoft.Crm.Setup.Server.Utility.IIsUtility.RetreiveWebVirtualDirSettings(String path)
       in Microsoft.Crm.Setup.Server.RemoveHelpVirtualDirAction.Do(IDictionary parameters)
       in Microsoft.Crm.Setup.Common.Action.ExecuteAction(Action action, IDictionary parameters, Boolean undo)
       --- Fine dell'analisi dello stack dell'eccezione interna ---
       in Microsoft.Crm.Setup.Common.Action.ExecuteAction(Action action, IDictionary parameters, Boolean undo)
       in Microsoft.Crm.Setup.Common.Installer.Uninstall(IDictionary stateSaver)
       in Microsoft.Crm.Setup.Common.ComposedInstaller.InternalUninstall(IDictionary savedState)
       in Microsoft.Crm.Setup.Common.ComposedInstaller.Uninstall(IDictionary savedState)
       in Microsoft.Crm.Setup.Server.ServerSetup.Uninstall(IDictionary data)
       in Microsoft.Crm.Setup.Server.ServerSetup.Run()
    16:09:50|   Info| Server Microsoft Dynamics CRM disinstalla non completato.
    16:09:50|   Info| Installazione di Server Microsoft Dynamics CRM non completata.

    Operazione Microsoft.Crm.Setup.Server.RemoveHelpVirtualDirAction non riuscita.
    Impossibile trovare il percorso specificato.

    And now how i can uninstall that software?

    Claudio Prono.

    Wednesday, March 10, 2010 3:11 PM
  • Wow...

    What is this mess...?

    Your environment mus thave a big problem as you seem to be unable to connect to the web site

    Are you sure nothing happened to your environment ?
    My blog : http://mscrmtools.blogspot.com
    You will find:
    Form Javascript Manager (export/import javascript from forms)
    ISV.Config Manager (graphical ISV.config edition - export/import)
    View Layout replicator (customize one view and replicate to others)
    And others (use tool tag on my blog)
    Wednesday, March 10, 2010 3:20 PM
    Moderator
  • It looks like something has gone very wrong in your environment.  If this is not a production machine, then I suggest you wipe the drive and start over.  If you are not able to uninstall or repair the CRM application then I think your options are limited.
    Best Regards | Twitter: edwardsdna
    Friday, March 12, 2010 6:32 PM
  • Hi, 

    Which version of E-mail Router have you installed? I've installed the "Microsoft Dynamics CRM Online E-mail Router" and
    had the same problem. This version should not be installed on an on-premise version of CRM Server. After searching the net couldn't find any answer that could solve the problem, so I decided that I will try to investigate it by myself. After all I found the problem. This version of CRM Online E-mail Router replaces some important DLLs (.net assemblies) that are not compatible with the CRM server. The most important one is the microsoft.crm.dll in th GAC.
    What I have done to solve the problem is the following:
    1. Checked the version of the latest rollup package that I have installed on the CRM server
    2. Downloaded this version of Rollup Installation package from the net
    3. Extracted the content of the installation package (I used mscab.exe for this)
    4. Replaced the microsoft.crm.dll in GAC with the one that was extracted in step 3. This can be done using gacutil.exe or by simply replacing the dll in the path (in 32bit version of windows) C:\WINDOWS\assembly\GAC_32\Microsoft.Crm\4.0.0.0__31bf3856ad364e35\microsoft.crm.dll using command prompt or directly opening in explorer (Start/Run) the following folder "C:\WINDOWS\assembly\GAC_32\Microsoft.Crm\4.0.0.0__31bf3856ad364e35" then copy/paste the dll.

    Hope this will help.

    David.


    wdavid
    Thursday, June 24, 2010 7:06 AM
  • Indeed, this was the solution; thanks man !!! You saved the day :-)

    Kind regards,

    Philippe


    it's all very nice when it works
    Wednesday, September 8, 2010 1:46 PM