Solved

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

Posted on 2012-04-06
2
1,005 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
  • 2
2 Comments
 
LVL 18

Expert Comment

by:Jerry Miller
Comment Utility
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
Comment Utility
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

772 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now