473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

App_Code folder classes not found

Hi,

I have a similar problem to this thread (http://www.thescripts.com/forum/thread507360.html).

I have a class App_Code/SiteContent.cs that works just fine in Visual Studio, but does not work on the production site.

Compiler Error Message: CS0103: The name 'SiteContent' does not exist in the current context
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832

The class seems to be found just fine from .aspx files in my web root directory, but I've created a subdirectory called /admin to hold aspx files for administration functions. The .aspx files in the /admin directory cannot find the App_Code/SiteContent.cs file from the production server, but can find it just fine from VisualStudio.

Thanks,
Dave
Sep 29 '07 #1
1 3040
Okay, this seems to be some sort of IIS bug. I just turned off IIS application run permissions on the main directory and then turned it back on again and it all worked.
Oct 6 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: abunet | last post by:
I have a very large web project converted from ASP 1.1 to 2.0 I my App_Code folder have two subfolders: Orders and Customers (in the real environment I have more folders) inside each folder there...
4
by: Filip De Backer | last post by:
Hi everyone, I've created 5 (different) asp.net 2.0 applications. Each applicationfolder contains an App_Code folder. Is it possible to set the App_code folder in de root of the website?...
2
by: walter | last post by:
Hi, when I add a new page in my asp.net 2 project and put some controls there, everything works fine until I move the code behind into App_Code folder.--When I compile , it tells me that control...
9
by: rn5a | last post by:
Is putting a VB class file in the special directory named App_Code the same as relocating the VB class file from the App_Code directory to another directory & then using the VBC tool, compiling the...
1
by: matt.merchant | last post by:
All, When publishing a site with the "Used Fixed Naming and Single Page Assemblies" option checked, only one of my two App_Code folders are compiled into .DLL's. The original code (DotNetNuke...
0
by: TonyBushell | last post by:
Hi All, I need some help with the following: I am building a CMS to bolt onto an existing website. The CMS will be uploaded to the existing site off a folder say CMS_ADMIN/ for example. ...
4
by: =?Utf-8?B?YWNjZXNzaW5nIEMjIGNsYXNzZXMgaW4gQXBwX0Nv | last post by:
I've a simple aspx page whose code behind instantiates a simple class which exists in a .cs file in the App_Code folder of my project. Runs fine in the IDE. When I copy the app to my IIS server I...
1
by: =?Utf-8?B?cmxt?= | last post by:
Steps to reproduce: 1. Create new web app. I am in v3.5 and vs2008 2. Create App_Code folder 3. Add Class A with public static int B; 4. Go to default.aspx.cs Page_Load and the compiler says that...
5
by: Web Search Store | last post by:
Hello, I made a web page using visual studio. I also made a public class in the app_code folder called 'allvars' In the main web page durning the page startup, I can refer to public shared...
1
Frinavale
by: Frinavale | last post by:
I created a custom class that inherits from the CheckBoxList. I placed the the code for this in the App_Code folder because it's used through out my web application. I ran into a namespace...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.