D
dbuchanan
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
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