RE: Error: Failed to start monitoring changes - Framework 1.1
From: Jim Cheshire [MSFT] (jamesche_at_online.microsoft.com)
Date: 11/10/04
- Next message: Matt Berther: "Re: Page directive of classes of ASP.NET 2.0 projects?"
- Previous message: Patrick.O.Ige: "RequiredFieldValidator in Datagrid"
- In reply to: Tim D: "RE: Error: Failed to start monitoring changes - Framework 1.1"
- Next in thread: Tim D: "RE: Error: Failed to start monitoring changes - Framework 1.1"
- Reply: Tim D: "RE: Error: Failed to start monitoring changes - Framework 1.1"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 10 Nov 2004 23:58:57 GMT
Hi Tim,
No, ASP.NET doesn't care about image files, etc. unless you have mapped
those file types to aspnet_isapi.dll. I suspect you haven't.
I would just forget all of this and download Filemon from SysInternals and
figure out where you're being denied access.
Jim Cheshire [MSFT]
MCP+I, MCSE, MCSD, MCDBA
ASP.NET Developer Support
jamesche@online.microsoft.com
This post is provided "AS-IS" with no warranties and confers no rights.
--------------------
| Thread-Topic: Error: Failed to start monitoring changes - Framework 1.1
| thread-index: AcTHcnLvRQ+Gwk0AS5KQteLCyO9yjw==
| X-WBNR-Posting-Host: 202.3.78.9
| From: "=?Utf-8?B?VGltIEQ=?=" <TimD@discussions.microsoft.com>
| References: <C0AAAF10-E349-4DD8-83FC-F2D9AFD2C738@microsoft.com>
<chHkVCqxEHA.2916@cpmsftngxa10.phx.gbl>
<50C9128F-2A2B-4E9F-91A1-CD5C729EFDEC@microsoft.com>
<0RK87ArxEHA.3984@cpmsftngxa10.phx.gbl>
| Subject: RE: Error: Failed to start monitoring changes - Framework 1.1
| Date: Wed, 10 Nov 2004 14:13:04 -0800
| Lines: 282
| Message-ID: <3132145D-06F6-4635-BD3B-AAEB1D319AB7@microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
| Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.aspnet:275148
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
|
| Hi,
|
| I let perfmon run for two hours or so without seeing any application
| restarts, but decided to give delayNotificationTimeout a try anyway (none
of
| the counters seem to work). I thought it had fixed it, but alas, later
on
| the errors starting getting logged again. Is it enough to put it in the
| web.config, or do I need to put it into machine.config?
|
| The files in the directories that are being monitored are all JPEGs,
MPEGs,
| MP3s, WAVs etc - surely ASP.NET doesn't care about such files (?).
|
| One other strange thing I noticed is that sometimes the errors occur in
| pairs - one on each of the web servers for different files in the same
| directory (we have a page that displays 8 storyboard images that reside
in
| the virtual directory). The images for an asset are synchronously copied
| across to the virtual directory (if they're not already there) when the
page
| is requested... that's why it seems to me that perhaps there is a slight
lag
| before the NAS sets permissions properly.
|
| Tim
|
| "Jim Cheshire [MSFT]" wrote:
|
| > Hi Tim,
| >
| > We don't recycle the application domain when a change is made to an
ASPX
| > page. As a matter of fact, even if the page contains inline ASP.NET
code,
| > we will not recycle the app domain when it's recompiled. We will
recompile
| > the new page and new users will get the new page. Old users will still
use
| > the old page. Only after 15 recompilations (by default) will we
recycle
| > the app domain on a recompile of inline code. You can modify this
number
| > via the numRecompilesBeforeAppRestart attribute of the <compilation>
| > element in the machine.config file.
| >
| > You can determine if your app is restarting by checking the Application
| > Restarts counter on the ASP.NET v1.1.4322 object in Perfmon. This is a
| > cumulative counter since the process started.
| >
| > If you think you're getting an access denied due to recompilation as a
| > timing issue, you can add a delayNotificationTimeout attribute to your
| > httpRuntime element in the machine.config file and set it to 60. For
| > example:
| >
| > <httpRuntime delayNotificationTimeout="60" />
| >
| > That will often correct such problems.
| >
| > Jim Cheshire [MSFT]
| > MCP+I, MCSE, MCSD, MCDBA
| > ASP.NET Developer Support
| > jamesche@online.microsoft.com
| >
| > This post is provided "AS-IS" with no warranties and confers no rights.
| >
| >
| > --------------------
| > | Thread-Topic: Error: Failed to start monitoring changes - Framework
1.1
| > | thread-index: AcTGpn1orkfdwadNRt6iN+VzouvZXA==
| > | X-WBNR-Posting-Host: 202.3.78.9
| > | From: "=?Utf-8?B?VGltIEQ=?=" <TimD@discussions.microsoft.com>
| > | References: <C0AAAF10-E349-4DD8-83FC-F2D9AFD2C738@microsoft.com>
| > <chHkVCqxEHA.2916@cpmsftngxa10.phx.gbl>
| > | Subject: RE: Error: Failed to start monitoring changes - Framework 1.1
| > | Date: Tue, 9 Nov 2004 13:53:04 -0800
| > | Lines: 162
| > | Message-ID: <50C9128F-2A2B-4E9F-91A1-CD5C729EFDEC@microsoft.com>
| > | MIME-Version: 1.0
| > | Content-Type: text/plain;
| > | charset="Utf-8"
| > | Content-Transfer-Encoding: 7bit
| > | X-Newsreader: Microsoft CDO for Windows 2000
| > | Content-Class: urn:content-classes:message
| > | Importance: normal
| > | Priority: normal
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
| > | Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
| > | Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.aspnet:274860
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > |
| > | Hey Jim,
| > |
| > | Thanks for your reply. I was under the impression that ASP.NET only
| > | monitored directories for changes to .config and .dll files. As DLLs
| > only go
| > | in /bin and I have turned config override off for my virtual
directory,
| > it
| > | seemed to make sense that ASP.NET would stop monitoring sub
directories
| > for
| > | changes. Does it monitor other file types? I thought a request
needed
| > to be
| > | made for a .aspx page in order for a restart to occur, which would
| > suggest
| > | that changes to .aspx files are not monitored.
| > |
| > | Anyway, the problem isn't a permissions problem - the domain account
has
| > | permission to the files and the second request for any files that
cause
| > an
| > | error works perfectly. The error seems to be completely random...
| > perhaps
| > | there's a slight lag in applying the permissions to new files or
| > something.
| > |
| > | Thanks for your help,
| > |
| > | Tim
| > |
| > | "Jim Cheshire [MSFT]" wrote:
| > |
| > | > Hi Tim,
| > | >
| > | > When an application domain starts up, ASP.NET begins monitoring the
| > files
| > | > and folders where the content resides for file change
notifications.
| > That
| > | > way if a file changes in your application, the application domain
can
| > be
| > | > restarted so that the new change takes affect. This is part of the
| > | > architecture of ASP.NET and you can't change it.
| > | >
| > | > The process account has to have permission to the content in order
to
| > | > monitor it for changes. If you get errors such as this one, you
can
| > use a
| > | > tool such as Filemon (from http://www.sysinternals.com) or you can
| > audit
| > | > the location.
| > | >
| > | > Jim Cheshire [MSFT]
| > | > MCP+I, MCSE, MCSD, MCDBA
| > | > ASP.NET Developer Support
| > | > jamesche@online.microsoft.com
| > | >
| > | > This post is provided "AS-IS" with no warranties and confers no
rights.
| > | >
| > | > --------------------
| > | > | Thread-Topic: Error: Failed to start monitoring changes -
Framework
| > 1.1
| > | > | thread-index: AcTFNmHaxouOL227SLeYZGGWa0RjYw==
| > | > | X-WBNR-Posting-Host: 202.3.78.9
| > | > | From: "=?Utf-8?B?VGltIEQ=?=" <TimD@discussions.microsoft.com>
| > | > | Subject: Error: Failed to start monitoring changes - Framework 1.1
| > | > | Date: Sun, 7 Nov 2004 17:58:03 -0800
| > | > | Lines: 74
| > | > | Message-ID: <C0AAAF10-E349-4DD8-83FC-F2D9AFD2C738@microsoft.com>
| > | > | MIME-Version: 1.0
| > | > | Content-Type: text/plain;
| > | > | charset="Utf-8"
| > | > | Content-Transfer-Encoding: 7bit
| > | > | X-Newsreader: Microsoft CDO for Windows 2000
| > | > | Content-Class: urn:content-classes:message
| > | > | Importance: normal
| > | > | Priority: normal
| > | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| > | > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
| > | > | Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
| > | > | Xref: cpmsftngxa10.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:274243
| > | > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > | > |
| > | > | Hi,
| > | > |
| > | > | I originally posted this as a reply to a rather old thread in
| > | > | dotnet.framework.general and didn't get any response. I thought
it
| > might
| > | > be
| > | > | more relevant here; anyone got any ideas? My questions are
below...
| > | > |
| > | > | "David Good" wrote:
| > | > |
| > | > | > We have a network running both Win2k and Win2k3 webservers and
our
| > web
| > | > sites
| > | > | > reside on a UNC network share that happens to be a Network
| > Appliance
| > | > NAS.
| > | > | >
| > | > | > Since moving the web root to the network share on the NAS, we
have
| > been
| > | > | > receiving various forms of the following error:
| > | > | >
| > | > | > Failed to start monitoring changes to [path]
| > | > | > at System.Web.DirMonCompletion..ctor(DirectoryMonitor dirMon,
| > String
| > | > dir,
| > | > | > Boolean watchSubtree, UInt32 notifyFilter)
| > | > | > at System.Web.DirectoryMonitor.StartMonitoring()
| > | > | > at System.Web.DirectoryMonitor.StartMonitoringFile(String file,
| > | > | > FileChangeEventHandler callback, String alias)
| > | > | > at System.Web.FileChangesMonitor.StartMonitoringFile(String
alias,
| > | > | > FileChangeEventHandler callback)
| > | > | > ...
| > | > | >
| > | > | > We have exhausted every resource we can find but every
reference,
| > | > including
| > | > | > the MSDN knowledgebase includes "Access Denied" along with the
| > error
| > | > and some
| > | > | > security-related solution and indicates that these problems are
| > | > resolved with
| > | > | > the Framework v 1.1.
| > | > |
| > | > | We have a similar setup (including the Network Appliance) and
have
| > | > getting
| > | > | exactly the same error. We have tried changing the file
permissions
| > (the
| > | > | domain account under which ASP.NET runs has full control over the
| > | > | directories) and have also applied the registry settings
mentioned
| > | > elsewhere
| > | > | in this thread; both without luck.
| > | > |
| > | > | The root of the application in which we get the error is actually
on
| > a
| > | > local
| > | > | drive, but we have mapped a share on the NAS as a virtual
directory
| > | > | (connecting using the same domain user under which ASP.NET runs).
| > The
| > | > | virtual directory has many sub directories that are created
| > dynamically
| > | > by a
| > | > | backend application. The error only ever seems to occur the
first
| > time
| > | > | someone makes a request for a file, but not necessarily the first
| > request
| > | > for
| > | > | a file in that directory.
| > | > |
| > | > | As the files in the virtual directory are typically files for
people
| > to
| > | > | download, we have remapped all file types to aspnet_isapi.dll and
use
| > a
| > | > | HttpModule to add headers to the response so that people can do
left
| > | > click
| > | > | downloads (that is, a left click brings up a save as dialog
instead
| > of
| > | > the
| > | > | browser trying to open the file). To ensure all files are
treated as
| > | > static
| > | > | files we added the following to ~/web.config:
| > | > |
| > | > | <location path="Files">
| > | > | <system.web>
| > | > | <httpHandlers>
| > | > | <add verb="*" path="*"
| > type="System.Web.StaticFileHandler"/>
| > | > | </httpHandlers>
| > | > | </system.web>
| > | > | </location>
| > | > |
| > | > | What I want to know is, why does ASP.NET need to monitor the
| > directory
| > | > | anyway? I suspected that it may monitor the sub directories for
new
| > or
| > | > | modified web.config files and thought that adding
| > allowOverride="false"
| > | > to
| > | > | the <location> section above might help. Alas, it did not.
| > | > |
| > | > | Does anyone know of some way I can get ASP.NET to give up trying
to
| > | > monitor
| > | > | the directories? As far as I can tell it's doing nothing but
| > throwing
| > | > errors
| > | > | at completely random times.
| > | > |
| > | > | Is there a Microsoft person out there who might be able to shed
some
| > | > light
| > | > | on this?
| > | > |
| > | > | Cheers,
| > | > |
| > | > | Tim
| > | > |
| > | > |
| > | >
| > | >
| > |
| >
| >
|
- Next message: Matt Berther: "Re: Page directive of classes of ASP.NET 2.0 projects?"
- Previous message: Patrick.O.Ige: "RequiredFieldValidator in Datagrid"
- In reply to: Tim D: "RE: Error: Failed to start monitoring changes - Framework 1.1"
- Next in thread: Tim D: "RE: Error: Failed to start monitoring changes - Framework 1.1"
- Reply: Tim D: "RE: Error: Failed to start monitoring changes - Framework 1.1"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|