Question
Tom Bruce · Jun 20

Visual Studio c#

Hi, I tried the following exercise from the IRIS documentation. I updated the username, password and IP address, but receiving this error;

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. --->

I can use the same credentials and IP address to connect ok via VSCode to my local IRIS...

Any pointers much appreciated.

 

https://docs.intersystems.com/irisforhealth20211/csp/docbook/DocBook.UI....

To connect Visual Studio to InterSystems IRIS, use the following steps. (Log into GitHub if necessary.)

First, create the sample solution.

  1. Select View > Team Explorer.
  2. In the Team Explorer – Connect pane, select Local Git Repositories > Clone, copy and paste https://github.com/intersystems/Samples-dotnet-helloworld into the URL box, and click Clone.

Next, update the sample code and run it.

  1. Double-click HelloWorld.sln to see the files in the solution, then open helloworld.cs.
  2. Configure the username, password, IP address, and port for your instance (see InterSystems IRIS Connection Information) using the variable declarations,
  3. Press the F5 key to run the program.
  4. A command window displays the message Hello World! You have successfully connected to InterSystems IRIS. Press any key to continue.
Product version: IRIS 2021.1
0
0 120
Discussion (3)2
Log in or sign up to continue

have you checked the port value you are using

Tom, can you provide a little more info? 

  • was this a different IRIS instance than the one you successfully connected to from VS Code? was it remote? what port # did you use in the successful case, and what # in the failed one?
  • i think the error message is from VS Code, is that right?

I've got it working, I was using the wrong port.

Thanks for your help.