Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > VS2005 - UI can't load or find the DAL - What's up with that?

Thread Tools

VS2005 - UI can't load or find the DAL - What's up with that?

Posts: n/a

Why can't my application recognize or find the data layer. These are
the design-time and runtime errors I receive.

"One or more errors encountered while loading the designer. The errors
are listed below. Some errors can be fixed by rebuilding your project,
while others may require code changes.

The system cannot find the file specified. (Exception from HRESULT:

In the Error list it appears this way
"Could not load file or assembly 'QmsDataLayer.dll' or one of its
dependencies. The system cannot find the file specified."

The dll is there. I have been using it all night. I made no changes to
it. Now I get this error.

I've rebuilt, closed, reopened. It is still located where it should be.

However, If follow the following three steps the form and code will run
again... for a while.

1.) I comment out this button code...
Protected Overrides Sub btnOK_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles btnOK.Click
If _bAlreadyRun Then
'do nothing
'This is not needed because we close the form before that
can happen
'Save to Quote table
'Save to Version table
'Update the database
_bAlreadyRun = True
End If
End Sub

2.) I close all the code and forms

3.) I rebuild, close the IDE, and reopen.

Then it will run a few more times... then I will get an error again.

What is going on?

Any thoughts or suggestions?

Thank you,

Reply With Quote
BN81 BN81 is offline
Junior Member
Join Date: Nov 2006
Posts: 1
I'm also having the same problem that I tried to integrate DAL (data access layer) with BLL (business logic layer) by referencing the DAL assembly in the web.config of the BLL project. However, I got this warning when I build the solution...

Could not load file or assembly 'DAL, version=, Culture= neutral, PublicKeyToken= c6f948189215cf81' or one of its dependencies. The system can not find the file specified.

Could U pls assist us in solving this problem asap??

Thanks a lot...
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best Method to return data from a DAL C Downey ASP .Net 4 12-03-2003 08:43 PM
DAL rakesh ASP .Net 1 08-22-2003 08:10 PM
Where to place the DAL assembly Tony ASP .Net 1 08-22-2003 12:59 PM
Re: Data Access Layer (DAL): Stored Proceedurs vs. Dynamic SQL Gavin Joyce ASP .Net 0 07-05-2003 01:55 PM