locked
Working CRM v4 deployment suddenly fails... RRS feed

  • Question

  • Hi all:

    I have a CRM v4 deployment that has been merrily chugging along, and I didn't change anything, but suddenly when I try to access the site I get an error message as shown below. I found a couple articles on similar errors that said to be sure that DLL is in the GAC, and as near as I can tell, it is, so I am not sure hat to try next.

    Can anyone make a suggestion?

    Thanks!

    John.

     

    Server Error in '/' Application.


    Could not load file or assembly 'Microsoft.Crm.Platform.Sdk, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The module was expected to contain an assembly manifest.

    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.BadImageFormatException: Could not load file or assembly 'Microsoft.Crm.Platform.Sdk, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The module was expected to contain an assembly manifest.

    Thursday, May 12, 2011 1:17 PM

All replies

  • The most common cause of a BadImageFormatException is if the assembly is for the wrong processor architecture (32 or 64-bit). The GAC viewer (what you see in windows\assembly) will tell you the assemblies architecture. If you need to copy a new one over, I suggest you take the assemblies from the bin\64bit directory of the SDK as they are (despite the location) built for MSIL - i.e. they'll run on either processor architecture
    Microsoft CRM MVP - http://mscrmuk.blogspot.com  http://www.excitation.co.uk
    Thursday, May 12, 2011 1:59 PM
    Moderator
  • How could the processor architecture/assembly possibly change on its own?!?!?

    John.

    Thursday, May 12, 2011 7:45 PM
  • It can't. I expect something changed - either someone directly copying over files, or maybe an install using the wrong processor architecture version
    Microsoft CRM MVP - http://mscrmuk.blogspot.com  http://www.excitation.co.uk
    • Proposed as answer by Jim Glass Jr Monday, May 16, 2011 5:29 PM
    Friday, May 13, 2011 10:17 AM
    Moderator