The type initializer for 'Nested' threw an exception for BDC USING Application Definition Designer RRS feed

  • Question

  • Hi,

    Is anyone know what this error could mean?

    The type initializer for 'Nested' threw an exception.

    when i am executing instance method using "Application Definition Designer" for BDC.

    Same ADF file works fine locally but getting above error message when executing on server.(both sharepoint are different) and install on different machines.

    When executing BDC catalog file in sharepoint. We are getting below error message.

    An error occurred while retrieving data from CustomerBDC_Instance. Administrators, see the server log for more information.

    Event log:

    <Event xmlns="">

    - <System>

    <Provider Name="Office SharePoint Server" />

    <EventID Qualifiers="0">5703</EventID>




    <TimeCreated SystemTime="2010-10-22T12:20:39.000Z" />



    <Computer>[LOCAL COMPUTER ADDRESS]</Computer>

    <Security />


    - <EventData>


    <Data>http://[server address]/BDCSERVICE.svc</Data>


    <Data>The type initializer for 'Nested' threw an exception.</Data>

    <Data />




    Any helps much appreciated.




    Durjan Hussain
    Monday, October 25, 2010 11:10 AM

All replies

  • Hello Dj,

    Please check if Business Portal for Microsoft Dynamics GP 10.0 is installed.
    If it is then the problem occur because SharePoint cannot find the Microsoft.BusinessFramework.dll file.

    To resolve the issue, put the Microsoft.BusinessFramework.dll file in the General Assembly Cache. To do this, follow these steps:
    1.  On the server that is running Business Portal, click Start , Administrative Tools , and then click Microsoft .NET Framework 2.0 Configuration .
    Note If you do not have the Microsoft .NET Framework 2.0 Configuration option, you must install the .NET Framework 2.0 SDK. You cannot make these changes in the Microsoft .NET Framework 1.1 Configuration. 
    2.  Expand My Computer , click Assembly Cache , and then click Add an Assembly to the Assembly Cache . 
    3.  Locate the Microsoft.BusinessFramework.dll file. The file is located in the bin folder of the site that Business Portal is installed. By default, it is located at C:\Inetpub\wwwroot\bin.

    Please let me know if that works.

    Thanks ,


    Wednesday, January 12, 2011 9:51 AM