Access denied to inetpub/wwwroot/web.config

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
vrapp
Posts: 121
Joined: Tue Apr 06, 2004 12:34 pm
Contact:

Access denied to inetpub/wwwroot/web.config

Post by vrapp » Mon Feb 14, 2005 1:07 pm

Hello,

suddenly, when I connect from the server to http://<server>/VaultService/VaultService.asmx

there's error message "unhandled exception" with the following stack:

=====================
HttpException (0x80070005): Access denied to 'f:\inetpub\wwwroot\web.config'. Failed to start monitoring file changes.]
System.Web.DirectoryMonitor.AddFileMonitor(String file) +381
System.Web.DirectoryMonitor.StartMonitoringFile(String file, FileChangeEventHandler callback, String alias) +76
System.Web.FileChangesMonitor.StartMonitoringFile(String alias, FileChangeEventHandler callback) +322
System.Web.Configuration.HttpConfigurationSystem.AddFileDependency(String file) +139
System.Web.Configuration.HttpConfigurationSystem.ComposeConfig(String reqPath, IHttpMapPath configmap) +560
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
=====================

Note that it looks for web.config not in the vault directory, but in the root directory, where it is absent.

Admin and client don't work either.

It was in Vault 3.01; I used this as an opportunity to upgrade the server to 3.02; successful installation with all default responses; but the problem did not go away.
Vadim Rapp

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Mon Feb 14, 2005 1:41 pm

First, a clarification question. Is there a file at f:\inetpub\wwwroot\web.config? Does the user being impersonated by the Vault Service have permission to wwwroot?

vrapp
Posts: 121
Joined: Tue Apr 06, 2004 12:34 pm
Contact:

Post by vrapp » Mon Feb 14, 2005 2:38 pm

jeremy_sg wrote:First, a clarification question. Is there a file at f:\inetpub\wwwroot\web.config?
No. There's web.config in wwwroot\vaultservice, but not in wwwroot.
Does the user being impersonated by the Vault Service have permission to wwwroot?
No. Only to wwwroot\vaultservice.
Vadim Rapp

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Mon Feb 14, 2005 2:40 pm

If you give read access to wwwroot, does it work again?

vrapp
Posts: 121
Joined: Tue Apr 06, 2004 12:34 pm
Contact:

Post by vrapp » Mon Feb 14, 2005 2:44 pm

jeremy_sg wrote:If you give read access to wwwroot, does it work again?
Gave access to wwwroot to <machine>\ASPNET; yes, it does work again. Not that I think that it's security hole, but I think the message was incorrect?
Vadim Rapp

Guest

Re: Access denied to inetpub/wwwroot/web.config

Post by Guest » Fri Jun 24, 2005 2:57 pm

vrapp wrote:Hello,

suddenly, when I connect from the server to http://<server>/VaultService/VaultService.asmx

there's error message "unhandled exception" with the following stack:

=====================
HttpException (0x80070005): Access denied to 'f:\inetpub\wwwroot\web.config'. Failed to start monitoring file changes.]
System.Web.DirectoryMonitor.AddFileMonitor(String file) +381
System.Web.DirectoryMonitor.StartMonitoringFile(String file, FileChangeEventHandler callback, String alias) +76
System.Web.FileChangesMonitor.StartMonitoringFile(String alias, FileChangeEventHandler callback) +322
System.Web.Configuration.HttpConfigurationSystem.AddFileDependency(String file) +139
System.Web.Configuration.HttpConfigurationSystem.ComposeConfig(String reqPath, IHttpMapPath configmap) +560
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
=====================

Note that it looks for web.config not in the vault directory, but in the root directory, where it is absent.

Admin and client don't work either.

It was in Vault 3.01; I used this as an opportunity to upgrade the server to 3.02; successful installation with all default responses; but the problem did not go away.

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Fri Jun 24, 2005 3:11 pm

If you give read permission again, do things work again?

Post Reply