Solved

.Net variable is not declared. It may be not accessible due to its protection level

Posted on 2012-04-06
2
1,070 Views
Last Modified: 2012-06-27
I have a masterpage.master.vb line of code that calls the App_Code/Variables.vb code directory and code.

Error Message Received: DisplayedMessages is not declared. It may be inaccessible due to its protection level.

Masterpage.master.vb line of code:
(DisplayedMessages) is the variable that is declared as a public in the App_Code/Variables

Catch ex As Exception
            DisplayedMessages = "The Permissions Access was denied:" & ex.Message.ToString
            ErrorMessage = ex.ToString
            LogErrors(ScreenName, ErrorMessage, Session("UserID").ToString)


AppCode/Variables.vb

Public Module Variables
    Public DisplayedMessages As String
 End Module
AppCodeError.jpg
0
Comment
Question by:jeffreyjseaman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 18

Expert Comment

by:Jerry Miller
ID: 37818142
Is your folder named AppCode or App_Code? AppCode won't work and App_Code should.
0
 
LVL 18

Accepted Solution

by:
Jerry Miller earned 500 total points
ID: 37818151
If your foler is named correctly, you may want to check out this link.

http://vishaljoshi.blogspot.com/2009/07/appcode-folder-doesnt-work-with-web.html
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question