• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Simple aspx documents dont work !

E

emsol

Guest
Simple .aspx document brings up the following error...

Access denied to 'C:\Inetpub\vhosts\domain.com\domain.com'. Failed to start monitoring file changes.
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: Access denied to 'C:\Inetpub\vhosts\domain.com\domain.com'. Failed to start monitoring file changes.

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 (0x80070005): Access denied to 'C:\Inetpub\vhosts\domain.com\domain.com'. 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.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.Configuration.HttpConfigurationSystem.GetCacheDependencies(Hashtable cachedeps, DateTime utcStart) +151
System.Web.Configuration.HttpConfigurationSystem.ComposeConfig(String reqPath, IHttpMapPath configmap) +697
System.Web.HttpContext.GetCompleteConfigRecord(String reqpath, IHttpMapPath configmap) +434
System.Web.HttpContext.GetCompleteConfig() +49
System.Web.HttpContext.GetConfig(String name) +195
System.Web.CustomErrors.GetSettings(HttpContext context, Boolean canThrow) +20
System.Web.HttpResponse.ReportRuntimeError(Exception e, Boolean canThrow) +39
System.Web.HttpRuntime.FinishRequest(HttpWorkerRequest wr, HttpContext context, Exception e) +486

Desperate for some help here.
 
Cant run ANY asp.net on the server at all.

Get the following message in a browser. The message in the above post appears in a browser on the server itself

Server Error in '/' Application.
--------------------------------------------------------------------------------

Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
 
I'll share the answer...

By default the ASPNET account doesnt have permissions on the c:\inetpub\vhosts\username\blah\blah folders and it needs to in order to run scripts in the users sites.

Gave it read and execute - seems to be fine now.
 
was this just the aspnet user for the server? we are running into the same problem and getting this error:

server error in '/' application
 
Access denied to 'C:\Inetpub\vhosts\domain.com\domain.com' just denotes that there is no domain.com folder inside %plesk_vhosts%/vhosts/domain.com folder.
Change script path to C:\Inetpub\vhosts\domain.com\httpdocs and it should work.:)
 
Newbie Help

Hello Friends,

I'm a newbie....pls how do I give the permission to asp.net so that asp pages can work on my server....

Thanks
ebabjohn
 
So you are saying that if we want to allow ASP.NET 2 on a domain we need to manaully edit the permissions each time? WTF? We have over 600+ accounts on two PLESK windows server, how can we go abount adjusting every one of them manually? Isn't PLESK support to setup the permissions for these accounts?
 
Back
Top