HighTechTalks DotNet Forums  

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

Dotnet FAQs microsoft.public.dotnet.faqs


Discuss VS2005 - UI can't load or find the DAL - What's up with that? in the Dotnet FAQs forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
dbuchanan
 
Posts: n/a

Default VS2005 - UI can't load or find the DAL - What's up with that? - 12-08-2005 , 08:17 PM






Hello,

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:
0x80070002)"
//



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
Else
'Save to Quote table
InsertIntoQuote()
'Save to Version table
'UpdateDatasourceTable(_dataSet1.tbl010Quote)
insertIntoVersion()
'Update the database
'UpdateDatasourceTable(_dataSet1.tbl020Version)
_bAlreadyRun = True
End If
Me.Close()
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,
dbuchanan


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.