Written by

CTO at TDA
Question David Marinkovic · Jul 31, 2024

Visual Studio Fail to connect my local IRIS, error message : Not found

Hello,

I have installed the latest version of IRIS (without a web server) to replace my community version with a embeded web server. 
I tried to connect Visual Studio Code to my namespace, but I am unable to do so. I keep receiving the message "Not found." 
Here is my configuration:

"pc-david": {
    "webServer": {
        "scheme": "http",
        "host": "localhost",
        "port": 80
    },
    "description": "pc-david",
    "username": "_SYSTEM"
}

When I modify the host and port, I can successfully connect to other remote databases (Cache 2018 or IRIS). 
However, I cannot connect to the one on my machine. Is there something I need to enable on my local instance to allow the connection to go through?

Product version: IRIS 2024.1
$ZV: IRIS for Windows (x86-64) 2024.1 (Build 267_2) Tue Apr 30 2024 16:37:07 EDT

Comments

Brett Saviano · Jul 31, 2024

@David Marinkovic 
VS Code uses REST to connect to IRIS. If you're using a version without the private web server, you need to configure an external web server. This is needed for the management portal as well. Since you're on Windows, your installer probably configured IIS to serve web applications for IRIS. Documentation can be found here.

0
John Murray · Jul 31, 2024

When you access the IRIS Portal of your local instance from a web browser, what is the browser URL?

0
David Marinkovic  Aug 2, 2024 to John Murray

Yes I can see the portal, portal is working fine, I set up myself the desktop of a new collegue and every thing worked well... so I lost...

0
Luis Angel Pérez Ramos · Jul 31, 2024

IRIS 2024.1 has no web server (but community version has). The fastest way to configure a web server is to install an IIS or Apache before to the IRIS installation and IRIS will detect and configure it.

0
David Marinkovic · Aug 2, 2024

I installed a second instance of IRIS, called IRIS2

I now have to instance working well with the portale

IRIS | 80 | 1972

IRIS2 | 80 | 1973

I see a web application IRIS2 on IIS

I can open both portales

But I continue to get the NOT FOUND error when I try to connect my local server...

0
David Marinkovic · Aug 2, 2024

I don't want specially to add a question around my current problem, but How to configure IRIS and IRIS2 (two instance) in VSCODE, because I don't have any key carrying the concept of instance, both have port 80

0
John Murray  Aug 2, 2024 to David Marinkovic

I expect the IRIS Portal URLs for these two instances look like this:

In that case, use the bold section as the "pathPrefix" property within the "webServer" object in the server's entry in the "intersystems.servers" settings object.

When setting up a connection definition step-by-step this part is referred to as Path prefix of instance.

See https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cl…

0
David Marinkovic · Aug 2, 2024

My IIS configuration

My collegue who doesn't have any issues, have a virtual directory csp and zero application

0