Re: IIS 5.0 and ASP 2.0
- From: "Juan T. Llibre" <nomailreplies@xxxxxxxxxxx>
- Date: Fri, 23 Jun 2006 19:24:19 -0400
re:
ASPNET has READ access in that directory
Reviewing your original post, you said that :
the default user is IWAN
I think you meant IWAM, right ?
You need to determine which is the account which ASP.NET is *actually* running as.
Please save this script as "identity.aspx" and run it.
identity.aspx :
--------------
<%@ Page Language="VB" %>
<%@ Import NameSpace = System.Security.Principal %>
<script runat="server">
Sub Page_Load()
Dim tmp As String = WindowsIdentity.GetCurrent.Name()
Label1.Text = tmp
End Sub
</script>
<html>
<head>
<title>WindowsIdentity.GetCurrent.Name()</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="Label1" Runat="server" Text="Label"></asp:Label>
</div>
</form>
</body>
</html>
------------
Then, grant read permissions to whichever account the script returns.
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"DTM" <dan.moynihan@xxxxxxxxxxx> wrote in message news:Ohj6oAxlGHA.2128@xxxxxxxxxxxxxxxxxxxxxxx
It's located c:\winnt\assembly\gac and I double checked and ASPNET has READ access in that
directory too.
"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
news:%23q8tu2tlGHA.856@xxxxxxxxxxxxxxxxxxxxxxx
Hmmm, now that I recall, isn't the GAC on W2K located at c:\winnt\assembly\gac ?
Where are all your GAC assemblies located ?
In c:\winnt\assembly
or in :
c:\winnt\assembly\gac
???
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"DTM" <dan.moynihan@xxxxxxxxxxx> wrote in message news:eV%23mDNslGHA.5036@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
Well we tried your instructions and followed the steps from the "ASP.NET2.0 Troubleshooting.pdf"
but still can't get our app to run. We still get the same error in Event Viewer,
Event Type: Error
Event Source: ASP.NET 2.0.50727.0
Event Category: None
Event ID: 1089
Date: 6/21/2006
Time: 8:28:48 AM
User: N/A
Computer: CQL-GR-ST01
Description:
Failed to execute the request because the ASP.NET process identity does not have read
permissions to the global assembly cache. Error: 0x80070005 Access is denied.
This is the exact command we ran:
cacls c:\winnt\assembly /e /t /p cql-gr-st01\ASPNET:R
You can see that the user does have read access to assembly.
Any other ideas on this issue?
Thanks for your help.
"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
news:OgoZXf%23kGHA.5072@xxxxxxxxxxxxxxxxxxxxxxx
You can't set permissions on the GAC directory via Windows Explorer.
Use a commandline utility called CACLS.
Open up a command window and run the following command :
CACLS %WINDIR%\assembly /e /t /p [DOMAIN|MACHINENAME]\useraccount:R
...substituting either your domain name (for a domain account) or machine name (for a local
account).
For example :
CACLS %WINDIR%\assembly /e /t /p MACHINENAME\account:R
or
CACLS %WINDIR%\assembly /e /t /p DOMAINNAME\useraccount:R
It *must* be the account ASP.NET is running as...
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"DTM" <dan.moynihan@xxxxxxxxxxx> wrote in message news:ud0ny89kGHA.4224@xxxxxxxxxxxxxxxxxxxxxxx
Juan,
Here is the error I get in Event Viewer when trying to run our application. How to a grant
ASP.NET
user 'read' permissions to the GAC?
Event Type: Error
Event Source: ASP.NET 2.0.50727.0
Event Category: None
Event ID: 1089
Date: 6/19/2006
Time: 9:37:32 AM
User: N/A
Computer: CQL-GR-ST01
Description:
Failed to execute the request because the ASP.NET process identity does not have read
permissions
to the global assembly cache. Error: 0x80070005 Access is denied.
Thanks,
"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
news:uib02p9kGHA.1244@xxxxxxxxxxxxxxxxxxxxxxx
re:
How do we run this new application pool under Network Service
The Network Service account is specific to IIS 6.0.
I don't think you can create a Network Service account under IIS 5.x.
re:
is there a different way to grant the correct permissions to make our application run
The best way to grant the correct permissions for 2.0 is :
aspnet_regiis -GA machinename\accountname
or
aspnet_regiis -GA domainname\accountname
Alternately, you can manually grant whichever account you're
running ASP.NET as, the permisions which this article enumerates :
http://msdn2.microsoft.com/en-us/library/kwzs111e.aspx
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"DTM" <dan.moynihan@xxxxxxxxxxx> wrote in message
news:%23x$CaZ9kGHA.4660@xxxxxxxxxxxxxxxxxxxxxxx
We have a win2k with SP4 running IIS5. We have Framework v2.0.507277 installed and looking
run
an application in ASP 2.0. We are having troubles because the default user is IWAN which
doesn't have the correct permissions to run an ASP 2.0 application. How do we run this new
application pool under Network Service or is there a different way to grant the correct
permissions to make our application run.
.
- References:
- IIS 5.0 and ASP 2.0
- From: DTM
- Re: IIS 5.0 and ASP 2.0
- From: Juan T. Llibre
- Re: IIS 5.0 and ASP 2.0
- From: DTM
- Re: IIS 5.0 and ASP 2.0
- From: Juan T. Llibre
- Re: IIS 5.0 and ASP 2.0
- From: Juan T. Llibre
- Re: IIS 5.0 and ASP 2.0
- From: DTM
- IIS 5.0 and ASP 2.0
- Prev by Date: no Delete on TableAdapter
- Next by Date: Re: Precompile problem...
- Previous by thread: Re: IIS 5.0 and ASP 2.0
- Next by thread: How can I restart IIS or server from ASPX page or web service?
- Index(es):
Relevant Pages
|