question

ItayZemah-4709 avatar image
0 Votes"
ItayZemah-4709 asked ·

.Net Core 3.1 run published EXE file run with error on run from other directory

Hi all,
I build a .net cor e3..1 console app with Oracle managed data access for Core.

The app run fine in debug and also in release, but only from the contained directory.
The app should run by Control-M with 'wakes up' from his dir on the server like 'C:\Program Files\cmt'
The CTM has all the premissions he needs.
The problem is that when I run from the contained dir the app works perfect. when I call it from another dir with it full path, it faild with OracleConnection.ConnectionString is invalid.

the Conn String is in appsettings.json file which readen fine by the console app (this is how it looks)
I cant find any solution in the whole web

dotnet-runtime-coredotnet-console
· 3
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @ItayZemah-4709 ,

when I call it from another dir with it full path, it faild with OracleConnection.ConnectionString is invalid.

It seems that your connection string is incorrect when calling it with full path,
Check : Oracle connection strings



0 Votes 0 ·

What do you mean your connection string is incorrect when calling it with full path?
The connection string is not a standard?
I'm using one like: Data Source=TNS NAME ;User Id=myUsername;Password=myPassword;

0 Votes 0 ·

I am thinking that is cannot find the appsettings.json file. I would first check it is in the directory with the exe. If it is there I would use something like sysinternals process monitor to see where it is trying to load the file from

0 Votes 0 ·

0 Answers