Re: sql server and asp.net problem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Hermit Dave (hermitd.REMOVE_at_CAPS.AND.DOTS.hotmail.com)
Date: 10/10/04


Date: Sun, 10 Oct 2004 18:05:12 +0100

Thank you steven. Hey, it does mention IIS 6 on Windows 2003 Server and how
to get SQL Server access denied problem sorted :)
you just have to scroll a bit further down.

-- 
Regards,
Hermit Dave
(http://hdave.blogspot.com)
"Steven Cheng[MSFT]" <v-schang@online.microsoft.com> wrote in message
news:xCIDF#prEHA.2804@cpmsftngxa06.phx.gbl...
> Thanks for Hermit's informative resources.
>
> Hi Brian,
>
> The problem you meet is a general permission issue on asp.net when
> accessing sqlserver. As you mentioned on 2k machine, we can grant the
> permission to the machine\aspnet and make it work. But it didn't work on
> 2k3 machine. This is because the different process isolation model between
> them.
>
> The <processModel> setting is the one worked for asp.net on win2k or xp
> machine which can use <processModel> to specify process identity .
>
> #Configuring ASP.NET Process Identity
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
> l/cpconConfiguringASPNETProcessIdentity.asp
>
> On w2k3 with iis6, this model is also available but by default is not
used.
> The default process isolation model is applicaiton pool setting( can
> configure in IIS management console)
> The application pool setting can help speicify an asp.net web application
> under a certain application pool and each application pool can configure a
> process identity.  And the default value is the NT AUTHORITY\NETWORK
> SERVICE account which is in the IIS_WPG group. So as for the problem, we
> have serveal approachs:
> 1. in sqlsever directly add an login identity ( type the "NT
> AUTHORITY\NETWORK SERVICE" directly in the name entry field since it's a
> hidden account
> and grant it the sufficient permission
>
> 2. Grant the IIS_WPG group sufficient rights since the NETWORK SERVICE
> account is in this group.
>
> 3. Find the applicaton pool setting in IIS6 and change its identity
account
> so as to let the application run under a different account
>
> 4. Swtich to use the older model in 2k iis5 , use the <processModel> and
> machine\aspnet account (but is not recommeded)
>
>
> Here is some further resource on the new application pool isolation model
> on IIS6:
>
> #IIS 6.0 Application Isolation Modes
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
> l/cpconiis60applicationisolationmodes.asp
>
> #Mapping ASP.NET Process Model Settings to IIS 6.0 Application Pool
Settings
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
> l/cpconaspnetprocessmodelsettingequivalencetoapplicationpoolsettings.asp
>
> Hope helps. If you have any other questions, please feel free to post
here.
>
> Regards,
>
> Steven Cheng
> Microsoft Online Support
>
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>


Relevant Pages

  • Re: sharepoint - service not available
    ... resolved the issue by restarting the IIS service under the ... This issue may occur if the application pool for the virtual server is ... * The application pool account uses an incorrect password. ...
    (microsoft.public.sharepoint.portalserver)
  • RE: HowTo Purge Windows (Server 2003) logon session
    ... In our configuration we're using domain accounts as IIS application pool ... Our policy is that a developer doesn't need to know the application account ... When IIS starts, it creates a logon session (of type ...
    (microsoft.public.platformsdk.security)
  • Re: Basic question on Windows Integrated Security
    ... IUSR_is not the default Web App Pool identity. ... IUSR_is used by IIS as the account to impersonate for requests ... Pool identity, and is configurable via the Application Pools node in the IIS ...
    (microsoft.public.inetserver.iis.security)
  • Re: Running a script from an ASP page
    ... ProcessIdentity can be set in the IIS Manager UI. ... Identify the Application Pool your app runs in. ... anonymous user, you need to synchronize the username/password yourself. ... >>> or of the account given to the anonymous user to access cmd.exe. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Incoming E-Mail - cant create contact in OU
    ... central admin pool different than the web app. ... that account a little (if the web app is compromised or something, ... So I started with giving the app pool account domain admins permissions then ...
    (microsoft.public.sharepoint.windowsservices)