Resolves an error in *.resx resource file access in ASP.

Source: Internet
Author: User

Personal notes

Problem recurrence

in ASP. NET MVC, there is a problem with the use of resource files, for example:

Immediately after I entered the view interface, enter the following code:

1 <a href="javascript:void (0); "> Test @kuaileyouni.web.appresource.space</a>

The above compilation will not be an error, but the operation will be an error: " compiler Errors message: CS0122:" KuaiLeYouNi.Web.AppResource "is not accessible because it is protected level limit "

Problem solving

The original resource file default access modifier is internal, we just need to change it to public OK!

------ If you think this article is helpful to you, don't forget to click on the lower right corner of the recommendation, thank you! ------

Resolves an error in *.resx resource file access in ASP.

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.