I've now created the same setup on four different machines, where I'm
changing the processModel section machine.config so that ASP.NET (1.1)
runs as SYSTEM, to give it permission to do various things like access
the Task Scheduler etc.
Three of the machines are using IIS 5.1 and work fine. The 4th machine
is using IIS 6.0, and also has ASP.NET 2.0 installed (but I've made
sure that the IIS application in question is using ASP.NET 1.1). But
on this machine, the machine.config setting seems be to getting
ignored, and the process is running as "NETWORK SERVICE", which does
*not* have permission to access the Task Scheduler (at least, by
default - presumably I could grant it this access).
Any clues why this setting would not work under IIS 6.0? I've tried
rerunning aspnet_regiis, restarting the web server any number of times,
but to no avail.
Thanks. 3 6012 wi******@hotmail.com wrote:
I've now created the same setup on four different machines, where I'm
changing the processModel section machine.config so that ASP.NET (1.1)
runs as SYSTEM, to give it permission to do various things like access
the Task Scheduler etc.
Three of the machines are using IIS 5.1 and work fine. The 4th machine
is using IIS 6.0, and also has ASP.NET 2.0 installed (but I've made
sure that the IIS application in question is using ASP.NET 1.1). But
on this machine, the machine.config setting seems be to getting
ignored, and the process is running as "NETWORK SERVICE", which does
*not* have permission to access the Task Scheduler (at least, by
default - presumably I could grant it this access).
Any clues why this setting would not work under IIS 6.0? I've tried
rerunning aspnet_regiis, restarting the web server any number of times,
but to no avail.
Never mind, found the problem - under IIS 6.0 it appears you have to
configure the application pool identity instead. I assume then the
processModel section in machine.config is not used under IIS 6.0.
Writing an install that can do all this automatically is going to be
fun. wi******@hotmail.com wrote:
wi******@hotmail.com wrote:
>I've now created the same setup on four different machines, where I'm changing the processModel section machine.config so that ASP.NET (1.1) runs as SYSTEM, to give it permission to do various things like access the Task Scheduler etc. Three of the machines are using IIS 5.1 and work fine. The 4th machine is using IIS 6.0, and also has ASP.NET 2.0 installed (but I've made sure that the IIS application in question is using ASP.NET 1.1). But on this machine, the machine.config setting seems be to getting ignored, and the process is running as "NETWORK SERVICE", which does *not* have permission to access the Task Scheduler (at least, by default - presumably I could grant it this access). Any clues why this setting would not work under IIS 6.0? I've tried rerunning aspnet_regiis, restarting the web server any number of times, but to no avail.
Never mind, found the problem - under IIS 6.0 it appears you have to
configure the application pool identity instead. I assume then the
processModel section in machine.config is not used under IIS 6.0.
Writing an install that can do all this automatically is going to be
fun.
Hi,
Instead of doing these tweaks on installation, you can use impersonation
- even per application - by add the following line in your application's
web.config:
<identity impersonate = "true" userName="SYSTEM"/>
Yinon Ehrlich wrote:
wi******@hotmail.com wrote:
wi******@hotmail.com wrote:
I've now created the same setup on four different machines, where I'm
changing the processModel section machine.config so that ASP.NET (1.1)
runs as SYSTEM, to give it permission to do various things like access
the Task Scheduler etc.
Three of the machines are using IIS 5.1 and work fine. The 4th machine
is using IIS 6.0, and also has ASP.NET 2.0 installed (but I've made
sure that the IIS application in question is using ASP.NET 1.1). But
on this machine, the machine.config setting seems be to getting
ignored, and the process is running as "NETWORK SERVICE", which does
*not* have permission to access the Task Scheduler (at least, by
default - presumably I could grant it this access).
Any clues why this setting would not work under IIS 6.0? I've tried
rerunning aspnet_regiis, restarting the web server any number of times,
but to no avail.
Never mind, found the problem - under IIS 6.0 it appears you have to
configure the application pool identity instead. I assume then the
processModel section in machine.config is not used under IIS 6.0.
Writing an install that can do all this automatically is going to be
fun.
Hi,
Instead of doing these tweaks on installation, you can use impersonation
- even per application - by add the following line in your application's
web.config:
<identity impersonate = "true" userName="SYSTEM"/>
Are you sure? That seems like a security loophole - if a
non-Administrator had write access to a directory containing an ASP.NET
application, they could easily change it to run as LocalSystem, which
typically has full access to everything. Certainly our intention is to
allow support staff write access to the directories where ASP.NET apps
sit, as the web.config file has some settings they may need to adjust -
but we certainly wouldn't want to allow them to change the process
identity (in future versions I hope not to require running as Local
System, but for now it's the least problematic). This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Seeheng |
last post by:
I've created a VB.Net program running perfectly under local hard drive. But when move it to a network path (both UNC name and drive mapping tested), it gave "An exception...
|
by: Frank Meng |
last post by:
Hi.
Can system service identify current active user with .net?
I need current active user's logon name from system service.
I tried WindowsIdentity.GetCurrent().Name and it gave me "NT...
|
by: John Dalberg |
last post by:
I am getting the message below in the event log. This is a development
machine running Windows 2000 Pro.
I have changed userName from machine to SYSTEM in machine.config. I gave
EVERYONE group...
|
by: Brian Foree |
last post by:
I am developing an ASP.NET application that uses Access 2000 as its backend,
and have just started getting the following error on 2 ASP.NET pages that
had been working until late last week (and I...
|
by: Rossco |
last post by:
I have a VB.NET serviced component (COM+), running on a lan, that
calls out to an external web service to place an order with a
supplier.
The problem machine is the middle tier (COM+) for our in...
|
by: Henrik |
last post by:
Hi
Is there any way to see what the System process is doing?
We have developed an application running at a production site to measure and
optimize the production. The application needs to be...
|
by: =?Utf-8?B?cmVk?= |
last post by:
Hi Friends,
We recently deployed our application to production and I am experiencing the
below error message.
Cannot access a disposed object named "System.Net.TlsStream"
The error occurs...
|
by: =?Utf-8?B?Wm9vZG9y?= |
last post by:
I have a ClickOnce application that uses web services. This works from every
machine we can test it on; however, a customer has a laptop that fails with
an exception (relevant portion of stack...
|
by: Traps |
last post by:
Here's my code.
Process newProcess = new Process();
newProcess.StartInfo.WorkingDirectory = @"C:\";
newProcess.StartInfo.FileName = "Testapp.exe";
...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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...
|
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,...
|
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...
|
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,...
|
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...
|
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,...
| | |