locked
Error after upgrading to MS CRM 4 RRS feed

  • Question

  • Hi,

     

    I recently made an upgrade to CRM 4 from CRM 3 . Iran the install per as the instructions on the Ms blog:  http://blogs.msdn.com/crm/archive/2005/05/01/upgrading-to-crm-4-0.aspx

     

    The installation went fine without any errors and I was prompted to restart the server. After that when I attempted to log in I got the error

     

    Server Error in '/' Application.


    Configuration Error

    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: Could not load file or assembly 'Microsoft.Crm, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    Source Error:

     
    Line 7:          
    Line 8:          
    Line 9:                                     <add assembly="Microsoft.Crm, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    Line 10:                                    <add assembly="Microsoft.Crm.Entities, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    Line 11:                                    <add assembly="Microsoft.Crm.ManagedInterop, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>


    Source File: C:\Program Files\Microsoft CRM\CRMWeb\web.config    Line: 9

     

    I have been searching around on the web and some of the advice was to remove the offending assembly line in the config file. I did this but then I got the following error:

     

    Server Error in '/' Application.


    Object reference not set to an instance of an object.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace:

     
    [NullReferenceException: Object reference not set to an instance of an object.]
       Microsoft.Crm.Authentication.WebConfigAuthenticationSettings.LoadWebConfigSettings() +17
       Microsoft.Crm.Authentication.WebConfigAuthenticationSettings..ctor() +5
       Microsoft.Crm.Authentication.WebConfigAuthenticationSettings..cctor() +20

     

    Why is this happening? I have no idea what to do and do not understand why we would get these messages as the CRM 3 was fully operational before the upgrade.

     

    Please advise.

     

    Thanks

     

    Monday, April 19, 2010 12:02 AM

Answers

  • It looks to me like the CRM upgrade didn't replace the web.config with the one for CRM 4. The default CRM 3 and CRM 4 web.config files are very different. I suggest you keep a copy of your current web.config, and copy over the web.config file in the wwwroot folder of the CRM media
    Microsoft CRM MVP - http://mscrmuk.blogspot.com  http://www.excitation.co.uk
    Monday, April 19, 2010 11:41 AM
    Moderator

All replies

  • It looks to me like the CRM upgrade didn't replace the web.config with the one for CRM 4. The default CRM 3 and CRM 4 web.config files are very different. I suggest you keep a copy of your current web.config, and copy over the web.config file in the wwwroot folder of the CRM media
    Microsoft CRM MVP - http://mscrmuk.blogspot.com  http://www.excitation.co.uk
    Monday, April 19, 2010 11:41 AM
    Moderator
  • Can you please check if the file Microsoft.CRM.dll & its dependable dlls are in GAC?
    Tuesday, April 20, 2010 6:59 AM