473,499 Members | 1,576 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using integrated security

Hi, I would like to give the ASPNET process that is running on my machine
permission to connect to a sql server database that is on another machine.
When I try to do this it says: 'Windows NT user or user group
'mymachinename\ASPNET not found'.

This all works however, if the databse server is my local machine.

So the question then becomes, how can I give this user privileges to connect
to this remote database server?
Nov 18 '05 #1
6 1962
Marina
Since you are using integrated security, the account that ASP.NET uses is the account that will connect to SQL server. In this case, 'mymachinename\ASPNET' account. This account is local only to that machine and SQL Server has no knowledge of this account. You can assign the ASPNET account to run using a network account that have rights to access SQL Server to solve this problem

Tu-Thac

----- Marina wrote: ----

Hi, I would like to give the ASPNET process that is running on my machin
permission to connect to a sql server database that is on another machine
When I try to do this it says: 'Windows NT user or user grou
'mymachinename\ASPNET not found'

This all works however, if the databse server is my local machine

So the question then becomes, how can I give this user privileges to connec
to this remote database server

Nov 18 '05 #2
* You can assign the ASPNET account to run using a network account *

What exactly do you mean by this? Do you mean REPLACE the ASPNET account,
or modify the current ASPNET account to be a domain account?

Mark
"Tu-Thach" <an*******@discussions.microsoft.com> wrote in message
news:A9**********************************@microsof t.com...
Marina,
Since you are using integrated security, the account that ASP.NET uses is the account that will connect to SQL server. In this case,
'mymachinename\ASPNET' account. This account is local only to that machine
and SQL Server has no knowledge of this account. You can assign the ASPNET
account to run using a network account that have rights to access SQL Server
to solve this problem.
Tu-Thach

----- Marina wrote: -----

Hi, I would like to give the ASPNET process that is running on my machine permission to connect to a sql server database that is on another machine. When I try to do this it says: 'Windows NT user or user group
'mymachinename\ASPNET not found'.

This all works however, if the databse server is my local machine.

So the question then becomes, how can I give this user privileges to connect to this remote database server?

Nov 18 '05 #3
Mark
What I meant is that you can set which account ASPNET should run as. You can specify Local System Account or this account, which allows you to type in the account name and password the service should run as

Tu-Thac

----- Mark wrote: ----

* You can assign the ASPNET account to run using a network account

What exactly do you mean by this? Do you mean REPLACE the ASPNET account
or modify the current ASPNET account to be a domain account

Mar
"Tu-Thach" <an*******@discussions.microsoft.com> wrote in messag
news:A9**********************************@microsof t.com..
Marina
Since you are using integrated security, the account that ASP.NET uses i the account that will connect to SQL server. In this case
'mymachinename\ASPNET' account. This account is local only to that machin
and SQL Server has no knowledge of this account. You can assign the ASPNE
account to run using a network account that have rights to access SQL Serve
to solve this problem
Tu-Thac
----- Marina wrote: ----
Hi, I would like to give the ASPNET process that is running on m machin permission to connect to a sql server database that is on anothe machine When I try to do this it says: 'Windows NT user or user grou
'mymachinename\ASPNET not found'
This all works however, if the databse server is my local machine
So the question then becomes, how can I give this user privileges t
connec to this remote database server

Nov 18 '05 #4
Your reply implies that ASP.NET is running as a service which would allow me
to go to start - control panel - admin tools - services, and modify the
account that the service is running under. However, I don't see such a
service. Where exactly did you mean that you would make this change?

Thanks.

Mark
"Tu-Thach" <an*******@discussions.microsoft.com> wrote in message
news:AA**********************************@microsof t.com...
Mark,
What I meant is that you can set which account ASPNET should run as. You can specify Local System Account or this account, which allows you to type
in the account name and password the service should run as.
Tu-Thach

----- Mark wrote: -----

* You can assign the ASPNET account to run using a network account *

What exactly do you mean by this? Do you mean REPLACE the ASPNET account, or modify the current ASPNET account to be a domain account?

Mark
"Tu-Thach" <an*******@discussions.microsoft.com> wrote in message
news:A9**********************************@microsof t.com...
> Marina,
> Since you are using integrated security, the account that ASP.NET uses is
the account that will connect to SQL server. In this case,
'mymachinename\ASPNET' account. This account is local only to that machine and SQL Server has no knowledge of this account. You can assign the ASPNET account to run using a network account that have rights to access SQL Server to solve this problem. >> Tu-Thach
>> ----- Marina wrote: -----
>> Hi, I would like to give the ASPNET process that is running on my
machine
> permission to connect to a sql server database that is on
another machine.
> When I try to do this it says: 'Windows NT user or user group
> 'mymachinename\ASPNET not found'.
>> This all works however, if the databse server is my local
machine. >> So the question then becomes, how can I give this user

privileges to connect
> to this remote database server?
>>>

Nov 18 '05 #5
You can do that by going to IIS console, right click on the web site that you want to manage and choose properties. THen, go to the directory security tab, click edit and make sure the allow anonymous checkbox is checked. You can then select an account to run. Either way, a better way to let ASP.NET run using an account is to enable impersonation using the <identity> tag for the Web application. That way, you don't have to mess with setting account, etc.

Tu-Thach

----- Mark wrote: -----

Your reply implies that ASP.NET is running as a service which would allow me
to go to start - control panel - admin tools - services, and modify the
account that the service is running under. However, I don't see such a
service. Where exactly did you mean that you would make this change?

Thanks.

Mark
"Tu-Thach" <an*******@discussions.microsoft.com> wrote in message
news:AA**********************************@microsof t.com...
Mark,
What I meant is that you can set which account ASPNET should run as. You can specify Local System Account or this account, which allows you to type
in the account name and password the service should run as.
Tu-Thach
----- Mark wrote: -----
* You can assign the ASPNET account to run using a network account *
What exactly do you mean by this? Do you mean REPLACE the ASPNET account, or modify the current ASPNET account to be a domain account?
Mark
"Tu-Thach" <an*******@discussions.microsoft.com> wrote in message
news:A9**********************************@microsof t.com...
Marina,
Since you are using integrated security, the account that ASP.NET

uses is the account that will connect to SQL server. In this case,
'mymachinename\ASPNET' account. This account is local only to that machine and SQL Server has no knowledge of this account. You can assign the ASPNET account to run using a network account that have rights to access SQL Server to solve this problem. Tu-Thach
----- Marina wrote: -----
Hi, I would like to give the ASPNET process that is running on my
machine
permission to connect to a sql server database that is on
another machine.
When I try to do this it says: 'Windows NT user or user group
'mymachinename\ASPNET not found'.
This all works however, if the databse server is my local
machine. So the question then becomes, how can I give this user

privileges to connect
to this remote database server?

Nov 18 '05 #6
Thanks Tu-Thach. I guess this points at a bigger issue:

I'm confounded how difficult it is to setup a connection from an ASP.NET
application to SQL Server on a different machine in the same windows domain
using windows authentication. My research has found the following three
options:

1. Use delegation to leverage the current user's account.
2. Replace the ASPNET local account that is running .NET applications on the
web server with a domain account.
3. Use impersonation specifiying a specific domain user and password in the
web.config.

In options 2 and 3 above, the new account must be granted all the rights
that the ASPNET account comes with by default. Moreover, if you have a
development machine, a live machine, and local installs of IIS for all your
developers, the rights must be recreated on every blasted box. That sounds
like a maintenance nightmare. Option 1 raises all sorts of security
concerns. Understandably, our DBA wants to keep SQL Server authentication
turned off since we have a windows network.

Am I missing something here? What is the "obvious" choice?

Thanks in advance.

Mark
"Tu-Thach" <an*******@discussions.microsoft.com> wrote in message
news:10**********************************@microsof t.com...
You can do that by going to IIS console, right click on the web site that you want to manage and choose properties. THen, go to the directory security
tab, click edit and make sure the allow anonymous checkbox is checked. You
can then select an account to run. Either way, a better way to let ASP.NET
run using an account is to enable impersonation using the <identity> tag for
the Web application. That way, you don't have to mess with setting account,
etc.
Tu-Thach

----- Mark wrote: -----

Your reply implies that ASP.NET is running as a service which would allow me to go to start - control panel - admin tools - services, and modify the account that the service is running under. However, I don't see such a service. Where exactly did you mean that you would make this change?

Thanks.

Mark
"Tu-Thach" <an*******@discussions.microsoft.com> wrote in message
news:AA**********************************@microsof t.com...
> Mark,
> What I meant is that you can set which account ASPNET should run as. You
can specify Local System Account or this account, which allows you to type in the account name and password the service should run as. >> Tu-Thach
>> ----- Mark wrote: -----
>> * You can assign the ASPNET account to run using a network account * >> What exactly do you mean by this? Do you mean REPLACE the
ASPNET
account,
> or modify the current ASPNET account to be a domain account?
>> Mark
>>> "Tu-Thach" <an*******@discussions.microsoft.com> wrote in
message > news:A9**********************************@microsof t.com...
>> Marina,
>> Since you are using integrated security, the account that ASP.NET
uses is
> the account that will connect to SQL server. In this case,
> 'mymachinename\ASPNET' account. This account is local only to

that machine
> and SQL Server has no knowledge of this account. You can
assign the ASPNET
> account to run using a network account that have rights to
access SQL Server
> to solve this problem.
>>> Tu-Thach
>>> ----- Marina wrote: -----
>>> Hi, I would like to give the ASPNET process that is running

on my
> machine
>> permission to connect to a sql server database that is on

another
> machine.
>> When I try to do this it says: 'Windows NT user or user group
>> 'mymachinename\ASPNET not found'.
>>> This all works however, if the databse server is my local

machine. >>> So the question then becomes, how can I give this user

privileges to
> connect
>> to this remote database server?
>>>>

Nov 18 '05 #7

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

Similar topics

0
6678
by: Nashat Wanly | last post by:
HOW TO: Call a Parameterized Stored Procedure by Using ADO.NET and Visual C# .NET View products that this article applies to. This article was previously published under Q310070 For a Microsoft...
43
2565
by: nospam | last post by:
I got three (3) files (1) Untitled.aspx (2) Untitled.aspx.1.cs (3) Untitled.aspx.2.cs These three files must be used together to make file #1, Untitled.aspx, page work via J.I.T. when the...
1
2777
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...
3
446
by: Robb Gilmore | last post by:
Hello, We have a C#.NET app which runs as a windows service. Periodically it needs to post information via the internet to a remote server. For the posting, we are using HttpWebRequest class....
4
8524
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-----
2
1375
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...
7
11229
by: Henry | last post by:
I am writing a Windows forms VB.Net/MS SQL application via VS 2003 that utilizes Crystal Reports. I want to be able to dynamically set the report data source at run time. I'm trying to change...
2
3359
by: Kumar | last post by:
I have a VB 6 COM object that uses ADO 2.6 to connect to a database. I have a Web Service that references this COM object and calls a method in this objects that uses ADO 2.6 to connect. The Web...
2
1248
by: Les Caudle | last post by:
I un-installed SQL 2000 developer's edition and installed SQL 2005 developer's edition in mixed mode security with the exact same sa password. I then attached my old databases. Even thought...
9
1517
by: =?Utf-8?B?UmF5?= | last post by:
Have SQL server on one machine. Have IIS on another machine in same large intranet. Have website in IIS with Basic Authentication turned on and other options deselected. Have webpage (.aspx) with...
0
7009
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
7223
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...
0
7390
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4919
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4602
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3103
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3094
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.