Ask a Question related to ASP.NET General, Design and Development.
-
Stephen Miller #1
Re: One solution containing multiple projects and multiple hosts
Can anyone help?
[email]jsausten@hotmail.com[/email] (Stephen Miller) wrote in message news:<cdb404de.0306160645.428f9f46@posting.google. com>...> I am trying to build one common application for several clients, that
> shares a common code base. This is proving very difficult to set up.
>
> Say for example, I have two (or more) hosts, site1.mydomain.com &
> site2.mydomain.com. Code is divided into presentation, business and
> data layers. Only the presentation layer is unique amongst the two
> hosts.
>
> I have created the following directory structure:
>
> \Common\DataLayer.vb
> \Common\Login.aspx.vb
> \Host1\Login.aspx
> \Host2\Login.aspx
>
> The two Login.aspx pages differ only in layout (colours etc) and call
> the same methods in the class Login.aspx.vp. At the top of both
> login.aspx pages I have added:
>
> <%@ Page Language="vb" AutoEventWireup="false"
> Codebehind="Login.aspx.vb" Inherits="Common.Login"%>
>
> In Solution Explorer my solution looks like:
>
> Solution 'myProject' (3 Projects)
> [+] Common
> |- DataLayer.vb
> \- Login.aspx.vb
> [+] Host1
> \- Login.aspx
> [+] Host2
> \- Login.aspx
>
> My Login.aspx.vb file looks like:
>
> Imports System.Web
> Imports System.Web.Security
> Imports System.DateTime
> Imports Common.DataLayer
>
> Public Class Login
> Inherits System.Web.UI.Page
> ...
> End Class
>
> Now, my problem is that when I select 'view code' for either of the
> two login.aspx files I get the following error message:
>
> "The class file for this Web Form was not loaded. Close the view,
> correct any errors, then reopen the Web Form"
>
> How can I configure Visual Studio so that two projects can share the
> same code-behind class for an aspx page?
>
> - StephenStephen Miller Guest
-
forms authentication over multiple projects
Here is my scenario: I have an aspx page that is essentially a table of contents to a bunch of other aspx pages. The table of contents page... -
Forms authentication with multiple projects in a solution
I am attempting to break my application into multiple projects using the technique described in KB #307467. I successfully execute my 'Main'... -
Same /etc/hosts File On Multiple Systems
Hi, I have about 6 or so *nix systems. Some are Linux and some are Solaris. Can I define _one_ /etc/hosts file and put it on every system? Or,... -
Multiple IP Addresses For Same Host in /etc/hosts
Hi, Can you have more than one address associated with a single host name in the /etc/hosts file? Will it cause any problems? For example, if... -
Unable to debug multiple ASP.NET projects simultaneously
Hi, I was trying to debug two different ASP.NET projects at the same time. But I was only able to debug one of them and I got the following error...



Reply With Quote

