473,416 Members | 1,530 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

.net user permissions in IIS

Hi folks,

Just wondering if anyone can help me out with this problem I'm having
getting a particular .net web application to run on a windows 2003 r2
x64 platform running as a domain account.

Our current setup is as follows:

We have a windows 2003 domain with 4 web servers in. Two of them are
windows 2003 sp1 and I am trying to bring two new ones online. These
are new windows 2003 x64 R2 boxes. The web sites we run as domain
accounts as they need to access resources and shared folders on other
servers within the domain.

We have a built our own imageresizer application that runs in .net
1.1. (I think). Apologies if some of my programming terminology is a
bit rubbish as I'm a sys admin by nature.

On the older servers with have the following versions of the .net
framework installed (these are the folders from windows/microsoft.net
folder)1.0.33, 1.0.37. 1.1.43. The new servers have the following
versions on them 1.0.37, 1.1.43 and 2.0.50. On the new servers there
is also a folder called framework64.

When I try to run the application in the browser in a site running as
a domain account I get the following .net error:

Server Error in '/IMAGERESIZER' Application.
________________________________________
Access is denied. (Exception from HRESULT: 0x80070005
(E_ACCESSDENIED))
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Access is
denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request
identity. ASP.NET has a base process identity (typically {MACHINE}
\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the
application is not impersonating. If the application is impersonating
via <identity impersonate="true"/>, the identity will be the anonymous
user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET access to a file, right-click the file in Explorer,
choose "Properties" and select the Security tab. Click "Add" to add
the appropriate user or group. Highlight the ASP.NET account, and
check the boxes for the desired access.

Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace
below.

Stack Trace:

[UnauthorizedAccessException: Access is denied. (Exception from
HRESULT: 0x80070005 (E_ACCESSDENIED))]

[FileLoadException: Could not load file or assembly
'System.Web.RegularExpressions, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Access is
denied.]
System.Web.Configuration.RegexWorker..cctor() +0

[TypeInitializationException: The type initializer for
'System.Web.Configuration.RegexWorker' threw an exception.]
System.Web.Configuration.RegexWorker.Lookup(String from) +0
System.Web.Configuration.RegexWorker.get_Item(Stri ng key) +4
ASP.BrowserCapabilitiesFactory.MozillaProcess(Name ValueCollection
headers, HttpBrowserCapabilities browserCaps) +449
ASP.BrowserCapabilitiesFactory.DefaultProcess(Name ValueCollection
headers, HttpBrowserCapabilities browserCaps) +2568

ASP.BrowserCapabilitiesFactory.ConfigureBrowserCap abilities(NameValueCollection
headers, HttpBrowserCapabilities browserCaps) +21

System.Web.Configuration.BrowserCapabilitiesFactor yBase.GetHttpBrowserCapabilities(HttpRequest
request) +159

System.Web.Configuration.HttpCapabilitiesEvaluator .EvaluateFinal(HttpRequest
request, Boolean onlyEvaluateUserAgent) +23

System.Web.Configuration.HttpCapabilitiesEvaluator .Evaluate(HttpRequest
request) +182

System.Web.Configuration.HttpCapabilitiesBase.GetB rowserCapabilities(HttpRequest
request) +162
System.Web.HttpRequest.get_Browser() +134

System.Web.ErrorFormatter.RequiresAdaptiveErrorRep orting(HttpContext
context) +104

I can get the application to run successfully when I add the domain
user to the local administrators group but this really isn't an option
as we cannot have sites running as local admin users. I can also get
the application to run ok when it is running on a site running as the
anonymous IIS user.

I am presuming that the error message is down to not being able to
access this file System.Web.RegularExpressions. How do i go about
setting the permissions for our domain user to access the .net files
without granting them administrator privileges.

Much appreciated
John

Feb 8 '07 #1
2 17664
Fox1977,
The exception message has all the information you need to correct this
problem.
You can right -click on the folder containing the resources where access is
denied, choose the Security Tab, and either grant permission to the required
account, or add the needed account and grant it permission. If it needs to be
a domain account, you can add it there.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Fox1977" wrote:
Hi folks,

Just wondering if anyone can help me out with this problem I'm having
getting a particular .net web application to run on a windows 2003 r2
x64 platform running as a domain account.

Our current setup is as follows:

We have a windows 2003 domain with 4 web servers in. Two of them are
windows 2003 sp1 and I am trying to bring two new ones online. These
are new windows 2003 x64 R2 boxes. The web sites we run as domain
accounts as they need to access resources and shared folders on other
servers within the domain.

We have a built our own imageresizer application that runs in .net
1.1. (I think). Apologies if some of my programming terminology is a
bit rubbish as I'm a sys admin by nature.

On the older servers with have the following versions of the .net
framework installed (these are the folders from windows/microsoft.net
folder)1.0.33, 1.0.37. 1.1.43. The new servers have the following
versions on them 1.0.37, 1.1.43 and 2.0.50. On the new servers there
is also a folder called framework64.

When I try to run the application in the browser in a site running as
a domain account I get the following .net error:

Server Error in '/IMAGERESIZER' Application.
________________________________________
Access is denied. (Exception from HRESULT: 0x80070005
(E_ACCESSDENIED))
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Access is
denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request
identity. ASP.NET has a base process identity (typically {MACHINE}
\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the
application is not impersonating. If the application is impersonating
via <identity impersonate="true"/>, the identity will be the anonymous
user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET access to a file, right-click the file in Explorer,
choose "Properties" and select the Security tab. Click "Add" to add
the appropriate user or group. Highlight the ASP.NET account, and
check the boxes for the desired access.

Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace
below.

Stack Trace:

[UnauthorizedAccessException: Access is denied. (Exception from
HRESULT: 0x80070005 (E_ACCESSDENIED))]

[FileLoadException: Could not load file or assembly
'System.Web.RegularExpressions, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Access is
denied.]
System.Web.Configuration.RegexWorker..cctor() +0

[TypeInitializationException: The type initializer for
'System.Web.Configuration.RegexWorker' threw an exception.]
System.Web.Configuration.RegexWorker.Lookup(String from) +0
System.Web.Configuration.RegexWorker.get_Item(Stri ng key) +4
ASP.BrowserCapabilitiesFactory.MozillaProcess(Name ValueCollection
headers, HttpBrowserCapabilities browserCaps) +449
ASP.BrowserCapabilitiesFactory.DefaultProcess(Name ValueCollection
headers, HttpBrowserCapabilities browserCaps) +2568

ASP.BrowserCapabilitiesFactory.ConfigureBrowserCap abilities(NameValueCollection
headers, HttpBrowserCapabilities browserCaps) +21

System.Web.Configuration.BrowserCapabilitiesFactor yBase.GetHttpBrowserCapabilities(HttpRequest
request) +159

System.Web.Configuration.HttpCapabilitiesEvaluator .EvaluateFinal(HttpRequest
request, Boolean onlyEvaluateUserAgent) +23

System.Web.Configuration.HttpCapabilitiesEvaluator .Evaluate(HttpRequest
request) +182

System.Web.Configuration.HttpCapabilitiesBase.GetB rowserCapabilities(HttpRequest
request) +162
System.Web.HttpRequest.get_Browser() +134

System.Web.ErrorFormatter.RequiresAdaptiveErrorRep orting(HttpContext
context) +104

I can get the application to run successfully when I add the domain
user to the local administrators group but this really isn't an option
as we cannot have sites running as local admin users. I can also get
the application to run ok when it is running on a site running as the
anonymous IIS user.

I am presuming that the error message is down to not being able to
access this file System.Web.RegularExpressions. How do i go about
setting the permissions for our domain user to access the .net files
without granting them administrator privileges.

Much appreciated
John

Feb 8 '07 #2
I've just granted a domain group I created access to the windows
folder and it seems to have sorted the problem.

Thanks

On 8 Feb, 12:06, Peter Bromberg [C# MVP]
<pbromb...@yahoo.yabbadabbadoo.comwrote:
Fox1977,
The exception message has all the information you need to correct this
problem.
You can right -click on the folder containing the resources where access is
denied, choose the Security Tab, and either grant permission to the required
account, or add the needed account and grant it permission. If it needs to be
a domain account, you can add it there.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net

"Fox1977" wrote:
Hi folks,
Just wondering if anyone can help me out with this problem I'm having
getting a particular .net web application to run on a windows 2003 r2
x64 platform running as a domain account.
Our current setup is as follows:
We have a windows 2003 domain with 4 web servers in. Two of them are
windows 2003 sp1 and I am trying to bring two new ones online. These
are new windows 2003 x64 R2 boxes. The web sites we run as domain
accounts as they need to access resources and shared folders on other
servers within the domain.
We have a built our own imageresizer application that runs in .net
1.1. (I think). Apologies if some of my programming terminology is a
bit rubbish as I'm a sys admin by nature.
On the older servers with have the following versions of the .net
framework installed (these are the folders from windows/microsoft.net
folder)1.0.33, 1.0.37. 1.1.43. The new servers have the following
versions on them 1.0.37, 1.1.43 and 2.0.50. On the new servers there
is also a folder called framework64.
When I try to run the application in the browser in a site running as
a domain account I get the following .net error:
Server Error in '/IMAGERESIZER' Application.
________________________________________
Access is denied. (Exception from HRESULT: 0x80070005
(E_ACCESSDENIED))
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.UnauthorizedAccessException: Access is
denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request
identity. ASP.NET has a base process identity (typically {MACHINE}
\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the
application is not impersonating. If the application is impersonating
via <identity impersonate="true"/>, the identity will be the anonymous
user (typically IUSR_MACHINENAME) or the authenticated request user.
To grant ASP.NET access to a file, right-click the file in Explorer,
choose "Properties" and select the Security tab. Click "Add" to add
the appropriate user or group. Highlight the ASP.NET account, and
check the boxes for the desired access.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace
below.
Stack Trace:
[UnauthorizedAccessException: Access is denied. (Exception from
HRESULT: 0x80070005 (E_ACCESSDENIED))]
[FileLoadException: Could not load file or assembly
'System.Web.RegularExpressions, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Access is
denied.]
System.Web.Configuration.RegexWorker..cctor() +0
[TypeInitializationException: The type initializer for
'System.Web.Configuration.RegexWorker' threw an exception.]
System.Web.Configuration.RegexWorker.Lookup(String from) +0
System.Web.Configuration.RegexWorker.get_Item(Stri ng key) +4
ASP.BrowserCapabilitiesFactory.MozillaProcess(Name ValueCollection
headers, HttpBrowserCapabilities browserCaps) +449
ASP.BrowserCapabilitiesFactory.DefaultProcess(Name ValueCollection
headers, HttpBrowserCapabilities browserCaps) +2568
ASP.BrowserCapabilitiesFactory.ConfigureBrowserCap abilities(NameValueCollection
headers, HttpBrowserCapabilities browserCaps) +21
System.Web.Configuration.BrowserCapabilitiesFactor yBase.GetHttpBrowserCapabilities(HttpRequest
request) +159
System.Web.Configuration.HttpCapabilitiesEvaluator .EvaluateFinal(HttpRequest
request, Boolean onlyEvaluateUserAgent) +23
System.Web.Configuration.HttpCapabilitiesEvaluator .Evaluate(HttpRequest
request) +182
System.Web.Configuration.HttpCapabilitiesBase.GetB rowserCapabilities(HttpRequest
request) +162
System.Web.HttpRequest.get_Browser() +134
System.Web.ErrorFormatter.RequiresAdaptiveErrorRep orting(HttpContext
context) +104
I can get the application to run successfully when I add the domain
user to the local administrators group but this really isn't an option
as we cannot have sites running as local admin users. I can also get
the application to run ok when it is running on a site running as the
anonymous IIS user.
I am presuming that the error message is down to not being able to
access this file System.Web.RegularExpressions. How do i go about
setting the permissions for our domain user to access the .net files
without granting them administrator privileges.
Much appreciated
John

Feb 8 '07 #3

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

Similar topics

3
by: dan glenn | last post by:
(PHP 4.3.4) THIS IS DRIVING ME NUTS! I have a website where I offer members their own bit of webspace to use and am coding a very simple 'filemanager' that allows a user to upload, delete, and...
2
by: gudia | last post by:
How would I, using a sql script, copy permissions assigned to a user or a role in one or more databases to another user or a role in their respective databases? Help appreciated
3
by: teddysnips | last post by:
Currently studying for 70-229. I'm trying to understand how security for users is managed in SQL Server. I've been using SQL Server for a few years now, but without investigating the bits that...
3
by: MLH | last post by:
I was running the following code while logged in as a user belonging only to the Users group. Set usrNew = .CreateUser(Me!UserID) 'The user ID is in a control on the form usrNew.PID =...
1
by: Angelo | last post by:
I have a user (john.doe) as a member of a group (MyGroup). I have assigned group permission to view and run the queries of that db but then when I log in with that user, I still can't access the...
11
by: Marcelo López | last post by:
I need to create a folder in the file system owned by an special user created by my application. The idea is that only my app will have permissions to delete and create files on that folder. My...
1
by: Earl Teigrob | last post by:
Background: When I create a ASP.NET control (User or custom), it often requires security to be set for certain functionality with the control. For example, a news release user control that is...
6
by: Andrew Chalk | last post by:
My application attempts to connect to an SQL Server database as name ASPNET and Login Name SERVERNAME/ASPNET in response to these commands: SqlConnection myConnection = new SqlConnection("Data...
8
by: Bernard Lebel | last post by:
Hello, I would like to know if there is a way to run a Python file under a different user account than the one logged in. Allow me to explain. There are a bunch of people here, they are "basic...
0
by: Curt K | last post by:
We run some web services (IIS 5 and IIS 6) that communicate to a COM out of process server, which in turn communicates to another out of process COM server (long story). We have had lots of...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.