• 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

Error: ASP.NET on PLesk 9.3

S

SergioL

Guest
I install windows 2008 server r2 x64 (Spanish), and plesk 9.3 (With Spanish Lenguage pack), with sql server 2008 and Framework 2

When i try access to aplication ASP.NET the sistem show me a error,
By Example i trying to access to WEBADMIN (Sql web manager)

and don't know how solve, you can help me?

Every else works perfect!

Error de servidor en la aplicación '/mssql'.
--------------------------------------------------------------------------------

Acceso denegado. (Excepción de HRESULT: 0x80070005 (E_ACCESSDENIED))
Descripción: Excepción no controlada al ejecutar la solicitud Web actual. Revise el seguimiento de la pila para obtener más información acerca del error y dónde se originó en el código.

Detalles de la excepción: System.UnauthorizedAccessException: Acceso denegado. (Excepción de HRESULT: 0x80070005 (E_ACCESSDENIED))

ASP.NET no está autorizado para obtener acceso al recurso solicitado. Considere la posibilidad de conceder derechos de acceso al recurso para la identidad de solicitud de ASP.NET. Si la aplicación no se va a suplantar, ASP.NET utiliza una identidad de proceso base (normalmente {MACHINE}\ASPNET en IIS 5 o Network Service en IIS 6). Si la aplicación se va a suplantar mediante <identity impersonate="true"/>, la identidad será el usuario anónimo (generalmente IUSR_MACHINENAME) o el usuario solicitado autenticado.

Para conceder a ASP.NET acceso a un archivo, desde el Explorador, haga clic con el botón secundario del mouse en el archivo, elija "Propiedades" y seleccione la ficha Seguridad. Haga clic en "Agregar" para agregar el usuario o grupo adecuado. Resalte la cuenta de ASP.NET y active las casillas según el acceso deseado.

Error de código fuente:

Se ha generado una excepción no controlada durante la ejecución de la solicitud Web actual. La información sobre el origen y la ubicación de la excepción pueden identificarse utilizando la excepción del seguimiento de la pila siguiente.

Seguimiento de la pila:


[UnauthorizedAccessException: Acceso denegado. (Excepción de HRESULT: 0x80070005 (E_ACCESSDENIED))]

[FileLoadException: No se puede cargar el archivo o ensamblado 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ni una de sus dependencias. Acceso denegado.]
System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142
System.Reflection.Assembly.Load(String assemblyString) +28
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46

[ConfigurationErrorsException: No se puede cargar el archivo o ensamblado 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ni una de sus dependencias. Acceso denegado.]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +613
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +57
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +54
System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +232
System.Web.Compilation.BuildManager.CompileGlobalAsax() +51
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +337

[HttpException (0x80004005): No se puede cargar el archivo o ensamblado 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ni una de sus dependencias. Acceso denegado.]
System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +58
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +512
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +729

[HttpException (0x80004005): No se puede cargar el archivo o ensamblado 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ni una de sus dependencias. Acceso denegado.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8897659
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +333


--------------------------------------------------------------------------------
Información de versión: Versión de Microsoft .NET Framework:2.0.50727.4927; Versión ASP.NET:2.0.50727.4927
 
same problem here but this topic is not really user friendly is there a step by step fix for this that paralels support can make us follow ?
 
I had to add the following to my disksecurity.xml

<Entry AccounType="1" Account="Psacln" Path="C:\Windows\assembly" AceFlags="FilesOnly" AccessMask="Read" EntryFlags="0x0" />

Then run "%plesk_bin%\applysecurity" --apply
 
I had to add the following to my disksecurity.xml

<Entry AccounType="1" Account="Psacln" Path="C:\Windows\assembly" AceFlags="FilesOnly" AccessMask="Read" EntryFlags="0x0" />

Then run "%plesk_bin%\applysecurity" --apply



I can confirm that this solution works.
 
With the same error and configuration, I confirm that this solution works great.

Thanks
 
THANK YOU THANK YOU THANK YOU!!!!

I have just spent the last 3 hours ripping my hair out trying to figure this out and the solution you have here has worked flawlessly, thank you!

Cheers,

IceaTronic
 
The problem you all resolved in March is still haunting me today in November. I am unable to find disksecurity.xml and am not sure what permissions I need to add to which assembly folder.

Considering the time elapsed, Plesk should have stepwise instructions on this problem. Please help!
 
I hope that I'm not too late to help. I ran into the same problem with .NET pages and Plesk.

The disksecurity solution didn't work for me. BTW, on my W2K8 R2 box, the disksecurity.xml file is located at C:\PROGRAM FILES (X86)\PARALLELS\PLESK\ETC\DISKSECURITY\DISKSECURITY.XML

Here's the step-by-step that worked for me:

* Click START
* Click ACCESSORIES
* Right-click COMMAND PROMPT, then click RUN AS ADMINISTRATOR
* Highlight and copy this command:
cacls C:\Windows\assembly\GAC_MSIL /E /R psacln /T /C
* Paste the command into the command prompt and hit ENTER (then watch lots of PROCESSED messages)
* Highlight and copy this command:
cacls C:\Windows\assembly\GAC_MSIL /E /R psaadm /T /C
* Paste the command into the command prompt and hit ENTER (then watch lots of PROCESSED messages)
* Close the command prompt

I rebooted after this, and my .NET ASPX pages finally worked.

Hope this helps!
 
Great !!!!!!

5 days wasted, trying to find a solution...
Thanks a lot !! It's working !!
 
This thread saved me from a nasty situation last night after upgrading from 9.3 to 9.5.5, but I had to apply both fixes from jamesfsafdsaf and jpark61567, or I got permission errors when running the cacls command. So the process that resolved everything for me was to add:

<Entry AccounType="1" Account="Psacln" Path="C:\Windows\assembly" AceFlags="FilesOnly" AccessMask="Read" EntryFlags="0x0" />

to C:\Program Files (x86)\Parallels\Plesk\etc\DiskSecurity\DiskSecurity.xml (it doesn't seem to matter where you add it) and run:

"%plesk_bin%\applysecurity" --apply

as per jamesfsafdsaf's post. Then I followed jpark61567's post and the sites started working again.

When I was telling a workmate about this he laughed and asked why didn't I just use the "Plesk Reconfigurator"? It looks like it might have worked. Did anyone try this?

Cheers,


Andrew
 
Last edited:
Back
Top