ODBC not working in aspx page

G

Guest

I'm trying to write a page in vb.net/asp.net using an ODBC connection. Using
server explorer I can get to my connection. When I attempt to connect
through my code in a web browser I get the following error:

ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found
and no default driver specified

The catch is to test, I created a windows application, using the same
connection string & info, and it works just fine. Appearantly it has
something to do with it being a web app. Any help with this would be greatly
appreciated.
 
C

Cor Ligthert [MVP]

Matt,

Be forever aware that a webpage uses the inbuild ASPNET user.

I hope this helps,

Cor
 
P

Paul Clement

¤ I'm trying to write a page in vb.net/asp.net using an ODBC connection. Using
¤ server explorer I can get to my connection. When I attempt to connect
¤ through my code in a web browser I get the following error:
¤
¤ ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found
¤ and no default driver specified
¤
¤ The catch is to test, I created a windows application, using the same
¤ connection string & info, and it works just fine. Appearantly it has
¤ something to do with it being a web app. Any help with this would be greatly
¤ appreciated.

Yes it would really help to know what type of database you are working with, and as Sahil mentioned,
what your connection string looks like.


Paul
~~~~
Microsoft MVP (Visual Basic)
 
G

Guest

I'm sorry I did not post sooner, but I did get the problem fixed. I needed
to not use a DSN, just a connection string. I'm connecting to an Oracle
Database.

Thanks guys.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top