Error message:
Imitating petshop 4, my program is like this, there are
Project class
======================================
Dbutility ------ sqlhelper. CS (mainly basic SQL operations)
Model --------- userinfo. CS (basic user information)
Idal ----------- iuser. CS (user operations-add new users, modify user information, etc. --- interfaces)
Dal ------------ user. CS (implementing iuser operations)
Dalfactory --- dataaccess. CS (factory class creates user class)
Ibll ------------ iuser. CS (similar to iuser in idal)
Bll ------------- user. CS (similar to the user in Dal, more specific functions)
Bllfactory ---- dataaccess. CS (the factory class is similar to dataaccess in dalfactory)
An error occurs when bllfactory. dataaccess. createuser is used to create a class in default. aspx. CS:
========================================================== ======================================
Description:An unhandled exception occurred during the execution of the current Web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception details:System. Io. filenotfoundexception: cocould not load file or assembly 'hdy. bll' or one of its Dependencies. The system cannot find the specified file.
Source error:
Source file:D: \ East China Emy website \ hdy \ bllfactory \ dataaccess. CSLine:22
Assembly load trace:The following information can be helpful to determine why the Assembly 'hdy. bll' cocould not be loaded.
Stack trace:
Version Information:Microsoft. NET Framework Version: 2.0.50727.42; ASP. NET version: 2.0.50727.210
========================================================== ======================================
The problem is:
The hdy. Dal reflected in the dataaccess class in dalfactory should be changed to Dal because the DLL in Web/bin is dal. dll.
The same is true in bllfactory.