Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


pru
  •  pru
  • No customer Topic Starter
2016-05-10T12:19:01Z
I've followed the steps provided on your official site:
  • Open the VisualStudio project or PowerShell samples in C:\Program Files (x86)\VisualCron\API\samples folder
  • Add a reference to VisualCronAPI.dll and VisualCron.dll
  • Open the test project in Visual Studio from the API folder of the VisualCron installation

However, the compilation fails because cannot resolve WebServiceClient service reference:
Quote:

There was an error downloading 'http://xxx.xxx.xxx.xxx:16444/$metadata'.
The underlying connection was closed: An unexpected error occurred on a receive.
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
An existing connection was forcibly closed by the remote host
Metadata contains a reference that cannot be resolved: 'http://xxx.xxx.xxx.xxx:16444/'.
An error occurred while receiving the HTTP response to http://xxx.xxx.xxx.xxx:16444/ . This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.
The underlying connection was closed: An unexpected error occurred on a receive.
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
An existing connection was forcibly closed by the remote host
If the service is defined in the current solution, try building the solution and adding the service reference again.


I've tried to add the reference to my server, however there is no response from the server, which has VisualCron installed.
Of course, I've also added rules to the firewall to allow TCP 16444 port communication.

A perfect sample would show how to add a job and execute it on a remote server through .NET API. I assume it is possible? Maybe there is somewhere such a example?
Sponsor
Forum information
Support
2016-05-10T16:34:35Z
I am not sure what you are trying todo? The web api has nothing to do with the .NET API. The .NET API does not use HTTP.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
pru
  •  pru
  • No customer Topic Starter
2016-05-11T06:42:12Z
I have a following scenario: there is server A which runs jobs and VisualCron. There is also server B, which wants to create a new job on server A and execute it. From this answer: http://www.visualcron.co....aspx?g=posts&t=5314  I assumed you cannot use Web API in my case, therefore a .NET API must be used. Is it possible to use .NET API between two servers? If not, how one could implement such a scenario?
pru
  •  pru
  • No customer Topic Starter
2016-05-11T07:54:52Z
To all trying to do the same: delete the service reference, it's redundant. It works without it.
BTW. A sample should be complete: adding references and deleting/adding services to just run it is outrageous.
BTW2. Why there is no NuGet package instead of hard references to the installation directory...?
Support
2016-05-11T09:35:21Z
1. we will check so that the sample does not fail - the service reference is not needed
2. you just need to reference to two files, VisualCron.dll and VisualCronAPI.dll. These might be anywhere depending on install but just adding this should make it work.
3. We have not worked with NuGet because there are so many changes to the API right now - we might do that in the future

Is it working now for you?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
pru
  •  pru
  • No customer Topic Starter
2016-05-16T09:12:24Z
Support
2016-05-16T11:36:08Z
Originally Posted by: pru 

Yes it is.



Great, thanks!
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top