473,748 Members | 2,595 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Failed to start monitoring file changes when impersonation=" true".

I setup web.config with impersonation=" true". On our local server the project works great. I did the same procedures on our staging server, but it failed with an impossible error:

Server Error in '/' Application.
--------------------------------------------------------------------------------

Access denied to 'C:\Inetpub\www root\myapp\defa ult.aspx'. Failed to start monitoring file changes.
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.Web.Http Exception: Access denied to 'C:\Inetpub\www root\myapp\defa ult.aspx'. Failed to start monitoring file changes.

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:
[HttpException (0x80070005): Access denied to 'C:\Inetpub\www root\myapp\defa ult.aspx'. Failed to start monitoring file changes.]
System.Web.Dire ctoryMonitor.Ad dFileMonitor(St ring file) +381
System.Web.Dire ctoryMonitor.St artMonitoringFi le(String file, FileChangeEvent Handler callback, String alias) +76
System.Web.File ChangesMonitor. StartMonitoring Path(String alias, FileChangeEvent Handler callback) +495
System.Web.Cach ing.CacheDepend ency.Init(Boole an isPublic, Boolean isSensitive, String[] filenamesArg, String[] cachekeysArg, CacheDependency dependency, DateTime utcStart) +1535
System.Web.Cach ing.CacheDepend ency..ctor(Bool ean isSensitive, String[] filenames, DateTime utcStart) +50
System.Web.Conf iguration.HttpC onfigurationSys tem.GetCacheDep endencies(Hasht able cachedeps, DateTime utcStart) +144
System.Web.Conf iguration.HttpC onfigurationSys tem.ComposeConf ig(String reqPath, IHttpMapPath configmap) +697
System.Web.Http Context.GetComp leteConfigRecor d(String reqpath, IHttpMapPath configmap) +434
System.Web.Http Context.GetComp leteConfig() +49
System.Web.Http Context.GetConf ig(String name) +195
System.Web.Cust omErrors.GetSet tings(HttpConte xt context, Boolean canThrow) +20
System.Web.Http Response.Report RuntimeError(Ex ception e, Boolean canThrow) +40
System.Web.Http Runtime.FinishR equest(HttpWork erRequest wr, HttpContext context, Exception e) +479



--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:; ASP.NET Version:

Note! There is no text afeter the last colon! I copied all the text on the error page.

I am impersonating my account, which is in Administrators group on the staging server, and I have full access control to the myapp project directory. Additionally, I also tried to give full access control to my account on the %windir%microso ft.net\framewor k\v1.x.x.xxx\Te mporary ASP.NET Files, but the error persists. Actually this step is not necessary, since Administrators already have full access control of the directories.

Can anyone help?
Nov 18 '05 #1
1 6127
Seems to be a permissions problem

With impersonate = true, the thread takes the identity of either:
- the anonymous IIS user (if it is allowed for the Web application and no
ACL restriction nor Web.config forces the authentication of a Windows user)
- the Windows user (else)

In any case, whoever is impersonated lacks the necessary permissions to the
web folders and the pages can not be compared / recompiled if necessary

Regards
Jose.

"Edward Yang" <ne***********@ msn.com> escribió en el mensaje
news:en******** ******@TK2MSFTN GP09.phx.gbl...
I setup web.config with impersonation=" true". On our local server the
project works great. I did the same procedures on our staging server, but it
failed with an impossible error:

Server Error in '/' Application.
Access denied to 'C:\Inetpub\www root\myapp\defa ult.aspx'. Failed to start
monitoring file changes.
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.Web.Http Exception: Access denied to
'C:\Inetpub\www root\myapp\defa ult.aspx'. Failed to start monitoring file
changes.

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:
[HttpException (0x80070005): Access denied to
'C:\Inetpub\www root\myapp\defa ult.aspx'. Failed to start monitoring file
changes.]
System.Web.Dire ctoryMonitor.Ad dFileMonitor(St ring file) +381
System.Web.Dire ctoryMonitor.St artMonitoringFi le(String file,
FileChangeEvent Handler callback, String alias) +76
System.Web.File ChangesMonitor. StartMonitoring Path(String alias,
FileChangeEvent Handler callback) +495
System.Web.Cach ing.CacheDepend ency.Init(Boole an isPublic, Boolean
isSensitive, String[] filenamesArg, String[] cachekeysArg, CacheDependency
dependency, DateTime utcStart) +1535
System.Web.Cach ing.CacheDepend ency..ctor(Bool ean isSensitive, String[]
filenames, DateTime utcStart) +50

System.Web.Conf iguration.HttpC onfigurationSys tem.GetCacheDep endencies(Hasht a
ble cachedeps, DateTime utcStart) +144
System.Web.Conf iguration.HttpC onfigurationSys tem.ComposeConf ig(String
reqPath, IHttpMapPath configmap) +697
System.Web.Http Context.GetComp leteConfigRecor d(String reqpath,
IHttpMapPath configmap) +434
System.Web.Http Context.GetComp leteConfig() +49
System.Web.Http Context.GetConf ig(String name) +195
System.Web.Cust omErrors.GetSet tings(HttpConte xt context, Boolean
canThrow) +20
System.Web.Http Response.Report RuntimeError(Ex ception e, Boolean canThrow)
+40
System.Web.Http Runtime.FinishR equest(HttpWork erRequest wr, HttpContext
context, Exception e) +479


Version Information: Microsoft .NET Framework Version:; ASP.NET Version:
Note! There is no text afeter the last colon! I copied all the text on the
error page.

I am impersonating my account, which is in Administrators group on the
staging server, and I have full access control to the myapp project
directory. Additionally, I also tried to give full access control to my
account on the %windir%microso ft.net\framewor k\v1.x.x.xxx\Te mporary ASP.NET
Files, but the error persists. Actually this step is not necessary, since
Administrators already have full access control of the directories.

Can anyone help?
Nov 18 '05 #2

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

Similar topics

3
2231
by: Kathy Burke | last post by:
Hi. Totally lost on this one (ok, I admit I'm USUALLY lost!). All works fine in dev environment (P4, localhost server IIS, XP Pro) Asp.net and .Net 1.1 In order to access doc files needed for the app, I had to add the following to <system.web> in webconfig. <identity impersonate="true" userName="Jabil\BOSASPNET" password="@ugustus" />
2
2121
by: joeted | last post by:
Hello, I am trying to run a batch file on a (remote) .NET server (i'm not the admin) using system.diagnostics.process I find that the batch file is successfully executed. However, when i put <identity impersonate="true"/> in my web.config i get an "access denied" exception.
0
1346
by: steven | last post by:
I have an asp.net webapp running on W2K server with .net framework 1.1 The intranet-app supports 2 languages: dutch (fallback language) and french. The choice is made with 'Request.UserLanguages' In IIS the application is configured to use only windows authentication. The web.config file contains <identity impersonate="true" />. When I restart the server, only the primary ..resx (language.resx) file is used. The file that should be...
3
1577
by: Angelo Brusati | last post by:
When using VB6 COM objects on a ASP.NET page, and having the @Page directive with the AspCompat attribute set to true, it causes an error like "Method '~' of object '~' failed" or "Object reference not set to an instance of an object". The scenario is: - Windows 2003 server - IIS6 - Framework 1.1
7
1141
by: Abubakar | last post by:
Hi, I want to know when was the True and False first included in Basic llanguage? Was it the work of Microsoft or some other company? And who decided the value of true to be -1? Regards, Abubakar.
0
1373
by: John Jenkins | last post by:
Hi, can someone tell me why the following scneario occurs. With the nillable attribute set to true on an element that has min occurs set to zero, I generate a class. As expected this adds the IsNullable=true attribute <xs:element name="SSN" type="xs:string" minOccurs="0" nillable="true"/> /// <remarks/>
0
2315
by: Kit Truong | last post by:
The page directive: <% @Page aspcompat="true" %> is causing my web pages to hang. (Page takes a very long time to load, and finally loads with a blank page) Everything was working yesterday and as far as I can tell no changes occured to the server.
0
1507
by: Brian | last post by:
Greetings group! I've got a weird one. I have an ASP.NET 1.1 application that has been running on a dual-processor Windows 2000/IIS 5 server for a couple of years. Global.asax has an Application_Error() function that writes an entry to the event log. Everything works great. We're migrating to Windows 2003 on a new server, so I built up a virtual PC (MS Virtual Server) Win2k3/IIS6 (single processor) box for testing and everything works...
9
11190
by: Jamey Bon | last post by:
As a newbie to C#, I am not sure what I can do about this. I would like to do something like an Enumeration to use "constants" like Yes to indicate true and No for false. But since there seems to be no underlying 0 or non- zero for boolean values in C#, I am not sure how to handle this. Any advice would be appreciated. Thanks, JB
0
8989
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8828
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9537
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9367
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9243
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8241
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6795
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4599
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...

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.