Stefano Pranzo

WPF Program OK, Window-Service NO

Recommended Posts

Um die Benutzer zu sehen, verwende ich auf dem Swyx-Server den Befehl/Methode «SWConfigDataClientLib.Proxies.Admin.AdminFacade adminFacade.GetUserAdminView1(false)».
Mit meinem Programm WPF / C # funktioniert die Abfrage.
Wenn ich diese Methode jedoch von einem Windows laufen lasse, erzeugt es mir einen Fehler.


Hier das Fehlerprotokoll:

12.29.2016 02:31:44.084 : Start the fnSwyxCRM Service
29 14:32:16.539 0006 Alws CDSClient  LibManager.Initialize()                  IpPbxCDSClientLib: PV:10.40.0.15 FV:10.40.0.86
29 14:32:16.541 0006 Alws CDSClient  LibManager.Initialize()                  IpPbxCDSSharedLib: PV:10.40.0.12 FV:10.40.0.60
29 14:32:16.541 0006 Alws CDSClient  LibManager.Initialize()                  Platform: x64
29 14:32:16.541 0006 Alws CDSClient  LibManager.Initialize()                  FileCache: C:\Windows\system32\config\systemprofile\AppData\Local\IpPbx\fnSwyxCRM_WinService.exe\FileCache
29 14:32:16.569 0006 *Err WCF        SCertificateManager.CheckForInstalledCer Certificate file not found or could not been read!
29 14:32:16.703 0006 Alws CDSClient  LibManager.WSBaseUrl                     10.8.34.149
29 14:32:16.946 0006 *Err WCF        SWCFProxy`2.Create                       Missing WCF Certificate
29 14:32:38.369 0006 *Err CDSClient  AdminFacade.                             SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 10.8.34.149:9094
~   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
~   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
~   at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
29 14:32:38.374 0006 *Err SwyxHelper SwyxHelper.                              SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 10.8.34.149:9094

 

Seltsam ist, dass die IP-Nummer, eine IP ist, die nicht im Netzwerk existiert. Wenn ich die Klasse erstelle, gebe ich eine andere IP-Adresse mit.
Woher kommt diese «falsche» IP-Adresse?

Warum funktioniert es mit meinem WPF-Programm aber nicht mit dem Window-Service?

Edited by Stefano Pranzo

Share this post


Link to post
Share on other sites

Log

 

12.29.2016 02:31:44.084 : Start the fnSwyxCRM Service
29 14:32:16.539 0006 Alws CDSClient  LibManager.Initialize()                  IpPbxCDSClientLib: PV:10.40.0.15 FV:10.40.0.86
29 14:32:16.541 0006 Alws CDSClient  LibManager.Initialize()                  IpPbxCDSSharedLib: PV:10.40.0.12 FV:10.40.0.60
29 14:32:16.541 0006 Alws CDSClient  LibManager.Initialize()                  Platform: x64
29 14:32:16.541 0006 Alws CDSClient  LibManager.Initialize()                  FileCache: C:\Windows\system32\config\systemprofile\AppData\Local\IpPbx\fnSwyxCRM_WinService.exe\FileCache
29 14:32:16.569 0006 *Err WCF        SCertificateManager.CheckForInstalledCer Certificate file not found or could not been read!
29 14:32:16.703 0006 Alws CDSClient  LibManager.WSBaseUrl                     10.8.34.149
29 14:32:16.946 0006 *Err WCF        SWCFProxy`2.Create                       Missing WCF Certificate
29 14:32:38.369 0006 *Err CDSClient  AdminFacade.                             SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 10.8.34.149:9094
~   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
~   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
~   at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
29 14:32:38.374 0006 *Err SwyxHelper SwyxHelper.                              SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 10.8.34.149:9094

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now