473,804 Members | 3,473 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Not all folders in App_Code are compiling

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 portal) included
the one folder which is compiling, the folder I added is not being
compiled.

Is there a .config file that I have to modify for the compiler to
recognize the second folder.

Here is the output from my compilation:

------ Build started: Project: http://localhost/DNN4/, Configuration:
Debug .NET ------
Pre-compiling Web Site

Building directory '/DNN4/App_GlobalResou rces/'.
Building directory '/DNN4/App_Code/Reports/'.
Building directory '/DNN4/App_Code/'.
Pre-compilation Complete
------ Publish started: Project: http://localhost/DNN4/, Configuration:
Debug .NET ------
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped
==========
========== Publish: 1 succeeded, 0 failed, 0 skipped ==========

The /DNN4/App_Code/ folder should also include a /BugButcherTest folder
and associated DLL, but does not.

Thoughts / comments appreciated.

Thanks -

Matt

Dec 5 '06 #1
1 3728
Found the solution...

Each folder (and subfolder) in App_Code must be entered in the
<compilation><c odeSubDirectori essection in the web.config file.

Matt

ma***********@g mail.com wrote:
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 portal) included
the one folder which is compiling, the folder I added is not being
compiled.

Is there a .config file that I have to modify for the compiler to
recognize the second folder.

Here is the output from my compilation:

------ Build started: Project: http://localhost/DNN4/, Configuration:
Debug .NET ------
Pre-compiling Web Site

Building directory '/DNN4/App_GlobalResou rces/'.
Building directory '/DNN4/App_Code/Reports/'.
Building directory '/DNN4/App_Code/'.
Pre-compilation Complete
------ Publish started: Project: http://localhost/DNN4/, Configuration:
Debug .NET ------
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped
==========
========== Publish: 1 succeeded, 0 failed, 0 skipped ==========

The /DNN4/App_Code/ folder should also include a /BugButcherTest folder
and associated DLL, but does not.

Thoughts / comments appreciated.

Thanks -

Matt
Dec 8 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1655
by: Bob Hanson | last post by:
Hello All, I noticed in the ASP.NET beta 2 that we have more special folders. Can I get some clarification regarding these folders? I am just making sure of the intent. Thanks in advance, Bob Hanson
2
1062
by: Johnny Meredith | last post by:
Warning: Tenderfoot I'm playing around with ASP.Net 2.0 b2. The web app I've created has a default, login, recovery, etc. pages in the root and two folders accessible to authenticated users only. I have a simple class that needs to be accessible to the two subfolders mentioned above. I placed this class in App_Code and declared it Friend/Internal. However, I can't access it in the two subfolders unless it's declared Public. I...
11
29895
by: Steve Franks | last post by:
I'm using VS.NET 2005 Beta 2. I have a helper C# class I wrote that I placed in my /App_Code directory. Everything runs fine locally. However when I use the "Copy Web" function to upload the site to the production server, I get the following error when trying to run the page on production: "System.Web.HttpException: The directory '/App_Code' is not allowed because the application is precompiled." Anyone know this works fine locally but...
2
3277
by: Alan Silver | last post by:
Hello, I have a custom control that is inside a DLL. Until now, I have had the source file for this DLL in a development folder on my machine, and I've been compiling it using csc on the command line. I reference the control in the DLL on a master page by adding the line to the top of the file... <%@ Register TagPrefix="Fred" Namespace="FredECommerceControls" Assembly="ECommControls" %>
2
14592
by: pradeep_TP | last post by:
Hello, I am trying to use APP_CODE folder for all my class files under VS 2005. After adding APP_CODE in the solution explorer, I added a new web page by right clicking project and selecting add new item. I expected the code behind file (Default.aspx.cs) to automatically go under APP_CODE folder, but it didnt. I tried to drag and drop the code behind file into the APP_CODE folder. I also changed the page directive to the following: ...
9
2857
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 VB class file into a DLL & putting the DLL in the bin directory? Though while running an ASP.NET app using either of the 2 approaches doesn't make any difference, Visual Web Developer 2005 Express Edition behaves erratically sometimes if the...
7
3990
by: Rusty Hill | last post by:
I have a base class that contains code for the profile object that works fine when the code is not in a file within the App_Code folder. Once I put the code into the App_Code folder it will no longer compiling telling me: "The name 'Profile' does not exist in the current context" What am I missing here (besides a clue)?
5
3011
by: Randy | last post by:
I've converted a VS 2003 project to VS 2005. I have one utility class that it put in the APP_CODE directory. When I try and compile I'm getting this error... Error 1 The type or namespace name 'WelcomeToPFP' could not be found (are you missing a using directive or an assembly reference?) C:\Inetpub\wwwroot\PFPApp\App_Code\Utils.cs 19 9 WelcomeToPFP is a class defined in the root directory of the solution. My question is...I'm drawing a...
1
1143
by: alqui | last post by:
Hi, I'm actually trying to resolve a simple problem. I'm trying to build my Web site. The structure of the Web site looks like that : /Element /Element/App_Code /Element/Admin /Element/Modules /UserControls There are aspx pages in every folders except /UserControls where all my ascx
0
9705
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10568
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10323
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10074
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7613
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6847
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5516
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3813
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.