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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. COMException--Why?

COMException--Why?

Scheduled Pinned Locked Moved Database
databasehelpquestion
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
    mysorian
    wrote on last edited by
    #1

    While using MemoryStream in the context of SQLXML3.0 sxcmd.commandText="Name of stored proc on database" sxcmd.RootTag = "FullName" Line 36: Dim MemSt As MemoryStream Line 37: MemSt = sxcmd.ExecuteStream()---->Problem on this line Line 38: Response.Write(MemSt.Length) Line 39: Dim strRdr As New StreamReader(MemSt) System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80040E21.

    T 1 Reply Last reply
    0
    • M mysorian

      While using MemoryStream in the context of SQLXML3.0 sxcmd.commandText="Name of stored proc on database" sxcmd.RootTag = "FullName" Line 36: Dim MemSt As MemoryStream Line 37: MemSt = sxcmd.ExecuteStream()---->Problem on this line Line 38: Response.Write(MemSt.Length) Line 39: Dim strRdr As New StreamReader(MemSt) System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80040E21.

      T Offline
      T Offline
      tojamismis
      wrote on last edited by
      #2

      If you know your SQL Syntax is good, then you should check permissions. You might consider trying to run it with SA priviledges on the database to see if it works. If so, you know where your problem is. Also if you are using XML AUTO in your query try XML RAW and see if it goes away. Otherwise I'm not sure. But that's where I'd start trying to troubleshoot. Torin Blair
      'In the immortal words of Socrates - "I drank what?".'

      M 1 Reply Last reply
      0
      • T tojamismis

        If you know your SQL Syntax is good, then you should check permissions. You might consider trying to run it with SA priviledges on the database to see if it works. If so, you know where your problem is. Also if you are using XML AUTO in your query try XML RAW and see if it goes away. Otherwise I'm not sure. But that's where I'd start trying to troubleshoot. Torin Blair
        'In the immortal words of Socrates - "I drank what?".'

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

        It is not a permissions problem.

        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