Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Oct 2007
    Location
    new york
    Posts
    9

    DataProviderServer exception

    Hi,

    I am trying to build a simple .NET adapter but when I am trying to create a DataProviderServer object I am getting an exception:

    Code:
    try
    {
       DataProviderServer server = new DataProviderServer();
      .....
    }
    catch (Exception e)
    {
         trace (e.text);
    }
    The exception says:'The type initializer for 'Lightstreamer.DotNet.Server.DataProviderServerImp l' threw an exception'

    could you point out what a reason might be?
    Thanks a lot

  2. #2
    Member
    Join Date
    Oct 2007
    Location
    new york
    Posts
    9
    I found a problem. Seems like the DotNetAdapter DLL loads log4net.DLL too and I didn't put the log4net.DLL in the working folder.

  3. #3
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    975
    I confirm that the DotNetAdapter DLL requires the log4net DLL, which is included in our distribution, and that DataProviderServer initialization also includes logging initialization.
    I assume you now have the adapter working.

 

 

Similar Threads

  1. Strange exception
    By Alex Zherdev in forum Client APIs
    Replies: 1
    Last Post: December 1st, 2011, 10:33 AM
  2. Rasing an Exception from a Data Adapter
    By PeterHiross in forum Adapter APIs
    Replies: 1
    Last Post: October 7th, 2010, 10:59 AM
  3. Null Pointer Exception in Thread
    By Sathyaayyanar in forum Adapter APIs
    Replies: 1
    Last Post: September 2nd, 2010, 10:00 AM
  4. Exception in metadataAdapter
    By Pradeep Chahal in forum Adapter APIs
    Replies: 1
    Last Post: April 13th, 2010, 10:18 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 08:35 PM.