I have spent days trying to solve this problem on my own but not been successful now I am at the verge of going crazy.
Basically, I have created a Project in Visual Studio 2012 on my Windows 7 machine. In this project, I have a Business Logic Layer , Data Access Layer , Business Objects Layer(which are all class libraries) and a Website I called UI. The BLL, BOL and DAL dll's are referenced in the the UI and these DLL files are in the bin folder of UI. The UI was set as startup project and the website runs without issue when I view it using F5 in Visual studio.
The problem is when I copy the Website content into wwwroot folder of my inetpub. I get the following error shown below :
Server Error in '/' Application.
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0246: The type or namespace name 'BLL' could not be found (are you missing a using directive or an assembly reference?)
Line 5: using System.Web.UI;
Line 6: using System.Web.UI.WebControls;
Line 7: using BLL;
Line 8: using BOL;
Line 9: using DAL;
Source File: c:\inetpub\wwwroot\WorkshopWebApp\Default.aspx.cs Line: 7
Please note that all the dll files are in the bin folder of the Website folder located in the inetpub wwwroot folder and I also have IIS running on myy local machine. I have tried so many things to solve this but without success. Any help will be highly appreciated.