G
Guest
I'm sure I'm missing something obvious, but in my web application I have
added a couple of C# files containing classes I want to use in
Default.aspx.cs (default.aspx's C# code beside file).
Whenever I reference a class contained in my C# files I get the error, "The
type or namespece name 'XXXX' could not be found (are you missing a using
directive or an assembly reference?)" From experimenting with namespaces and
using statements, it looks like it is an assembly reference problem. Is the
compiler putting each compiled file in a separate assembly?
How do I get Default.aspx.cs to know where to find the other C# classes? It
looks like the other classes are getting compiled (I added them using the Add
Existing Item command). They appear in the Class View window, and the source
files appear in the Solution Explorer window. Putting them in the GAC is not
an option because this application will be deployed in a shared hosting
environment where we do not have access to the GAC.
Sorry if this is a newbie question. This is my first web application
project, though I have done several Windows Forms applications. Thanks for
any thoughts you might have.
-Vance
added a couple of C# files containing classes I want to use in
Default.aspx.cs (default.aspx's C# code beside file).
Whenever I reference a class contained in my C# files I get the error, "The
type or namespece name 'XXXX' could not be found (are you missing a using
directive or an assembly reference?)" From experimenting with namespaces and
using statements, it looks like it is an assembly reference problem. Is the
compiler putting each compiled file in a separate assembly?
How do I get Default.aspx.cs to know where to find the other C# classes? It
looks like the other classes are getting compiled (I added them using the Add
Existing Item command). They appear in the Class View window, and the source
files appear in the Solution Explorer window. Putting them in the GAC is not
an option because this application will be deployed in a shared hosting
environment where we do not have access to the GAC.
Sorry if this is a newbie question. This is my first web application
project, though I have done several Windows Forms applications. Thanks for
any thoughts you might have.
-Vance