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?
Comments
@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.
When you access the IRIS Portal of your local instance from a web browser, what is the browser URL?
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...
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.
I did it
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...
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
I expect the IRIS Portal URLs for these two instances look like this:
- http://localhost/iris/csp/sys/UtilHome.csp
- http://localhost/iris2/csp/sys/UtilHome.csp
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…
.png)
My IIS configuration
My collegue who doesn't have any issues, have a virtual directory csp and zero application