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.
Thanks, 6 1344
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" <da**********@cqlcorp.com> wrote in message news:%2****************@TK2MSFTNGP05.phx.gbl... 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. Thanks,
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" <no***********@nowhere.com> wrote in message
news:ui**************@TK2MSFTNGP05.phx.gbl... 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" <da**********@cqlcorp.com> wrote in message news:%2****************@TK2MSFTNGP05.phx.gbl... 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. Thanks,
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" <da**********@cqlcorp.com> wrote in message news:ud**************@TK2MSFTNGP05.phx.gbl... 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" <no***********@nowhere.com> wrote in message news:ui**************@TK2MSFTNGP05.phx.gbl... 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" <da**********@cqlcorp.com> wrote in message news:%2****************@TK2MSFTNGP05.phx.gbl... 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. Thanks,
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" <da**********@cqlcorp.com> wrote in message news:eV****************@TK2MSFTNGP05.phx.gbl... 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" <no***********@nowhere.com> wrote in message news:Og****************@TK2MSFTNGP04.phx.gbl... 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" <da**********@cqlcorp.com> wrote in message news:ud**************@TK2MSFTNGP05.phx.gbl... 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" <no***********@nowhere.com> wrote in message news:ui**************@TK2MSFTNGP05.phx.gbl... 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" <da**********@cqlcorp.com> wrote in message news:%2****************@TK2MSFTNGP05.phx.gbl... > 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. > > > > Thanks, > >
It's located c:\winnt\assembly\gac and I double checked and ASPNET has READ
access in that directory too.
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2***************@TK2MSFTNGP03.phx.gbl... 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" <da**********@cqlcorp.com> wrote in message news:eV****************@TK2MSFTNGP05.phx.gbl... 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" <no***********@nowhere.com> wrote in message news:Og****************@TK2MSFTNGP04.phx.gbl... 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" <da**********@cqlcorp.com> wrote in message news:ud**************@TK2MSFTNGP05.phx.gbl... 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" <no***********@nowhere.com> wrote in message news:ui**************@TK2MSFTNGP05.phx.gbl... > 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" <da**********@cqlcorp.com> wrote in message > news:%2****************@TK2MSFTNGP05.phx.gbl... >> 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. >> >> >> >> Thanks, >> >> > >
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" <da**********@cqlcorp.com> wrote in message news:Oh**************@TK2MSFTNGP04.phx.gbl... It's located c:\winnt\assembly\gac and I double checked and ASPNET has READ access in that directory too.
"Juan T. Llibre" <no***********@nowhere.com> wrote in message news:%2***************@TK2MSFTNGP03.phx.gbl... 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" <da**********@cqlcorp.com> wrote in message news:eV****************@TK2MSFTNGP05.phx.gbl... 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" <no***********@nowhere.com> wrote in message news:Og****************@TK2MSFTNGP04.phx.gbl... 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" <da**********@cqlcorp.com> wrote in message news:ud**************@TK2MSFTNGP05.phx.gbl... > 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" <no***********@nowhere.com> wrote in message > news:ui**************@TK2MSFTNGP05.phx.gbl... >> 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" <da**********@cqlcorp.com> wrote in message >> news:%2****************@TK2MSFTNGP05.phx.gbl... >>> 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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: William C. White |
last post by:
Does anyone know of a way to use PHP /w Authorize.net AIM without using
cURL? Our website is hosted on a shared drive and the webhost company
doesn't installed additional software (such as cURL)...
|
by: Albert Ahtenberg |
last post by:
Hello,
I don't know if it is only me but I was sure that header("Location:url")
redirects the browser instantly to URL, or at least stops the execution of
the code. But appearantely it continues...
|
by: James |
last post by:
Hi,
I have a form with 2 fields.
'A'
'B'
The user completes one of the fields and the form is submitted.
On the results page I want to run a query, but this will change
subject to which...
|
by: Ollivier Robert |
last post by:
Hello,
I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9
system. The link succeeds but everytime I try to run php, I get a SEGV from
inside the libcnltsh.so library.
...
|
by: Richard Galli |
last post by:
I want viewers to compare state laws on a single subject.
Imagine a three-column table with a drop-down box on the top. A viewer
selects a state from the list, and that state's text fills the...
|
by: Albert Ahtenberg |
last post by:
Hello,
I have two questions.
1. When the user presses the back button and returns to a form he filled
the form is reseted. How do I leave there the values he inserted?
2. When the...
|
by: inderjit S Gabrie |
last post by:
Hi all
Here is the scenerio ...is it possibly to do this...
i am getting valid course dates output on to a web which i have designed
....all is okay so far , look at the following web url
...
|
by: Jack |
last post by:
Hi All,
What is the PHP equivilent of Oracle bind variables in a SQL statement, e.g.
select x from y where z=:parameter
Which in asp/jsp would be followed by some statements to bind a value...
|
by: Sandwick |
last post by:
I am trying to change the size of a drawing so they are all 3x3.
the script below is what i was trying to use to cut it in half ... I
get errors.
I can display the normal picture but not the...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
| |