COM Interop hassles
-
I would really appreciate some clues as to what this error message means... System.Runtime.InteropServices.COMException: Resource with identifier 'VERSION' not found I am totaly stuck on this one. Nothing on MSDN, here, asp.net forums, ... I've looking all over! Only 2 results on google too!! JBoy
-
I would really appreciate some clues as to what this error message means... System.Runtime.InteropServices.COMException: Resource with identifier 'VERSION' not found I am totaly stuck on this one. Nothing on MSDN, here, asp.net forums, ... I've looking all over! Only 2 results on google too!! JBoy
JBoy wrote: System.Runtime.InteropServices.COMException: Resource with identifier 'VERSION' not found Please could you post the code that generates this error, maybe then we can help :)
Paul Watson
Bluegrass
Cape Town, South AfricaRay Cassick wrote: Well I am not female, not gay and I am not Paul Watson
-
JBoy wrote: System.Runtime.InteropServices.COMException: Resource with identifier 'VERSION' not found Please could you post the code that generates this error, maybe then we can help :)
Paul Watson
Bluegrass
Cape Town, South AfricaRay Cassick wrote: Well I am not female, not gay and I am not Paul Watson
... Dim oAppSettings As BLL.AppSettings = New BLL.AppSettings() Dim adorsAppSettings As ADODB.Recordset adorsAppSettings = oAppSettings.List daMyDataAdpater.Fill(dsAppSettings, adorsAppSettings, "ADODB.RecordSet") dgSiteSettings.DataSource = dsAppSettings.Tables(1).DefaultView dgSiteSettings.DataBind() ... The exception is thrown on the 3rd line where the first method of the object is called. Like I said, the call never makes it to the underlying COM object, so it's not an exception occuring in that code. /shrug JBoy
-
... Dim oAppSettings As BLL.AppSettings = New BLL.AppSettings() Dim adorsAppSettings As ADODB.Recordset adorsAppSettings = oAppSettings.List daMyDataAdpater.Fill(dsAppSettings, adorsAppSettings, "ADODB.RecordSet") dgSiteSettings.DataSource = dsAppSettings.Tables(1).DefaultView dgSiteSettings.DataBind() ... The exception is thrown on the 3rd line where the first method of the object is called. Like I said, the call never makes it to the underlying COM object, so it's not an exception occuring in that code. /shrug JBoy
JBoy wrote: adorsAppSettings = oAppSettings.List Hmm well I must admit not knowing what the problem is. I do have a very "way out" idea though: Somewhere either in that COM object (the constructor bit) or whatever is wrapping it, VERSION is being passed to the wrong parameter. e.g. If there are two parametres
version
andcomname
, the comname parametre is being passed the version by mistake. As I said, just an idea (and I am no COM expert.) Also from what I know the exception could be in the COM object because it is being constructed with theDim adorsAppSettings As ADODB.Recordset
line, right? Anyway sorry for not being able to help, seems a weird one.Paul Watson
Bluegrass
Cape Town, South AfricaRay Cassick wrote: Well I am not female, not gay and I am not Paul Watson
-
JBoy wrote: adorsAppSettings = oAppSettings.List Hmm well I must admit not knowing what the problem is. I do have a very "way out" idea though: Somewhere either in that COM object (the constructor bit) or whatever is wrapping it, VERSION is being passed to the wrong parameter. e.g. If there are two parametres
version
andcomname
, the comname parametre is being passed the version by mistake. As I said, just an idea (and I am no COM expert.) Also from what I know the exception could be in the COM object because it is being constructed with theDim adorsAppSettings As ADODB.Recordset
line, right? Anyway sorry for not being able to help, seems a weird one.Paul Watson
Bluegrass
Cape Town, South AfricaRay Cassick wrote: Well I am not female, not gay and I am not Paul Watson
' This line declares variable, creates an instance of the object. Dim oAppSettings As BLL.AppSettings = New BLL.AppSettings() ' This line declares variable, no object created. Dim adorsAppSettings As ADODB.Recordset ' This line calls staatic method of already instantiated object. adorsAppSettings = oAppSettings.List ************************************ a) The COM object "BLL.AppSettings" is written in VB, there is no CreateInstance method for that object. b) VERSION is nothing to do with any of my code, so it must be part of the Interop method call mapping procedure. SOMEONE in the world MUST have had this same error for sure... Just a shame it's not documented anywhere. Thanks for looking into it though. JBoy