473,385 Members | 1,185 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,385 software developers and data experts.

Class defined in relative folder not showing up

Hi everyone,

My web application runs in / however, my administration resides in /admin
folder. Inside my /admin I have a Login.aspx which is used to authenticate
users who use the administration section. I right clicked the /admin in
Visual Studio and Added a new Class (AuthenticateUser). However, in my
Login.aspx I can not use use that class. It gives me the following error
message.

c:\...\admin\Login.aspx.cs(29): The type or namespace name
'AuthenticateUser' could not be found (are you missing a using directive or
an assembly reference?)
Folder structure
/
.../admin -> files Login.aspx and Authenticate.cs

Thank you
Maziar A.

Nov 18 '05 #1
1 1433
This might be overly obvious, but the only thing that comes to my mind is
that your namespaces don't match...
Authenticate.cs will have a namespace of "PROJECT_NAME.Admin" , if you
copied and pasted login.aspx from the root to the admin folder, it's
namespace will just be PROJECT_NAME

Karl

"Maziar Aflatoun" <ma***@rogers.com> wrote in message
news:%T******************@news04.bloor.is.net.cabl e.rogers.com...
Hi everyone,

My web application runs in / however, my administration resides in /admin
folder. Inside my /admin I have a Login.aspx which is used to authenticate users who use the administration section. I right clicked the /admin in
Visual Studio and Added a new Class (AuthenticateUser). However, in my
Login.aspx I can not use use that class. It gives me the following error
message.

c:\...\admin\Login.aspx.cs(29): The type or namespace name
'AuthenticateUser' could not be found (are you missing a using directive or an assembly reference?)
Folder structure
/
../admin -> files Login.aspx and Authenticate.cs

Thank you
Maziar A.

Nov 18 '05 #2

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

Similar topics

2
by: Jerry | last post by:
My "main" class is getting a bit long...Is it possble to split a class definition into several files and then import the pieces to get the whole definition? Jerry
2
by: Thomas Miller | last post by:
Hello, I have built a c# class library (I will call it "Assembly1"), and built an installer that installs it. It is working well. I created a new asp.net application, right-clicked on references...
5
by: jason | last post by:
Can anyone help me find a solution to quickly working out relative paths to a folder in the root of my server... Although it easy when you go - say - two levels down: .../includes it...
15
by: Nick K. | last post by:
I recently began maintenance work on a production web server that is located in the root directory of a web server. I moved this into a sub web on my local web server in order to do work on it. I...
15
by: Steven T. Hatton | last post by:
The following may strike many of you as just plain silly, but it represents the kind of delelima I find myself in when trying to make a design decision. This really is a toy project written for...
3
by: Andrew | last post by:
Hi all, I am still learning ASP.Net, and .Net in general. Though I feel I have much of the "basics" down, I am running into some gray areas in more advanced topics. My question is how I make...
18
by: Nak | last post by:
Hi there, Does anyone know what path the AssemblyKeyFile attribute is relative to? For example I currently have mine set to <Assembly: AssemblyKeyFile("..\NicksKey.snk")> Sometimes this...
12
by: Gordon | last post by:
I want to provide a set of static functions in a superclass that work with class constants defined in a decendant of that class. Unfortunately I've run into a snag with this idea. Example: ...
4
chathura86
by: chathura86 | last post by:
i have created some php classes in deferent folders which requires each other i have given relative paths relative to those files i used require_once() but when i use those class in a file...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.