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. General Programming
  3. C / C++ / MFC
  4. OLE DB problem in VC++ COM when used with ASP

OLE DB problem in VC++ COM when used with ASP

Scheduled Pinned Locked Moved C / C++ / MFC
helpcomc++databasequestion
3 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
    Mahesh Perumal
    wrote on last edited by
    #1

    I have written a COM component in VC++ that connects to a ODBC (.mdb file) through OLE DB. When i try to use it in .asp page i get error (0x80004005 - unspecified error). The same component (same asp file) works fine with PWS under Win98. When i run the same with IIS5 in Win2000 and WinXP i get error. I couldn't find out what might be the problem. Can you help me out? Thanx in advance Mahesh

    S 1 Reply Last reply
    0
    • M Mahesh Perumal

      I have written a COM component in VC++ that connects to a ODBC (.mdb file) through OLE DB. When i try to use it in .asp page i get error (0x80004005 - unspecified error). The same component (same asp file) works fine with PWS under Win98. When i run the same with IIS5 in Win2000 and WinXP i get error. I couldn't find out what might be the problem. Can you help me out? Thanx in advance Mahesh

      S Offline
      S Offline
      Stephane Rodriguez
      wrote on last edited by
      #2

      That's because the connection string is different. The ADO/OLEDB section from the ASP documentation shows exactly what it expects. PWS is a stripped down version of IIS and works with less stringent constraints. That's why it works with PWS.

      M 1 Reply Last reply
      0
      • S Stephane Rodriguez

        That's because the connection string is different. The ADO/OLEDB section from the ASP documentation shows exactly what it expects. PWS is a stripped down version of IIS and works with less stringent constraints. That's why it works with PWS.

        M Offline
        M Offline
        Mahesh Perumal
        wrote on last edited by
        #3

        Thanx Rod, Actually i created the OLE DB connection using the 'Data Consumer ATL'. I look at it and try to fix it. Thanx once again. Mahesh

        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