locked
Deployment queries RRS feed

  • Question

  • I have a custom solution for MS CRM (integrated in an IFrame on a form)

    Now, I am reading the MS CRM documentation (SDK) and trying to follow it in terms of deploying it.

     

    I have created a VDIR in the MS CRM Website in IIS and pointed this VDIR to the path of the webfolder which contains the MS CRM custom solution (in a seperate web folder of course)

     

    The application pool is set to the default app pool.

     

    However when I try to access the VDIR in IE:

     

    http://localhost:5555/VDIRName/page.aspx

     

    I get this 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: File or assembly name Microsoft.Crm.MetadataService, or one of its dependencies, was not found.

     


    Line 11:     <add assembly="Microsoft.Crm.ManagedInterop, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    Line 12:     <add assembly="Microsoft.Crm.MetadataHelper, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    Line 13:     <add assembly="Microsoft.Crm.MetadataService, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    Line 14:     <add assembly="Microsoft.Crm.NativeInteropProxy, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    Line 15:     <add assembly="Microsoft.Crm.ObjectModel, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
     

    Source File: D:\Program Files\Microsoft CRM\CRMWeb\web.config    Line: 13

    Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Crm.MetadataService' could not be loaded.


    === Pre-bind state information ===
    LOG: DisplayName = Microsoft.Crm.MetadataService, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///D:/Inetpub/wwwroot/MSCRMSearch
    LOG: Initial PrivatePath = bin
    Calling assembly : (Unknown).
    ===

    LOG: Publisher policy file is not found.
    LOG: No redirect found in host configuration file (D:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet.config).
    LOG: Using machine configuration file from D:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
    LOG: Post-policy reference: Microsoft.Crm.MetadataService, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: Attempting download of new URL file:///D:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/mscrmsearch/cfa2ede8/5049dd63/Microsoft.Crm.MetadataService.DLL.
    LOG: Attempting download of new URL file:///D:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/mscrmsearch/cfa2ede8/5049dd63/Microsoft.Crm.MetadataService/Microsoft.Crm.MetadataService.DLL.
    LOG: Attempting download of new URL file:///D:/Inetpub/wwwroot/MSCRMSearch/bin/Microsoft.Crm.MetadataService.DLL.
    LOG: Attempting download of new URL file:///D:/Inetpub/wwwroot/MSCRMSearch/bin/Microsoft.Crm.MetadataService/Microsoft.Crm.MetadataService.DLL.
    LOG: Attempting download of new URL file:///D:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/mscrmsearch/cfa2ede8/5049dd63/Microsoft.Crm.MetadataService.EXE.
    LOG: Attempting download of new URL file:///D:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/mscrmsearch/cfa2ede8/5049dd63/Microsoft.Crm.MetadataService/Microsoft.Crm.MetadataService.EXE.
    LOG: Attempting download of new URL file:///D:/Inetpub/wwwroot/MSCRMSearch/bin/Microsoft.Crm.MetadataService.EXE.
    LOG: Attempting download of new URL file:///D:/Inetpub/wwwroot/MSCRMSearch/bin/Microsoft.Crm.MetadataService/Microsoft.Crm.MetadataService.EXE.

     

     

     

     

    any ideas?

     

     

    in addition to this, is there a way in the IFRAME properties of a custom entity in form designer view, to give it a relative path to the solution rather than a full absolute path/url? So I could just type in "./myVIDR/page.aspx" instead of: "http://someSite/myVDIR/page.aspx"?

    Wednesday, July 4, 2007 9:45 AM

Answers

  • Your problem with the custom page is that it inherits the settings in web.config from the CRM web site.

     

    To correct the settings friom the CRM web.config, create a web.config file in your VDIR that contains the following:

     

    <configuration>
     <system.web>
       <assemblies>
        <remove assembly="Microsoft.Crm, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <remove assembly="Microsoft.Crm.Entities, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <remove assembly="Microsoft.Crm.ManagedInterop, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <remove assembly="Microsoft.Crm.MetadataHelper, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <remove assembly="Microsoft.Crm.MetadataService, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <remove assembly="Microsoft.Crm.NativeInteropProxy, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <remove assembly="Microsoft.Crm.ObjectModel, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <remove assembly="Microsoft.Crm.Platform.ComProxy, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <remove assembly="Microsoft.Crm.Platform.Proxy, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <remove assembly="Microsoft.Crm.Platform.Server, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <remove assembly="Microsoft.Crm.Platform.Sdk, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <remove assembly="Microsoft.Crm.Platform.Types, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <remove assembly="Microsoft.Crm.Scheduling, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <remove assembly="Microsoft.Crm.Tools.ImportExportPublish, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
       </assemblies>
      </compilation>
     </system.web>
    </configuration>

    And to answer your second question, you can use the following relative path (though it may not work in the Outlook client):

     

    /myVIDR/page.aspx

     

    Wednesday, July 4, 2007 8:01 PM
    Moderator