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.
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" />
And you are done… Enjoy…
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>Now you can test your application as if it is running under Medium Trust environment.
<trust level="Medium" />