-
July 10th, 2017, 12:48 AM
#1
Problems to build Lightstreamer - Basic Stock-List Demo - .NET Client
Hallo,
the description is unfortunately not understandable for me (https://github.com/Lightstreamer/Lig...-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:otNetStockListDemo.Properties.Resources.status_dis connected;
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
-
July 10th, 2017, 10:15 AM
#2
Hi Stefan,
With "you just need to create a project for a Windows Application target" we meant: create a new project starting from a default template suitable for standard Windows application.
The exact procedure may vary slightly depending on the VS version you are using, in my case:
- from "File" menu click "New" -> "Project..." (or simply Ctrl+Shift+N)
- then chosse among the default templates "Templates -> Visual C# -> Windows -> Classic Desktop" the "Windows Form Application".
That said, about the issues you are facing I think that your project does not load all the resources needed.
Please be sure that the resources file of the project is properly configured (https://github.com/Lightstreamer/Lig...Resources.resx).
Regards,
Giuseppe
-
July 11th, 2017, 04:30 PM
#3
Hi,
I solved the problem myself. The problems concern only the representation of the connection status and can be removed.
Yours
Stefan
-
July 25th, 2017, 09:21 PM
#4
Can you outline a bit more details?
Similar Threads
-
By rvkvino in forum General
Replies: 3
Last Post: March 28th, 2017, 04:58 PM
-
By Virendra in forum Adapter SDKs
Replies: 1
Last Post: May 20th, 2016, 09:38 AM
-
By Ranag in forum Adapter SDKs
Replies: 1
Last Post: January 19th, 2015, 10:23 AM
-
By sheik in forum Adapter SDKs
Replies: 3
Last Post: May 8th, 2013, 09:35 AM
-
By mIbrahim in forum Adapter SDKs
Replies: 1
Last Post: May 3rd, 2013, 09:19 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 09:45 AM.
Bookmarks