Cocould not load file or assembly 'hdy. bll' or one of its Dependencies. The system cannot find the specified file.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.