Results 1 to 7 of 7

Hybrid View

  1. #1
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    Hi Erik,

    The message says that the Proxy Adapter, running inside Lightstreamer Server, tried to launch the Remote Server, but the process exited. We should then try to find the log of the Remote Server.
    By its default configuration, the Remote Server produces a log called DotNetServer.log in the same directory where the exe is located (i.e. adapters\StockList_pipes\DotNetAdapter\dotnet_1.1) . Can you see it?

    To simplify tracing the problem, you can alternatively configure the Remote Server in the Standalone Version and try launching manually the Remote Server with and without your compiled adapters.
    Just change the library in DOCS-SDKs\sdk_adapter_dotnet\examples\DotNetStockListDe mo\Deployment_Standalone_Version\Deployment_DotNet _Server\dotnet_1.1 and run DotNetServers.bat on the parent directory.
    This also causes a DotNetServer.log file to be created.

    Note that some compatibility problem in the Data Adapter library can explain a failure in the Metadata Adapter part, because the Remote Server, at startup, always loads all "dll" files it finds in its directory.

    We cannot explain the size difference from our compiled dll and yours. Note that we compiled the demo outside Visual Studio, by invoking
    Microsoft.NET\Framework\v1.1.4322\Csc.exe
    and with the following code generation options:
    Code:
        define:TRACE;DEBUG
        debug:pdbonly
        optimize-
    Dario

  2. #2
    Member
    Join Date
    Mar 2007
    Location
    Dus
    Posts
    5

    Question

    Hi Dario,

    thanks for your reply. I did not know there was another log as well. I was looking in the \logs folder.

    Now that i've seen the log, it seems there is something wrong with the compiled DLL, as it states:
    "System.BadImageFormatException: The format of the file 'DotNetStockListDemo.dll' is invalid."

    I tried your suggestion to compile the sources using csc.exe: it works now...
    Thanks!

    I've got a new question though:
    Is it possible to dynamically size the table, IE get more lines when more data is available and remove lines when data is removed? (Is there an example somewhere?)
    I will need to monitor a queue with this project. Items can be added to and removed from the queue. I'd like the table to hold exactly these items, no more, no less.

    Thanks again for your help,
    Kind regards,
    Erik.

  3. #3
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784

    Moved

    EriOor, I've posted a response on the .NET client API forum:
    http://www.lightstreamer.com/vb/showthread.php?p=351

  4. #4
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    Erik,

    we were not aware of bytecode format problems caused by different compiling contexts.
    We will need to investigate on this.

    Dario

  5. #5
    Member
    Join Date
    Mar 2007
    Location
    Dus
    Posts
    5

    Lightbulb Solution!

    Hi Dario,

    I've found the problem: Visual Studio 2005 builds projects using the .NET 2.0 compiler, which obviously won't work on .NET 1.1 versions of the reference.
    Apparently there are workarounds for that, but the easiest solution is to build the 2.0 version of the program of course.

    I've built the Demo with the 2.0 reference and included the needed files in de adapters folder: It all works now!

    Sorry for the confusion!
    It did prove usefull though, as another user was asking the exact same question:
    http://www.lightstreamer.com/vb/showthread.php?t=75

    This might be something to add in an FAQ or something

    Kind regards,
    Erik.

  6. #6
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    Thank you very much, Erik.

    I thought about .NET version, but I probably confused Visual Studio 2005 with Visual Studio 2003.

    Dario

 

 

Similar Threads

  1. example/DotNetStockListDemo with Net 2.0
    By martin in forum Adapter SDKs
    Replies: 1
    Last Post: January 8th, 2010, 11:58 AM
  2. Demo not working within my framework...
    By athanasius2 in forum General
    Replies: 3
    Last Post: April 17th, 2009, 12:40 PM
  3. LS getFieldValue not working
    By shreyaspurohit in forum Client SDKs
    Replies: 4
    Last Post: December 18th, 2008, 09:39 AM
  4. Replies: 6
    Last Post: December 12th, 2007, 04:45 PM
  5. Working examples!
    By jkrassman in forum Client SDKs
    Replies: 1
    Last Post: November 5th, 2007, 11:37 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 06:12 PM.