none
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="http://schemas.microsoft.com/win/2004/08/events/event">

    - <System>

    <Provider Name="Office SharePoint Server" />

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

    <Level>2</Level>

    <Task>1330</Task>

    <Keywords>0x80000000000000</Keywords>

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

    <EventRecordID>42186</EventRecordID>

    <Channel>Application</Channel>

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

    <Security />

    </System>

    - <EventData>

    <Data>GetOrganisations</Data>

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

    <Data>/LM/W3SVC/329555136/ROOT-1-129321836922105205</Data>

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

    <Data />

    </EventData>

    </Event>

     

    Any helps much appreciated.

     

    Cheers,

    Dj


    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 ,

    Manas

    Wednesday, January 12, 2011 9:51 AM