473,472 Members | 1,728 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

.Net 2.0, UserControl in a subfolder won't compile

Hi all,

Have an issue in VS 2005 that I can't seem to sort out. I have a couple of
UserContols that I would like to have in a Controls subfolder off my
application root. The problem is that when the files are in that folder, I
get several build errors, all along the lines of "The type or namespace name
'____' does not exist in the namespace '__________.___________' (are you
missing an assembly reference?", anywhere that I try to load them.

The thing is, if I have the files located under my application root, they
build and work just fine. Any suggestions? Thanks!
May 15 '06 #1
1 1195
by default, the only code that will get compiled is what is in the root and
in the app_code subdirectory. If you want to add other files, you need to
add to web.config:

<compilation>
<codeSubDirectories>
<add directoryName="CSFolderForUserControls" />
</cod....
</compil...

Hope that helps

Peter Kellner
http://peterkellner.net

"instruo" <in*****@discussions.microsoft.com> wrote in message
news:EA**********************************@microsof t.com...
Hi all,

Have an issue in VS 2005 that I can't seem to sort out. I have a couple
of
UserContols that I would like to have in a Controls subfolder off my
application root. The problem is that when the files are in that folder,
I
get several build errors, all along the lines of "The type or namespace
name
'____' does not exist in the namespace '__________.___________' (are you
missing an assembly reference?", anywhere that I try to load them.

The thing is, if I have the files located under my application root, they
build and work just fine. Any suggestions? Thanks!

May 15 '06 #2

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

Similar topics

4
by: babylon | last post by:
I created a class which inherits from UserControl.. However, I can't find it in the "My User Controls" tab in designer view... How can i add it back myself? thx...
4
by: james | last post by:
I cannot get my UserControl's browsable properties to show up in the designer properties panel. I have then public virtual bool TestProp { {get return testProp; } set { testProp = value; } } ...
2
by: Lars Pedersen | last post by:
Hi. I had a similar question here some days ago.....anyway.. When in VS.Net adding a webform in a subfolder of the project, and adding a UserControl to this webform. Then after setting this...
2
by: Lau Lei Cheong | last post by:
Hello, I'm writing a usercontrol that contains a property named "disabled". It is set to false by default but there is also another button in the usercontrol that'll set it to true. On the...
2
by: Sascha | last post by:
Hi there, I searched carefully through the web before finally deciding to post this message, because I could not find a solution for my problem. Hopefully someone will have a hint or explanation...
1
by: Will Gillen | last post by:
I know this has probably been asked before, but I can't seem to find a solid answer in any of the archives. First, before my question, please forgive my limited knowledge of the event lifecycle...
5
by: seal | last post by:
OK, I am trying to fire an event from a usercontrol that tells the page when a checkbox was clicked. Here is the control and when I try and wire up the page to catch the event, my event is not...
3
by: Jeff | last post by:
Hey ASP.NET 2.0 This the ObjectDataSource in my UserControl, <asp:ObjectDataSource ID="odsMessage" runat="server" SelectMethod="ExecuteMessage" TypeName="AH.MyNetwork.BLL.Network.Message">...
22
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Hi I have an Assembly that has various usercontrols that all implemnet an Interface The Interface public interface ISettings { bool SaveSettings();
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
1
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,...
1
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...
0
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...
0
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...

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.