C # cs0016-Solution

Source: Internet
Author: User

Description:An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0016: cocould not write to output file 'C: \ WINDOWS \ Microsoft. NET \ Framework \ v2.0.50727 \ Temporary ASP. NET Files \ myapp \ xxxxx \ App_GlobalResources.xxxxxxx.dll '-'Access is denied.'

I had not done anything in the Global Resources file, but it was showing the error related to this. After doing some research, I found out that, it can be an issue with Antivirus software.

I stopped the Antivirus software and tried, but still the problem was there. Later I found it was related to permission issue in the Temp folder. To resolve this.

Go
% Systemroot %, normally C: \ WINDOWS or C: \ WINNT
Right-click the Temporary folder (mine is C: \ WINDOWS \ Temp) and select Sharing and Security.
Select the Sharing tab and Make sure that the folder is shared.
Select the Security tab and take a look at the list of "Group or user names :"
Network service shoshould be in the list. If it is not, click Add and type Network Service in the text box.
Make sure network service have Full Control in the Permissions list. Click OK.

Restart IIS (Run iisreset) If your machine doesn't have network service or network services Group, look for "IIS_IUSRS" and apply same permissions.

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.