hi all
I?m developing a web application using VS.Net 2005 language VB. In my application I?m creating an instance of a dll file created in visual fox pro 9.0. In the beginning everything was working properly. After a while each time I open a page, create a document, quit the page and reopen it I get the error:
Creating an instance of the COM component with CLSID {} from the IClassFactory failed due to the following error: 80004005.
I was using this code each time I need to save a document:
(in the main page)
Dim DocDll As New Docvbdll.Doc_VbDll ->this is not the Fox Dll
?
Public Sub save_doc() Dim docNum As String
docNum = DocDll1.document_save(Doc_num)
??? (in the dll I used)Public Function document_save (ByVal As Doc_num Integer) as string
??
Dim dllFox As New common_Fox.Doc_COMMON_Fox
??
So I moved this "Dim dllFox As New common_Fox.Doc_COMMON_Fox" from the "document_save" to the loading of the web page. Now in the main page I have the following:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not IsPostBack Then Dim dllFox As New common_Fox.Doc_COMMON_Fox ->this is the Fox Dll ?? End If
But this did not solve my problem
So plz can someone tell me what?s making the error and how to solve it?
Regards,
Simon Sam.