473,386 Members | 1,908 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Cannot use integrated security from a thread in ASP.Net/ Windows 2


This problem occurs in ASP.Net application, only on Windows 2000.
Everything works fine on Windows Server 2003.

Here is the scenario:
I configured the application to use impersonation and integrated security to
connect to the database.
These are the corresponding lines in web.config

<identity impersonate="true" userName="our_domain\our_user"
password="the_password" />

<add key="ConnDB" value="Server=our_server;uid=;pwd=;Integrated
Security=true;database=our_database;app=our_app;" />

Things are OK and in the main thread – I can connect to the database without
problems.
I create a thread and trace it up to the point when I access the database.
At this point the thread ends I cannot even capture an exception or error
message.

Again, this only happens on Windows 2000 server. I found an article
describing a similar problem that is fixed in SP4 so I made sure SP4 is
installed on the server.
Is there a way to still do what I need?

Thank you with anticipation

Razvan

Nov 19 '05 #1
1 1445
Is the database on the same machine or a 2nd server? I'm guessing a
2nd server. Impersonation won't make a 2nd hop to the database server,
does the web server's machine name appear in the logins for the
database server? This could be because ASP.NET runs under the NETWORK
SERVICE account on 2003, which gives it some network access.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Thu, 9 Jun 2005 15:01:06 -0700, Razvan
<Ra****@discussions.microsoft.com> wrote:

This problem occurs in ASP.Net application, only on Windows 2000.
Everything works fine on Windows Server 2003.

Here is the scenario:
I configured the application to use impersonation and integrated security to
connect to the database.
These are the corresponding lines in web.config

<identity impersonate="true" userName="our_domain\our_user"
password="the_password" />

<add key="ConnDB" value="Server=our_server;uid=;pwd=;Integrated
Security=true;database=our_database;app=our_app ;" />

Things are OK and in the main thread – I can connect to the database without
problems.
I create a thread and trace it up to the point when I access the database.
At this point the thread ends I cannot even capture an exception or error
message.

Again, this only happens on Windows 2000 server. I found an article
describing a similar problem that is fixed in SP4 so I made sure SP4 is
installed on the server.
Is there a way to still do what I need?

Thank you with anticipation

Razvan


Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Yannick Turgeon | last post by:
Hello all, Back-end: SS2000 SP2 + NT4 Front-end: A97 + XP We are currently trying to add a Domain Server to our network. We added our SQL Server to the domain and added a client too....
1
by: Greg Busby | last post by:
I have a client who wants to use Windows Integrated Security for authentication and authorization to use this application. They also want this application to run as soon as Windows comes up. So, I...
4
by: Ravikanth[MVP] | last post by:
Hi It is possible that IIS and SQL Server can reside on Seperate Machines and you can use Integrated Windows Authentication to connect. Ravikanth >-----Original Message-----
5
by: cdlipfert | last post by:
Our intranet is running under windows integrated security. We have domain users that want to access our intranet site via ssl vpn. SSL VPN can not authenticate against services that run under...
2
by: Bob | last post by:
I would like to use integrated security for DB connection for my ASP.NET applications. Since these apps have different databases (SQL Server), I want each app to be able to access its own...
2
by: Roger | last post by:
Hi, I'm completely stumped with an issue of authentication. I have an ASP.net application which is supposed to retrieve data from a remote database. It is supposed to access the database using...
1
by: bennett | last post by:
I'm trying to write an ASPX page that uses an OleDbDataAdapter to get data from a SQL Server database. When I test the connection, it returns success, and when I preview the data using the...
3
by: JayD | last post by:
(Not sure whether it is a general aspnet problem or a specific security problem, hence posting it in 2 groups). This will solve for us a number of problems. I have developed a website on my...
5
by: tshad | last post by:
I am trying to connect to my Sql Server 2000 database from my VS 2003 program and get the "provider cannot be found" when I try to connect to the database. It sees the Server fine but when I tell...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.