By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,617 Members | 1,896 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,617 IT Pros & Developers. It's quick & easy.

Failed to start monitoring changes to \\machine\folder

P: n/a
I know this has been discussed before, and have found some documentation
about
it on the web. But nothing has fixed my problem.

I am running the 1.1 .NET framework, SP1.

I have a web application that I would like to place on a remote shared drive
on a different computer. I had problems with that, so I simplified it so
that I
am trying to use a shared drive on the SAME computer. That doesn't work
either.

I continually get messages of this flavor (they differ somewhat, but all
seem to
be mainly the same):

Failed to start monitoring changes to '\\moody\release\Reports\Controls'.
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.HttpException: Failed to start monitoring
changes to '\\moody\release\Reports\Controls'.

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 (0x80070038): Failed to start monitoring changes to
'\\moody\release\Reports\Controls'.]
System.Web.DirMonCompletion..ctor(DirectoryMonitor dirMon, String dir,
Boolean watchSubtree, UInt32 notifyFilter) +140
System.Web.DirectoryMonitor.StartMonitoring() +42
System.Web.DirectoryMonitor.StartMonitoringFile(St ring file,
FileChangeEventHandler callback, String alias) +154
System.Web.FileChangesMonitor.StartMonitoringPath( String alias,
FileChangeEventHandler callback) +495
System.Web.Caching.CacheDependency.Init(Boolean isPublic, Boolean
isSensitive, String[] filenamesArg, String[] cachekeysArg, CacheDependency
dependency, DateTime utcStart) +1535
System.Web.Caching.CacheDependency..ctor(Boolean isSensitive, String[]
filenames, DateTime utcStart) +50
System.Web.UI.TemplateParser.GetParserCacheItemInt ernal(Boolean
fCreateIfNotFound) +463
System.Web.UI.TemplateParser.GetParserCacheItemWit hNewConfigPath() +125
System.Web.UI.TemplateParser.GetParserCacheItem() +88
System.Web.UI.TemplateControlParser.CompileAndGetP arserCacheItem(String
virtualPath, String inputFile, HttpContext context) +116
System.Web.UI.TemplateControlParser.GetCompiledIns tance(String
virtualPath, String inputFile, HttpContext context) +36
System.Web.UI.PageParser.GetCompiledPageInstanceIn ternal(String
virtualPath, String inputFile, HttpContext context) +43
System.Web.UI.PageHandlerFactory.GetHandler(HttpCo ntext context, String
requestType, String url, String path) +44
System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig) +699

System.Web.MapHandlerExecutionStep.System.Web.Http Application+IExecutionStep
..Execute() +96
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously) +173

I have done the following:

1. Configured .NET framework, adding a new code group that includes my share
(full trust, see
http://support.microsoft.com/default...;EN-US;Q320268
2. Made sure I have permissions to the drives (see
http://support.microsoft.com/default...b;en-us;317955
3. Changed the aspnet_wp process to be run as myself in machine.config. I
am in the administrators group,
so I should have full permissions everywhere (and I have verified that I
do in every place I can think of).

I can't think of what else to try. Even though I am using a shared drive,
it's all on the same machine,
and my user ought to have all the necessary permissions.

The page being loaded does have some user controls, which are referenced as
a relative path. But
I can't see why that would be a problem. I seem to remember something about
user controls being
mentioned somewhere with this error, but I've read so much I have lost
track.

Does anybody have any ideas? When my app goes into production, I would like
to be able
to put it out on a shared drive. But I can't seem to make it work...

Thanks,

-- Greg Allen
ga****@arrayinc.com
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi,

I guess you've seen the post I raised a while ago on this. The following
suggestion by Steven Cheng worked for me:

2. You can also specify it for only a certain web application(rather than
the whole machine) in the web.config via the <identity impersonate="true"
userName=".." password=".."/>
This is more recommended.

Not sure if I had the same issue as you though, as I was trying to run an
app locally, and the app used a few aspx pages on a share via a virtual
directory...

K


"Greg Allen" wrote:
I know this has been discussed before, and have found some documentation
about
it on the web. But nothing has fixed my problem.

I am running the 1.1 .NET framework, SP1.

I have a web application that I would like to place on a remote shared drive
on a different computer. I had problems with that, so I simplified it so
that I
am trying to use a shared drive on the SAME computer. That doesn't work
either.

I continually get messages of this flavor (they differ somewhat, but all
seem to
be mainly the same):

Failed to start monitoring changes to '\\moody\release\Reports\Controls'.
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.HttpException: Failed to start monitoring
changes to '\\moody\release\Reports\Controls'.

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 (0x80070038): Failed to start monitoring changes to
'\\moody\release\Reports\Controls'.]
System.Web.DirMonCompletion..ctor(DirectoryMonitor dirMon, String dir,
Boolean watchSubtree, UInt32 notifyFilter) +140
System.Web.DirectoryMonitor.StartMonitoring() +42
System.Web.DirectoryMonitor.StartMonitoringFile(St ring file,
FileChangeEventHandler callback, String alias) +154
System.Web.FileChangesMonitor.StartMonitoringPath( String alias,
FileChangeEventHandler callback) +495
System.Web.Caching.CacheDependency.Init(Boolean isPublic, Boolean
isSensitive, String[] filenamesArg, String[] cachekeysArg, CacheDependency
dependency, DateTime utcStart) +1535
System.Web.Caching.CacheDependency..ctor(Boolean isSensitive, String[]
filenames, DateTime utcStart) +50
System.Web.UI.TemplateParser.GetParserCacheItemInt ernal(Boolean
fCreateIfNotFound) +463
System.Web.UI.TemplateParser.GetParserCacheItemWit hNewConfigPath() +125
System.Web.UI.TemplateParser.GetParserCacheItem() +88
System.Web.UI.TemplateControlParser.CompileAndGetP arserCacheItem(String
virtualPath, String inputFile, HttpContext context) +116
System.Web.UI.TemplateControlParser.GetCompiledIns tance(String
virtualPath, String inputFile, HttpContext context) +36
System.Web.UI.PageParser.GetCompiledPageInstanceIn ternal(String
virtualPath, String inputFile, HttpContext context) +43
System.Web.UI.PageHandlerFactory.GetHandler(HttpCo ntext context, String
requestType, String url, String path) +44
System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig) +699

System.Web.MapHandlerExecutionStep.System.Web.Http Application+IExecutionStep
..Execute() +96
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously) +173

I have done the following:

1. Configured .NET framework, adding a new code group that includes my share
(full trust, see
http://support.microsoft.com/default...;EN-US;Q320268
2. Made sure I have permissions to the drives (see
http://support.microsoft.com/default...b;en-us;317955
3. Changed the aspnet_wp process to be run as myself in machine.config. I
am in the administrators group,
so I should have full permissions everywhere (and I have verified that I
do in every place I can think of).

I can't think of what else to try. Even though I am using a shared drive,
it's all on the same machine,
and my user ought to have all the necessary permissions.

The page being loaded does have some user controls, which are referenced as
a relative path. But
I can't see why that would be a problem. I seem to remember something about
user controls being
mentioned somewhere with this error, but I've read so much I have lost
track.

Does anybody have any ideas? When my app goes into production, I would like
to be able
to put it out on a shared drive. But I can't seem to make it work...

Thanks,

-- Greg Allen
ga****@arrayinc.com

Nov 18 '05 #2

P: n/a
Greg,

You need to implement the client/server or both of the fixes mentioned in
the following article -
http://support.microsoft.com/default...221790&sd=tech

Nick
Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.