473,387 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

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

Jul 21 '05 #1
4 1676
is there some other file (oracle config file?) in the directory with the
bin?

"Nick Moore" <an*******@discussions.microsoft.com> wrote in message
news:89**********************************@microsof t.com...
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?

Thanks

Nick Moore

Jul 21 '05 #2
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" <an*******@discussions.microsoft.com> wrote in messag
news:89**********************************@microsof t.com..
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
Anybody have any ideas why this might happen
Thank
Nick Moor

Jul 21 '05 #3

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

Rollasoc
"Nick Moore" <an*******@discussions.microsoft.com> wrote in message
news:7F**********************************@microsof t.com...
No, just the .exe and a handful of .dll files. The oracle configuration files (tnsnames, etc) are in their own folder.
Nick
----- drew wrote: -----

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

"Nick Moore" <an*******@discussions.microsoft.com> wrote in message
news:89**********************************@microsof t.com...
> 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?
>> Thanks
>> Nick Moore

>

Jul 21 '05 #4
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" <an*******@discussions.microsoft.com> wrote in message
news:7F**********************************@microsof t.com...
No, just the .exe and a handful of .dll files. The oracle configuration files (tnsnames, etc) are in their own folder.
Nick
----- drew wrote: -----

is there some other file (oracle config file?) in the directory with the bin?
"Nick Moore" <an*******@discussions.microsoft.com> wrote in message news:89**********************************@microsof t.com...
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?
Thanks
Nick Moore

Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Pekka Niiranen | last post by:
Hi, I have used the following example from win32 extensions: -----SCRIPT STARTS---- import win32file import win32con import win32security import pywintypes
4
by: Nick Moore | last post by:
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...
3
by: Jeremy S. | last post by:
On my dev machine (XP/Pro with VS.NET 2003) I have been developing a Windows Service and installing it on the local machine by opening the Visual Studio Command Prompt and then executing . Now I...
3
by: Chris Dunaway | last post by:
A quick scan of the group did not immediately reveal an answer to my questions so here goes. First let me describe my app and then I'll ask the questions. I am writing a Windows Forms App (not...
1
by: Günther Rühmann | last post by:
Hi, I´m not sure if i´m right int this group... My problem: I made a vb .net application that reads from AD via System.Directoryservices.Directoryentry. The appliocation enumerates group...
12
by: Brett Robichaud | last post by:
Is anyone familiar with this error? I have this running just fine on my local machine but when I pushed it out to our development server I get this error. I have no idea what it is saying. Any...
4
by: bob lambert | last post by:
Help I am trying to deploy to another pc a vb.net std 2002 windows form application. I am confused. I created a project - windows form I built form, compiled and debugged. I created a...
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
0
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.