I have an ASP.NET web application that has 3 projects to handle 3 different application levels (UI, BL and Data Access). When I publish the user interface project, the solution will create the Precompiled directory and the files will be available there. In this folder there will be a BIN folder that contains the required DLLs (link DLL and DLL of the business-level project and DLL of the DataAccessLayer project). This is working fine. But I want to use the same BL and DataAcess level to run multiple user interfaces (websites). I want the site to be called website, WebSiteB, MyWEbSite1, ShyjusWeb, etc. I want to create a virtual directory for each of them. SO I created a website and under that I created virtual directories for the above sites. I put index.asp (from a user interface project,which I had in my solution) in a folder that maps to one virtual directory and when I try to access, I get an error, as shown below.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load the assembly 'App_Web_lls0_qzf'. Make sure that it is compiled before accessing the page.
Source Error:
Line 1: <%@ page language="C#" autoeventwireup="true" inherits="index, App_Web_lls0_qzf" %>
Line 2: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Line 3: <html xmlns="http://www.w3.org/1999/xhtml">
Source File: /websiteA/index.aspx Line: 1
, DLL BIN. ? IIS 6.0, .
→ , , UI, , (WebSiteA). WebSiteA inde.aspx, , index.aspx, .
( CSS ). Bin index.aspx, . BIN . BIN, ROOT