473,405 Members | 2,338 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,405 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 1677
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.