oleDBExecption 0x80004005: ODBC --- connection to 'Database' Faile

S

snazzy

Connection to ODBC Database works OK while in the Visual Studio 2008 Debug
mode. However after building the Web Application and publishing the files
for project, an error occurs;
Server Error in '/ASP' Application
ODBC --- connection to 'Database' failed
Source Error: An unhandled execption was generated during the execution of
the current web request.

Using impersonation and IIS Windows Intergrated Authenication
 
B

bruce barker

if you are using sqlserver trusted security, and impersonation Windows
Intergrated Authenication instead of the pool account, then the sqlserver
must be hosted by the webserver.

this is because Windows Intergrated Authenication does not support
credentials forwarding (1 hop rule). if you must use impersonation, you can
switch to basic, or kerberos (must enable credentials forwarding on servers)
which will allow credentials forwarding.


-- bruce (sqlwork.com)
 

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

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top