Solved

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

Posted on 2012-04-06
2
1,055 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

Is Your DevOps Pipeline Leaking?

Is your CI/CD pipeline a hodge-podge of randomly connected tools? You’ve likely got a tool to fix one problem & then a different tool to fix another, resulting in a cluster of tools with overlapping functionality. Learn how to optimize your pipeline with Gartner's recommendations

Question has a verified solution.

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

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

751 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