Solution to "cocould not load file or assembly or one of its dependencies. access is denied due

Source: Internet
Author: User

This is one of the most irritating build errors a developer might see, especially while setting up an existing. NET application on a fresh machine.

I have found one solution that works always. Go"C: \ windows \ Microsoft. NET \ framework \ v2.0.50727 \ temporary ASP. NET files"(Modify the Framework Version, root directory etc according to your environment .) now, right-click and open up the security tabs for this folder. grant "Full Control" to the 'users' group. (modify will also work, thought I didn't try it out) However, it this is a security problem for your environment to grant full control to all users in Users Group, another solution cocould be to put the concerned assemblies lo GAC which I avoided as it was not logical to put the assemblies into GAC in my scenario.

If the above solution doesn't help, you can try another way: adding your impersonate user to the iis_wpg on the local machine shocould solve the problem. it grants your impersonate user the correct permissions on the server file system without having to modify the folder security and open up control to large numbers of users.

 

Hope this helps.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.