Compiler Error Message: CS0122: 'Resources.labels' is inaccessible due to its protection level

Topics: ASP.NET 2.0, Business Logic Layer, Controls, Themes
May 1 at 1:49 PM
Edited May 3 at 3:28 PM
I made full access to App_Data, Custom folder and run this project on Please.
However, I occured compile error on browser.
These files are PostList.ascx and CommentList.ascx.

Getting Error:

Compiler Error Message: CS0122: 'Resources.labels' is inaccessible due to its protection level

Source Error:

(PostList.ascx)
Line 4: <div id="postPaging" style="display: none">
Line 5: <a runat="server" id="hlPrev" style="float:left"><< <%=Resources.labels.previousPosts %></a>
Line 6: <a runat="server" id="hlNext" style="float:right"><%=Resources.labels.nextPosts %> >></a>
Line 7: </div>

(CommentList.ascx)
Line 7: <%=Resources.labels.comments %> (<%=CommentCounter%>)
Line 27: <%=Resources.labels.cancelReply %>
Line 66: <%=Resources.labels.commentsAreClosed %>

What is wrong ? On my computer(local website) everything is working perfectly , But, error on server after publish on real web site (ex : http://www.ourblog.co.kr).

==(Refer to the image) ====================================
Success Local Web Site ▼
Image

Fail Real Web Site ▼
Image
May 3 at 4:34 PM
Can you check if DefaultAppPool has read access to the folder App_GlobalResources on your server?

Simon
May 4 at 1:23 AM
Edited May 4 at 4:04 AM
Dear Simon Bland

Good to see you.
Finally I was solved problem to fail real web site.
You are right.
  1. Move to copy the folder App_GlobalResources in real web server.
    (I don’t know understand. Why can not create the folder App_GlobalResources after web publish in visual studio 2015? Actually, I don’t think its causes.)
  2. Read access to the folder App_GlobalResources.
  3. Success to access real web server.
Thanks a lot.

With kind regards, yours…..
  • Jeong-Su Kim -
P.S. : Success Real Web Site ▼
Image