Hi,
I'm having diffuculties creating a working DotNetStockListDemo.dll. At present, I'm using Lightstreamer 3.4.3 build 1336, which I downloaded today.
I start out creating a new Project in Visual Studio 2005. From the Project chooser menu, I select:and save it as DotNetStockListDemo
I remove the default Class1.cs and add the source files from:
DOCS-SDKs\sdk_adapter_dotnet\examples\DotNetStockListDe mo\src_data_adapter
(Burst.cs, ExternalFeed.cs and StockList.cs)
To be able to build the Solution, I import DotNetAdapter.dll from:
DOCS-SDKs\sdk_adapter_dotnet\lib\dotnet_1.1
After this, it builds fine (ie no errors).
To be able to run the demo, I remove the standard demo from the adapters folder and add the files from:
DOCS-SDKs\sdk_adapter_dotnet\examples\DotNetStockListDe mo\Deployment_Piped_Version\Deployment_LS\StockLis t_pipes
to the adapters folder (which runs fine without modifications).
I then overwrite the DotNetStockListDemo.dll from that project with the build from Visual Studio.
Now when starting Lightstreamer again, I get these error messages:
Code:
03.May.07 17:16:18,110 < INFO> Spawning external command 'cmd.exe' on path './Do
tNetAdapter/dotnet_1.1/'...
03.May.07 17:16:19,142 <ERROR> Exception caught while trying to connect
com.lightstreamer.adapters.remote.RemotingException: Process exited with return
code: 0
at com.lightstreamer.adapters.remote.transport.LocalPipeTransport.connec
t(LocalPipeTransport.java:70)
at com.lightstreamer.adapters.remote.metadata.PipedMetadataProvider.init
(PipedMetadataProvider.java:23)
at com.lightstreamer.h.r.a(r.java)
at com.lightstreamer.h.l.a(l.java)
at com.lightstreamer.h.l.a(l.java)
at com.lightstreamer.LS.main(LS.java)
03.May.07 17:16:19,142 <ERROR> Metadata adapter init error
com.lightstreamer.interfaces.metadata.MetadataProviderException: Exception caugh
t while trying to connect: Process exited with return code: 0
at com.lightstreamer.adapters.remote.metadata.PipedMetadataProvider.init
(PipedMetadataProvider.java:27)
at com.lightstreamer.h.r.a(r.java)
at com.lightstreamer.h.l.a(l.java)
at com.lightstreamer.h.l.a(l.java)
at com.lightstreamer.LS.main(LS.java)
03.May.07 17:16:19,142 <ERROR> Error while loading the Adapters
com.lightstreamer.interfaces.metadata.MetadataProviderException: Exception caugh
t while trying to connect: Process exited with return code: 0
at com.lightstreamer.adapters.remote.metadata.PipedMetadataProvider.init
(PipedMetadataProvider.java:27)
at com.lightstreamer.h.r.a(r.java)
at com.lightstreamer.h.l.a(l.java)
at com.lightstreamer.h.l.a(l.java)
at com.lightstreamer.LS.main(LS.java)
03.May.07 17:16:19,142 <FATAL> Adapters initialization failed
03.May.07 17:16:19,142 < INFO> Exiting.....
I also tried adding LiteralBasedProvider.cs to the project from:
DOCS-SDKs\sdk_adapter_dotnet\examples\DotNetStockListDe mo\src_metadata_adapter
to the project, but this did not solve the issue. I suspected I don't need this file for the data adapter, as I think it belongs to DotNetAdapter.dll
One thing that struck me as odd is that my DLL is larger than the supplied DLL, even the Release version (24KB as opposed to 15KB).
What am I doing wrong? ![Confused](images/smilies/confused.png)
Can anyone help me in the right direction?
In the end, I'd like to have Lightstreamer pull data from an SQL database and deliver it to the clients, but up till now I have not even been able to get the demo source running.
Thanks in advance,
Kind regards,
Erik.
Bookmarks