Orthanc as a Service

Running Machine: Windows 11

I have installed the Orthanc successfully and it starts perfectly fine as a service on HTTP port 8042.

I modified my mysql.json file as follows and added the python script for the custom functions:

{
/**

  • Configuration to use MySQL or MariaDB instead of the default
  • SQLite back-end of Orthanc. You will have to install the
  • “orthanc-mysql” package to take advantage of this feature.
    **/
    “MySQL” : {
    // Enable the use of MySQL to store the Orthanc index?
    “EnableIndex” : true,

// Enable the use of MySQL to store the DICOM files?
“EnableStorage” : true,

// Parameters of the MySQL database
“Host” : “localhost”,
“Port” : 3306,
“Database” : “”,
“Username” : “”,
“Password” : “”,

// Optional: Disable the locking of the MySQL database
“Lock” : false
}
}

And yes, I have also added the plugin in the “Plugins” directory and added the path of the same in the orthanc.json.
Screenshot_20221205_212543.png

Screenshot_20221205_212615.png

When I restarted my service then Orthanc fails to restart the service and we get the following error on the log file:
Screenshot_20221205_211202.png

But when I run the command “Orthanc.exe ./Configuration” on the local machine, then the Orthanc runs perfectly fine and I get the following logs:
Screenshot_20221205_210945.png

Could you please help with the same. I need to start the Orthanc as a service with modified database configurations.
Thank you so much in advance!

Looks like it is throwing an error when it tries to load the Python Plug-in:

LoadLibrary(C:\Program Files\Orthanc Server\Plugins\OrthancPython.3.8-4.0.dll) failed: Error 126

Sounds similar to this issue: https://groups.google.com/g/orthanc-users/c/rqsPuX5gkTA

You might want to check that that module is actually there and that it is the correct version for you machine, and that you have it configured correctly.

/sds

Screenshot_20221205_212543.png