By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,649 Members | 2,142 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,649 IT Pros & Developers. It's quick & easy.

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

P: n/a
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

Oct 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
is webdav enabled in IIS 6.0 - remember that win 2003 is locked-down much
more than win 2000 so it could be related to a security setting. Is there
any information\error in the event logs?

HTH

Ollie Riches
<sr******@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
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

Oct 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.