Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. COM Interop hassles

COM Interop hassles

Scheduled Pinned Locked Moved ASP.NET
comhelpcsharpasp-netannouncement
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MrGlover
    wrote on last edited by
    #1

    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

    P 1 Reply Last reply
    0
    • M MrGlover

      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

      P Offline
      P Offline
      Paul Watson
      wrote on last edited by
      #2

      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 Africa

      Ray Cassick wrote: Well I am not female, not gay and I am not Paul Watson

      M 1 Reply Last reply
      0
      • P 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 Africa

        Ray Cassick wrote: Well I am not female, not gay and I am not Paul Watson

        M Offline
        M Offline
        MrGlover
        wrote on last edited by
        #3

        ... 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

        P 1 Reply Last reply
        0
        • M MrGlover

          ... 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

          P Offline
          P Offline
          Paul Watson
          wrote on last edited by
          #4

          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 and comname, 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 the Dim adorsAppSettings As ADODB.Recordset line, right? Anyway sorry for not being able to help, seems a weird one.

          Paul Watson
          Bluegrass
          Cape Town, South Africa

          Ray Cassick wrote: Well I am not female, not gay and I am not Paul Watson

          M 1 Reply Last reply
          0
          • P 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 and comname, 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 the Dim adorsAppSettings As ADODB.Recordset line, right? Anyway sorry for not being able to help, seems a weird one.

            Paul Watson
            Bluegrass
            Cape Town, South Africa

            Ray Cassick wrote: Well I am not female, not gay and I am not Paul Watson

            M Offline
            M Offline
            MrGlover
            wrote on last edited by
            #5

            ' 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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups