Failed to start monitoring changes to \\machine\folder

G

Greg Allen

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(String 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.GetParserCacheItemInternal(Boolean
fCreateIfNotFound) +463
System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath() +125
System.Web.UI.TemplateParser.GetParserCacheItem() +88
System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem(String
virtualPath, String inputFile, HttpContext context) +116
System.Web.UI.TemplateControlParser.GetCompiledInstance(String
virtualPath, String inputFile, HttpContext context) +36
System.Web.UI.PageParser.GetCompiledPageInstanceInternal(String
virtualPath, String inputFile, HttpContext context) +43
System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String
requestType, String url, String path) +44
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig) +699

System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep
..Execute() +96
System.Web.HttpApplication.ExecuteStep(IExecutionStep 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.aspx?scid=kb;EN-US;Q320268
2. Made sure I have permissions to the drives (see
http://support.microsoft.com/default.aspx?scid=kb;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
(e-mail address removed)
 
G

Guest

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 said:
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(String 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.GetParserCacheItemInternal(Boolean
fCreateIfNotFound) +463
System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath() +125
System.Web.UI.TemplateParser.GetParserCacheItem() +88
System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem(String
virtualPath, String inputFile, HttpContext context) +116
System.Web.UI.TemplateControlParser.GetCompiledInstance(String
virtualPath, String inputFile, HttpContext context) +36
System.Web.UI.PageParser.GetCompiledPageInstanceInternal(String
virtualPath, String inputFile, HttpContext context) +43
System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String
requestType, String url, String path) +44
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig) +699

System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep
..Execute() +96
System.Web.HttpApplication.ExecuteStep(IExecutionStep 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.aspx?scid=kb;EN-US;Q320268
2. Made sure I have permissions to the drives (see
http://support.microsoft.com/default.aspx?scid=kb;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
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top