Ask a Question related to ASP.NET General, Design and Development.
-
gh0st54 #1
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
gh0st54 Guest
-
virtual directory
Our corporate website uses coldfusion. We have developed a web time entry system that also uses coldfusion. I am trying to setup the new timentry... -
Configure a virtual directory?
Hi, I want to install a simple web service using IIS, how can I create a directory under Inetpub/wwwroot/ and configure it into a web application... -
Have to Be A Virtual Directory?
I have a project named NET. It has .aspx and one .asmx files. This NET is a virtual directory and application in IIS: - All .aspx and one .asmx and... -
Template inheritance (DW MX)
No, not directly at least. I was faced with the same problem and ended up having to write some Perl scripts in order to generate the new templates.... -
Page inheritance
I have created an aspx page called Page1. The class associated with the page in code behind is abstract. Now I want to create another aspx page...



Reply With Quote

