G
Guest
I have a page called admin.aspx and it uses admin.aspx.cs as it's code behind
file.
When developing the application on my localhost using VS.NET i reference
thsi file using codebehind="admin.aspx.cs". I now have to upload it to a
production server which i have no control over and has no bin directory (and
i cannot create one) to place the project dll assemblies in to.
I have now changed the file to use the src attricbute so the files are
compiled on the fly using JIT and do not require the dll:
<%@ Page language="c#" src="admin.aspx.cs" AutoEventWireup="false"
Inherits="vox.admin" %>
When the admin.aspx is called it runs but I get the followign error:
Compiler Error Message: CS0234: The type or namespace name 'dataLayerAccess'
does not exist in the class or namespace 'vox' (are you missing an assembly
reference?)
Source Error:
line 27: private vox.dataLayerAccess db;
The problem occurs on my localhost as well if i remove the bin directory.
The problem is that the code behind class cannot find other classes which are
in the same directory. Is there a way of giving the admin.aspx.cs class a
reference to the location of where the other class is vox.dataLayerAccess.cs
as admin.aspx can find admin.aspx.cs using src=acmin.aspx.cs?
Note i have tried to remove the namespace vox and the error still occurs.
Any ideas would be apprciated as i cannot get a bin directory on the web
server i am deploying too.
Thanks
Ian
file.
When developing the application on my localhost using VS.NET i reference
thsi file using codebehind="admin.aspx.cs". I now have to upload it to a
production server which i have no control over and has no bin directory (and
i cannot create one) to place the project dll assemblies in to.
I have now changed the file to use the src attricbute so the files are
compiled on the fly using JIT and do not require the dll:
<%@ Page language="c#" src="admin.aspx.cs" AutoEventWireup="false"
Inherits="vox.admin" %>
When the admin.aspx is called it runs but I get the followign error:
Compiler Error Message: CS0234: The type or namespace name 'dataLayerAccess'
does not exist in the class or namespace 'vox' (are you missing an assembly
reference?)
Source Error:
line 27: private vox.dataLayerAccess db;
The problem occurs on my localhost as well if i remove the bin directory.
The problem is that the code behind class cannot find other classes which are
in the same directory. Is there a way of giving the admin.aspx.cs class a
reference to the location of where the other class is vox.dataLayerAccess.cs
as admin.aspx can find admin.aspx.cs using src=acmin.aspx.cs?
Note i have tried to remove the namespace vox and the error still occurs.
Any ideas would be apprciated as i cannot get a bin directory on the web
server i am deploying too.
Thanks
Ian