This is a permissions problem, as explained here:
http://support.microsoft.com/default.aspx?kbid=317955
The ASPNet user account is local to the webserver, and can't be assigned
rights to the remote machine.
Options:
a) change the user account in the processModel section of machine.config to
use a domain account
b) use impersonation, and put a domain account in the web.config file (not
really recommended, as you have a Windows user/password in clear text in
your website.
c) use impersonation *but don't specify a username/password in web.config* -
ASP.Net will fall back to the configured anonymous account for IIS. You need
to change the IIS anonymous user account to a domain account.
This problem has nothing to do with ASP.Net v1 -vs- v1.1 - it's entirely a
permissions problem. The ASPNet user account doens't have permissions to the
remote resource.
Cheers
Ken
"Colin" <tfchin.TakeThisOut@p2ionline.com> wrote in message
news:09b901c36e21$8fe3e840$a501280a@phx.gbl...
: Hi there,
:
: I have set up a website, and this website is pointing to a
: Network storage drive, i.e on another server. Under this
: website, i have setup a virtual directory that points to a
: local folder that cantians the site for that virtual
: directory.
:
: But when i start browsing my virtual directory, i got this
: error "Failed to start monitoring changes
: to '\\Nas\WebData\Websites\P2ionline_new'". I have gone
: through the KB in Microsoft, and what they ask us to do is
: to install .Net Framework 1.1, so I have also done that.
:
: I do notice that I didn't get the 'Access Denied' error
: though, just the 'failed to start monitoring....'.
:
: Do I need to install .Net framework at my Network storage
: drive? Because that is just really a storage for all my
: physical .Net projects and DLLs.
:
: And the most important thing is, how to make this website
: work?
: /******************************************************/
: Please help as this is a very urgent matter as this
: website needs to be live soon.
:
: In case anyone intersted in the stack trace, here it is
: [HttpException (0x8007052e): Failed to start monitoring
: changes to '\\Nas\WebData\Websites\P2ionline_new'.]
: System.Web.FileChangesMonitor.FindDirectoryMonitor
: (String dir, Boolean addIfNotFound, Boolean throwOnError)
: +527
: System.Web.FileChangesMonitor.StartMonitoringPath
: (String alias, FileChangeEventHandler callback) +477
: 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.Configuration.HttpConfigurationSystem.GetCacheDe
: pendencies(Hashtable cachedeps, DateTime utcStart) +151
:
: System.Web.Configuration.HttpConfigurationSystem.ComposeCon
: fig(String reqPath, IHttpMapPath configmap) +697
: System.Web.HttpContext.GetCompleteConfigRecord(String
: reqpath, IHttpMapPath configmap) +434
: System.Web.HttpContext.GetCompleteConfig() +48
: System.Web.HttpContext.GetConfig(String name) +195
: System.Web.CustomErrors.GetSettings(HttpContext
: context, Boolean canThrow) +20
: System.Web.HttpResponse.ReportRuntimeError(Exception e,
: Boolean canThrow) +40
: System.Web.HttpRuntime.FinishRequest(HttpWorkerRequest
: wr, HttpContext context, Exception e) +480
:
: /******************************************************/
:
:
: regards,
: Colin