Re: ASP.Net en SQL2000 authorisation

From: Cowboy \(Gregory A. Beamer\) (N0SpamMPleezEgbworld@comcast.netN0SpamMPleezE)
Date: 10/28/02


From: "Cowboy \(Gregory A. Beamer\)" <N0SpamMPleezEgbworld@comcast.netN0SpamMPleezE>
Date: Mon, 28 Oct 2002 12:45:00 -0600


You have a couple of choices.

1. Give the ASPNET account on the web server access to the SQL Server. This
can be tricky if they are on two machines as you have to take control.
2. Get rid of anonymous access on this website and only allow users who can
be mapped to SQL Server the ability to hit it.
3. Create a data access object with the proper account to hit the database.
This is probably the best option, but requires a bit different architecture
(n-tier).

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Author: ADO.NET and XML: ASP.NET on the Edge
****************************************************************************
****
Think outside the box!
****************************************************************************
****
"Edward" <e.tollenaar@otsgroup.nl> wrote in message
news:9c2001c27e8b$1c5a9e90$39ef2ecf@TKMSFTNGXA08...
> Our sql2000-server (say the name is mySRV) is using
> windows authentication. I've put mine asp.net application
> on a server called myTest. In ISM I've
> unchecked "anonymous access". Mine web.config file has the
> following statements:
>   <authentication mode="Windows"/>
>   <identity impersonate="true" />
>
> and defines a sql-connectionstring as:
> <add key="myConnectionString" value="data
> source=mySRV;initial catalog=myDB;integrated
> security=SSPI;persist security info=False"/>
>
> When I start IE on the server and goes to my page
> (//localhost/myWeb/Customer?id=1), everything is working
> fine. Data is retrieved from SQL-server.
>
> When I'm using IE on my own pc and uses the
> url //myTest/myWeb/Customer?id=1 I get the following error
> message:
> System.Data.SqlClient.SqlException: Login failed for
> user 'NT AUTHORITY\ANONYMOUS LOGON'.
>
> Mine applition is used in a intranet and the users are
> authorized for the server.
>
> What must I do or configure to run the application from my
> own pc?
>
> Thanks in advance.
> Edward


Relevant Pages

  • RE: SBS 2003 Unable to connect to database STS_Config
    ... Uninstall the SQL server from the SBS 2k3 server from add/remove programs ... Uninstall Microsoft SQL Server Desktop Engine (SHAREPOINT) ... If AV software install any extra IIS virtual directory, ...
    (microsoft.public.windows.server.sbs)
  • Re: Memory issues with 64-bit SQL Server 2005 on 64-bit Win 2003 C
    ... I also checked the individual patch levels for the .NET drivers, SQL Server ... The SQL Server is fully patched, however Windows Update reported that the OS ... Lock pages in memory -- I guess you might have taken care of it as well. ...
    (microsoft.public.sqlserver.clustering)
  • RE: migrating from wmsde to sql server
    ... Click Start, point to All Programs\Microsoft SQL Server, and then click ... then click New SQL Server Registration. ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.windows.server.sbs)
  • RE: SBS 2003 Unable to connect to database STS_Config
    ... Uninstall the SQL server from the SBS 2k3 server from add/remove programs ... Uninstall Microsoft SQL Server Desktop Engine (SHAREPOINT) ... If AV software install any extra IIS virtual directory, ...
    (microsoft.public.windows.server.sbs)
  • Re: Best replication architecture?
    ... Looking for a SQL Server replication book? ... So if it is subscribing to Publisher 1, ...
    (microsoft.public.sqlserver.replication)