Hi,
I want to publish a Web Service who returns a dataset with some data from an
Oracle Database.
In the view designer I can preview data from my OracleDataAdapter1. It
returns 3 rows.
When I start the solution and test the web service it returns this error:
System.Data.OracleClient.OracleException: ORA-12154: TNS:no se ha podido
resolver el nombre de servicio
I suppose that it can't open the connection for security reasons.
Somebody knows the solution?
Thanks!
Oriol Tomās
System.Data.OracleClient.OracleException: ORA-12154: TNS:no se ha podido
resolver el nombre de servicio
at System.Data.OracleClient.DBObjectPool.GetObject(Ob ject owningObject,
Boolean& isInTransaction)
at
System.Data.OracleClient.OracleConnectionPoolManag er.GetPooledConnection(String
encryptedConnectionString, OracleConnectionString options, OracleConnection
owningObject, Boolean& isInTransaction)
at
System.Data.OracleClient.OracleConnection.OpenInte rnal(OracleConnectionString
parsedConnectionString, Object transact)
at System.Data.OracleClient.OracleConnection.Open()
at System.Data.Common.DbDataAdapter.QuietOpen(IDbConn ection connection,
ConnectionState& originalState)
at System.Data.Common.DbDataAdapter.FillFromCommand(O bject data, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
at WebService4.Service1.HelloWorld() in
c:\inetpub\wwwroot\WebService4\Service1.asmx.vb:li ne 169 2 4950
it can't find your database. Verify that the TNS name is correct and it does
exist
"Oriol TomÃ*s" wrote: Hi,
I want to publish a Web Service who returns a dataset with some data from an Oracle Database.
In the view designer I can preview data from my OracleDataAdapter1. It returns 3 rows.
When I start the solution and test the web service it returns this error: System.Data.OracleClient.OracleException: ORA-12154: TNS:no se ha podido resolver el nombre de servicio
I suppose that it can't open the connection for security reasons.
Somebody knows the solution?
Thanks!
Oriol TomÃ*s
System.Data.OracleClient.OracleException: ORA-12154: TNS:no se ha podido resolver el nombre de servicio
at System.Data.OracleClient.DBObjectPool.GetObject(Ob ject owningObject, Boolean& isInTransaction) at System.Data.OracleClient.OracleConnectionPoolManag er.GetPooledConnection(String encryptedConnectionString, OracleConnectionString options, OracleConnection owningObject, Boolean& isInTransaction) at System.Data.OracleClient.OracleConnection.OpenInte rnal(OracleConnectionString parsedConnectionString, Object transact) at System.Data.OracleClient.OracleConnection.Open() at System.Data.Common.DbDataAdapter.QuietOpen(IDbConn ection connection, ConnectionState& originalState) at System.Data.Common.DbDataAdapter.FillFromCommand(O bject data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) at WebService4.Service1.HelloWorld() in c:\inetpub\wwwroot\WebService4\Service1.asmx.vb:li ne 169
sounds like a security issue. the webservice runs as user "ASPNET" and
probably visual studio runs under your own identity. this is the likely
source of the problem.
you need to set the oracle config for the aspnet user.
"Oriol Tomās" <ad***@ad-hoc.net> wrote in message
news:ep**************@TK2MSFTNGP10.phx.gbl... Hi,
I want to publish a Web Service who returns a dataset with some data from an Oracle Database.
In the view designer I can preview data from my OracleDataAdapter1. It returns 3 rows.
When I start the solution and test the web service it returns this error: System.Data.OracleClient.OracleException: ORA-12154: TNS:no se ha podido resolver el nombre de servicio
I suppose that it can't open the connection for security reasons.
Somebody knows the solution?
Thanks!
Oriol Tomās
System.Data.OracleClient.OracleException: ORA-12154: TNS:no se ha podido resolver el nombre de servicio
at System.Data.OracleClient.DBObjectPool.GetObject(Ob ject owningObject, Boolean& isInTransaction) at System.Data.OracleClient.OracleConnectionPoolManag er.GetPooledConnection(String encryptedConnectionString, OracleConnectionString options, OracleConnection owningObject, Boolean& isInTransaction) at System.Data.OracleClient.OracleConnection.OpenInte rnal(OracleConnectionString parsedConnectionString, Object transact) at System.Data.OracleClient.OracleConnection.Open() at System.Data.Common.DbDataAdapter.QuietOpen(IDbConn ection connection, ConnectionState& originalState) at System.Data.Common.DbDataAdapter.FillFromCommand(O bject data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) at WebService4.Service1.HelloWorld() in c:\inetpub\wwwroot\WebService4\Service1.asmx.vb:li ne 169
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Ken North |
last post by:
During Software Development 2004, we recorded a panel discussion about software
trends and the marriage of SQL, XML, web services and grid computing. The panel
included:
-Rick Cattell ...
|
by: jm |
last post by:
I understand how an XML formatted SOAP message is used to request
items from a web service and how the XML formatted SOAP response is
used. I am still missing the big picture, however.
When is...
|
by: Ken North |
last post by:
During Software Development 2004, we recorded a panel discussion about software
trends and the marriage of SQL, XML, web services and grid computing. The panel
included:
-Rick Cattell ...
|
by: Jon Ole Hedne |
last post by:
My Access 2002-application need to work with tables from both Oracle and
Access. To solve this, I want to run some querys on three views in Oracle
and import the results into temporary...
|
by: Andrea M. Segovia |
last post by:
Hello,
I am a newbie to Oracle databases....
We have a visualization front-end tool connected to an Oracle back-end
database on a Tru64 UNIX server. We also have clients with MS access...
| |
by: Andrew Arace |
last post by:
I scoured the groups for some hands on code to perform the menial task
of exporting table data from an Access 2000 database to Oracle
database (in this case, it was oracle 8i but i'm assuming this...
|
by: Rosco |
last post by:
Does anyone have a good URL or info whre Oracle and Access are
compared to one another in performance, security, cost etc. Before
you jump on me I know Oracle is a Cadillac compared to Access the...
|
by: =?Utf-8?B?Vml0b3I=?= |
last post by:
Hi,
I trying to develope a mobile application that need to import and export
data from sql server mobile (compact) to an oracle database.
I think the best way is to use web services.
I have a web...
|
by: knorth |
last post by:
The launch of DataServices World in New York was successful so the
conference is bringing a distinguished faculty to Silicon Valley in
November.
DataServices World offers a program for those...
|
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,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
|
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: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |