M
milop
Hello.
Using VS2005, I have a solution with two web application projects.
The web server for each project is IIS. I've created two virtual
directories, project1 and project2, under the same web site.
A page in project 2 (index.aspx) references images and the like in project 1
by using #include virtual="/project1/images/logo.gif". This works fine. It
also includes a reference to an .aspx page (header.aspx). The include looks
like this: : #include virtual="/project1/header.aspx".
I've run into a problem when referencing the .aspx page. The error is:
Parser Error: Could not load type "project1.header". The page directive in
project2's page looks like this: <%@ Page Language="vb"
AutoEventWireup="false" CodeBehind="header.aspx.vb"
Inherits="project1.header" %>
If I reference header.aspx directly (http://localhost/project1/header.aspx)
everything is fine.
So, I'm wondering why #include is not working. It seems as though the
ASP.Net runtime is not compiling project1.
Does anyone have any thoughts?
Thanks in advance,
Mike
Using VS2005, I have a solution with two web application projects.
The web server for each project is IIS. I've created two virtual
directories, project1 and project2, under the same web site.
A page in project 2 (index.aspx) references images and the like in project 1
by using #include virtual="/project1/images/logo.gif". This works fine. It
also includes a reference to an .aspx page (header.aspx). The include looks
like this: : #include virtual="/project1/header.aspx".
I've run into a problem when referencing the .aspx page. The error is:
Parser Error: Could not load type "project1.header". The page directive in
project2's page looks like this: <%@ Page Language="vb"
AutoEventWireup="false" CodeBehind="header.aspx.vb"
Inherits="project1.header" %>
If I reference header.aspx directly (http://localhost/project1/header.aspx)
everything is fine.
So, I'm wondering why #include is not working. It seems as though the
ASP.Net runtime is not compiling project1.
Does anyone have any thoughts?
Thanks in advance,
Mike