473,412 Members | 2,294 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,412 software developers and data experts.

Page inheritance (template) doesn't work in virtual directory

An update on my original message

seens like virtual directory doesn't like page inheritance
I have taken my form in my Secure folder and made a duplicate in the
main site, it works fine from the main site but in the virtual
directory I get that error message : 'CS0234: The type or namespace
name 'PageBase' does not exist in the
class or namespace '<namespace>' (are you missing an assembly
reference?)'

I have put my using statement referencing my site namespace
how can i be missing a reference if i'm working in it ?
if i add the project to itself i get
: ... defined in muliple places

could it be a setting in IIS ?

can anyone help I really need to get this going

Thanks

Original message :

Hi,

I get this message
CS0234: The type or namespace name 'PageBase' does not exist in the
class or namespace '<namespace>' (are you missing an assembly
reference?)

here is what I'm doing and trying to do.

I have created a PageBase class in my <namespace> (being my solution
namespace - is also my website name ) that is the template for my aspx
page in my site. Works great.

except for my secure folder wich is in <namespace>.secure

the pages in this folder can't access the <namespace>.PageBase classs.

when I declare my secure page class :

public class LogIn : <namespace>.PageBase

everything compiles fine , but when I call the page in a browser I get
the error

I tried to add using <namespace> but no changes even tried adding a
reference to the dll but I get another error saying declare in
multiple places(this is normal since i'm compiling twice the same
thing.

What should I do to get rid of this error and get my website up and
secured.

I hope i'm providing enough info and not to disorganized

thanks
Nov 17 '05 #1
0 1375

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

Similar topics

1
by: KK | last post by:
Windows Forms Inheritance, Incomplete? I was playing around with Windows Forms and found out this Forms Inheritance feature. The moment I saw that, I felt this can be used effectively if the...
2
by: KK | last post by:
** Posting it here cause after couple of days no body responded.** I was playing around with Windows Forms and found out this Forms Inheritance feature. The moment I saw that, I felt this can...
7
by: Jürgen Kaminski | last post by:
Hello all, I got some legacy code where a template implements a non-templated interface. These classes are really HUGE, but it boils down to the following structure: class BaseClass { public:...
5
by: Jeff Greenberg | last post by:
Not an experienced c++ programmer here and I've gotten myself a bit stuck. I'm trying to implement a class lib and I've run into a sticky problem that I can't solve. I'd appreciate any help that I...
6
by: Jules | last post by:
I have the following code which isn't working as I expect it to: --- #include <iostream> using namespace std; class mystring { public: mystring (const char * src) { /* ... */ }
14
by: Steve Jorgensen | last post by:
Recently, I tried and did a poor job explaining an idea I've had for handling a particular case of implementation inheritance that would be easy and obvious in a fully OOP language, but is not at...
4
by: NT | last post by:
Hi there! I am puzzled by what I think must be a subtlety of C++ when list-initializing member variables in derived classes... Here's what I mean... class A { // warning l337proggy alert!...
3
by: Pini | last post by:
Hi all,In asp.net 1.x i creates a basepage that extends System.Web.UI.Page class. I created this file in a web appplcaition project and then refernced it from another projects. All the pages in...
12
by: Massimo | last post by:
Hi to all, I'm facing a problem in a particularly complex inheritance hierarchy, and I'd like to know what the standard says about it and if my compiler is correct in what it does. I have two...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
0
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...

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.