Access is denied. (Exception from HRESULT: 0x80070005(E_ACCESSDENIED)) – Parallels PLESK 9.3 - Solved

By mahingupta on Oct 26 2010 | 0 Comments

Godaddy Virtual Dedicated machine, Windows server 2008, PLESK 9.3, New Web application setup and I was greeted with below YSOD.

 

2010-10-27_1403

Problem :

As the error message said, Access is denied. It means that the user account under which asp.net is running is trying to access resource without having sufficient permissions on that resource.

Solution :

1. Login to your Virtual Machine using Remote Desktop ( mstsc )

2. Go to “C:\plesk\etc\DiskSecurity” folder

3. Edit disksecurity.xml file. Add following entry at the end ( before </Entries> )

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

4. Save.

And you are done… Enjoy…

Post info

Tags:
Categories: Asp.Net , C# , goDaddy , TechTips

Asp.Net Set Medium trust in local

By mahingupta on Aug 01 2010 | 0 Comments

My almost all  web sites are hosted on goDaddy shared medium trust hosting.It is always painful to get things running on medium trust environment after got it running on your development environment.

But now you can set medium trust environment on your local machine and check every functionality there only.

You need to add following configuration in your web.config

<system.web>
    <trust level="Medium" />
</system.web>
Now you can test your application as if it is running under Medium Trust environment.
 

Post info

Tags:
Categories: Asp.Net , TechTips , goDaddy