473,795 Members | 2,924 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Failed to start monitoring changes to

Hi,

My App running on my local machine is trying to access apsx and ascx pages
via a virtual directory (see earlier post) that points to a share on a
different machine.

I can now access .aspx and run .aspx pages ok. However I've added a <@
register tag to a local page that references a .ascx page on the remote share
(via the virtual directory). I now get a 'Failed to start monitoring changes
to ' error on the @register statement.
I've seen this mentioned on the web in a few places but all the solutions
suggest adding access rights for 'APSNET' and 'NETWORK Service' accounts.
Just to make sure access rights aren't the issue the share now has 'Everyone'
full access, but I still get the error.

Any clues?

Nov 18 '05 #1
4 7376
Hi kimpton,

From your description, you have a asp.net web application host in a local
virutal dir which point to a remote shared folder(the web pages and
resouces are in that shared folder). Then, you encounter 'Failed to start
monitoring changes
to ' error ,yes?

Based on my experience, such problem does likely be caused by permission
issue since the ASP.NET runtime need to monitor the files and assemlbies in
the application so that whenever there are any changes on them, the certain
component should be recompiled or the app need be restarted.

As you mentioned that the error occur on the "@register " directive, yes?
What's the assembly the @register has referenced? Also, is there any
problem if you visit other pages in the sites or just the page which has
this "@register" diretive suffer th problem?

In addition, since the virutal folder point to a remote shared folder,
what's its UNC "Connect As" account which is configured in the IIS? Is it a
powerful account?

If you have any other findings or question, please feel free to post here .
Thanks.

Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
Nov 18 '05 #2
Hi,

Thanks for the quick response.

I have a web app on my local server. We also have a collection of shared
aspx and ascx files on a remote server. The local web app has a virutal
directory created in IIS pointing at the share on the remote server with the
aspx and ascx files.

Accessing and executing aspx files works fine. So if my virtual directory is
called 'sharedstuff', this works ok:

http://localhost/appname/sharedstuff/asharedaspx.aspx.

However if a local aspx page includes a register directive to a shared ascx
via the virtual directory I get the 'Failed to start monitoring changes
error', e.g.

<%@ Register TagPrefix="shar ed" TagName="someas cx"
Src="../sharedstuff/asharedascx.asc x" %>

I get error on this line in the error output.

The share on the remote server has 'Everyone' full access.


Nov 18 '05 #3
Hi kimpton,

Thanks for your response. Regarding on your further description, I've done
some tests on my side, and found that the problem is acutally caused by
permission issue. Since the sub web folder is point to a remote shared
folder. And the ASP.NET will use the default processAcount (machine\aspnet
for iis 5 or networkservice for iis6) to do the folder monitor. However,
since the default process account is a local account, it'll failed on logon
remote mahcine no matter the remote folder has been grant "Full Control"
to everyone or not. That's the problem you encountered. (You can find the
error in the remote machine's eventlog).

Currently, I think you need to specify another Account which can be
authenticated on the remote machine as the local's ASPNET worker process
account, you can use either a
Domain User Account or an mapping local account( which exists on both the
local and remote machine and have same username and passworld).

Then, use the following means to speicify it as the ASP.NET's process
account:
1. In machine.config, find the <processModel > element and change the
"userName" and "password"
attributes to the certain account's value

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

In addition, do make sure that the account has powerful permssions on the
local machine( to run asp.net application, you can make it in the
administrators group) and has sufficient control to the remote folder on
the remote machine. and the following tech article is also helpful:

#How To Create a Custom Account to Run ASP.NET
http://msdn.microsoft.com/library/de...us/secmod/html
/secmod15.asp
Thanks.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx


Nov 18 '05 #4
Hi Steve,

That did the trick. Thanks for helping :-)

cheers
K

"Steven Cheng[MSFT]" wrote:
Hi kimpton,

Thanks for your response. Regarding on your further description, I've done
some tests on my side, and found that the problem is acutally caused by
permission issue. Since the sub web folder is point to a remote shared
folder. And the ASP.NET will use the default processAcount (machine\aspnet
for iis 5 or networkservice for iis6) to do the folder monitor. However,
since the default process account is a local account, it'll failed on logon
remote mahcine no matter the remote folder has been grant "Full Control"
to everyone or not. That's the problem you encountered. (You can find the
error in the remote machine's eventlog).

Currently, I think you need to specify another Account which can be
authenticated on the remote machine as the local's ASPNET worker process
account, you can use either a
Domain User Account or an mapping local account( which exists on both the
local and remote machine and have same username and passworld).

Then, use the following means to speicify it as the ASP.NET's process
account:
1. In machine.config, find the <processModel > element and change the
"userName" and "password"
attributes to the certain account's value

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

In addition, do make sure that the account has powerful permssions on the
local machine( to run asp.net application, you can make it in the
administrators group) and has sufficient control to the remote folder on
the remote machine. and the following tech article is also helpful:

#How To Create a Custom Account to Run ASP.NET
http://msdn.microsoft.com/library/de...us/secmod/html
/secmod15.asp
Thanks.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx


Nov 18 '05 #5

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

Similar topics

0
2095
by: Jeff Reed | last post by:
I am experiencing the the problem outlined the below. Unfortunately, I am using WinXP and I not sure if I can apply the solution due to lack of security control Any feed back would be apreciated http://support.microsoft.com/default.aspx?scid=kb;EN-US;31795 FIX: "Failed to Start Monitoring Directory Changes" Error Message When You Browse to an ASP.NET Pag View products that this article applies to This article was previously...
1
6135
by: Edward Yang | last post by:
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\wwwroot\myapp\default.aspx'. Failed to start monitoring file changes. Description: An unhandled exception occurred...
7
13407
by: Mark | last post by:
Hello, I have researched and tried every thing I have found on the web, in groups and MS KB articles. Here is what I have. I have a Windows 2000 Domain Controller all service packs and every thing else from windows update. ..NET 1.0 and 1.1 installed on the server. Actually .NET was installed before the server was made a DC.
1
2086
by: Robin | last post by:
When trying to run a vb asp.net page on a test server the following error is displayed. I have seen article Q317955, but the folder names are less than 9 long and the file permissions have been set. The third option is only for Windows 2003. The pages where developed on a Windows 2003 server and have been transferred
2
4142
by: Greg Allen | last post by:
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
9
3216
by: Tim D | last post by:
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.
5
483
by: Joe | last post by:
I'm getting the following error when trying to call a page on a secure server. I'm not doing any impersonations or file access of any kind. The page is using PayPal and I'm wondering if PayPal has something to do with this. We had to register an api certificate on the server using WinHttpCertCfg. Maybe this is doing something? Access denied to 'D:\WWWRoot\sslserver'. Failed to start monitoring file changes. Description: An unhandled...
1
4352
by: amit.vasu | last post by:
Hi I have created a web serivces using .net framework 2.0. When I try to execute the web service I get the following error. Failed to start monitoring changes to 'e:\Default Web Site' because access is denied. I am running windows 2003 sp1. Network Service account do have full permission on application folder and sub folder.
0
3463
by: =?Utf-8?B?UmFmYWVsIEFtb3JpbQ==?= | last post by:
Hello Guys, I have an application that is installed on three different data centers across the world (exactly the same environment and installed files for each one). I got some errors from just one data center and this is not making sense to me: Exception: System.Web.HttpException: Failed to create page of type
0
9522
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,...
1
10165
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9044
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
7543
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
5437
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...
0
5565
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3728
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2921
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.