Windows forms app copied from Release/bin folder to another folder does not run.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a C# forms app that accesses an Oracle database. When 'Release' built, it runs fine from the folder that it's built into but if I copy the app's .exe and .dlls to another folder it fails with the Oracle TNS error, ORA-12154: TNS: could not resolve service name

Anybody have any ideas why this might happen

Thank

Nick Moor
 
is there some other file (oracle config file?) in the directory with the
bin?

Nick Moore said:
I have a C# forms app that accesses an Oracle database. When 'Release'
built, it runs fine from the folder that it's built into but if I copy the
app's .exe and .dlls to another folder it fails with the Oracle TNS error,
ORA-12154: TNS: could not resolve service name.
 
No, just the .exe and a handful of .dll files. The oracle configuration files (tnsnames, etc) are in their own folder

Nic


----- drew wrote: ----

is there some other file (oracle config file?) in the directory with th
bin

Nick Moore said:
I have a C# forms app that accesses an Oracle database. When 'Release
built, it runs fine from the folder that it's built into but if I copy th
app's .exe and .dlls to another folder it fails with the Oracle TNS error
ORA-12154: TNS: could not resolve service name
 
Do you need to register any of the copied DLLs using regasm?

Rollasoc


Nick Moore said:
No, just the .exe and a handful of .dll files. The oracle configuration
files (tnsnames, etc) are in their own folder.
 
Hi

As I understand it, I would only need to register the DLLs using RegAsm if I were going to access any of my classes from COM clients, which I don't think I am, the whole application is pure .NET.

Nick

----- rollasoc wrote: -----


Do you need to register any of the copied DLLs using regasm?

Rollasoc


Nick Moore said:
No, just the .exe and a handful of .dll files. The oracle configuration
files (tnsnames, etc) are in their own folder.
 
Back
Top