Oledb Connection from ASP.Net on Windows 2003 does not work

S

sriramva

The following code does not work from an ASP.Net application on Windows
2003 IIS 6 (application isolation mode).
Basically I am trying to connect to a Sharepoint catalog through the
oledb provider for Internet publishing (WebDAV)

It works fine from a windows application on Windows 2003. It works in
ASP.net web application on Windows2000


public void Connect()

{

string connString =
"provider=msdaipp.dso;data source=http://myServer/mycatalog";
OleDbConnection conn = new
OleDbConnection(connString);

try
{
conn.Open();
}

catch

{
throw;

}
finally
{
conn.Close();
}

}

I have also tried the following and none of these works on 2003/IIS6

Changed the website to run in IIS 5 isolation mode
added NT AUTHORITY\NETWORK SERVICE to the administrator group
tried opening the connection in the asp.net in a secondary thread
Impersonated the asp.net web application to run as a user with
administrator privileges
Turned anonymous authentication off and ran the website with integrated
authentication so it takes the logon user credentials

Any help to point me in the right direction would be greatly
appreciated

Thanks
Sriram V
 

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

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top