Hallo,
the description is unfortunately not understandable for me (
https://github.com/Lightstreamer/Lightstreamer-example-StockList-client-dotnet).
In the description, a Windows Application target is to be created in Visual Studio, because a project "
Windows Application target" is unknown. I've followed the description of Microsoft (
https://msdn.microsoft.com/en-us/library/754c3hy7.aspx) to load the sourcecode files in Visual Studio.
Then I copied the following dll-files from the installation directory of the demo DotNetClientDemo_N2.msi:
1. Lightstreamer_DotNet_PCL_Client.dll
2. log4Net.dll (this file is missing in the description)
Then I added references to the DLL's in the project.
The next problem is a missing reference in DemoForm.Designer.cs in line 269:
//
// statusImg
//
this.statusImg.Image = global: :Smile_Ag: otNetStockListDemo.Properties.Resources.status_disconnected;
this.statusImg.Location = new System.Drawing.Point(1, 12);
this.statusImg.Name = "statusImg";
this.statusImg.Size = new System.Drawing.Size(21, 51);
this.statusImg.TabIndex = 5;
this.statusImg.TabStop = false;
Error-Message: System.Resources.MissingManifestResourceException -> What is the problem and how can I solve it ?
After removing the red marked line, I can run the application.
In the below statusbar the message "Connecting to Lightstreamer Server @
http://localhoist:80" and than follows a error message can't connect to the remote server.
In the installed demo DotNetClientDemo_N2.msi it is not necessary to start a local server. The executable in DotNetClientDemo_N2.msi called with "push.lightstreamer.com 80". If I do the same with my executable file, this error message appears during executing in DemoForm.cs Line 198 (red marked): "System.Resources.MissingManifestResourceException" -> What is the problem and how can I solve it ?
switch (cStatus)
{
case StocklistConnectionListener.STREAMING:
statusImg.Image = Resources.status_connected_streaming;
break;
case StocklistConnectionListener.POLLING:
statusImg.Image = Resources.status_connected_polling;
break;
case StocklistConnectionListener.STALLED:
statusImg.Image = Resources.status_stalled;
break;
case StocklistConnectionListener.DISCONNECTED:
this.isDirty = true;
statusImg.Image = Resources.status_disconnected;
break;
default:
break;
}
Yours
Stefan