(Important)QueryInterface for interface Interop.SQLXMLBULKLOADLib.ISQLXMLBulkLoad failed

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Von Shean

    #1

    (Important)QueryInterface for interface Interop.SQLXMLBULKLOADLib.ISQLXMLBulkLoad failed

    I am trying to user Bulk loader component in asp.net.
    The code runs perfectly fine in a test harness but gives the following error
    when used in a strong named dll called from asp.net using c#.
    The error is
    QueryInterface for interface Interop.SQLXMLB ULKLOADLib.ISQL XMLBulkLoad
    failed

    If anyone has any idea how do we use bulkloader in asp.net, then please
    share.........

    Regards,


  • Natty Gur

    #2
    Re: (Important)Quer yInterface for interface Interop.SQLXMLB ULKLOADLib.ISQL XMLBulkLoad failed

    Hi,

    Use tlbimp[1] to create .Net wrapper class. You need to use sn.exe to
    create strong name key file and to use it with the /keyfile:filenam e
    tlbimp option.


    [1] -
    http://msdn.microsoft.com/library/de.../en-us/cptools
    /html/cpgrftypelibrar yimportertlbimp exe.asp

    Natty Gur, CTO
    Dao2Com Ltd.
    28th Baruch Hirsch st. Bnei-Brak
    Israel , 51114

    Phone Numbers:
    Office: +972-(0)3-5786668
    Fax: +972-(0)3-5703475
    Mobile: +972-(0)58-888377

    Know the overall picture


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!

    Comment

    • Von Shean

      #3
      Re: (Important)Quer yInterface for interface Interop.SQLXMLB ULKLOADLib.ISQL XMLBulkLoad failed

      I have already done these steps. but there is no change in the error
      message. It still comes and says the same thing.

      I think it has something to do with the security of aspnet user

      But then i tried this:
      I have created the key file and used with tlbimp.
      Built my project with a strong name key file.
      registeded my dll in com+ by regsvcs to run under an admin account.
      But still have the same result.

      Regards,

      "Natty Gur" <natty@dao2com. com> wrote in message
      news:OJUIhFCTDH A.2120@TK2MSFTN GP10.phx.gbl...[color=blue]
      > Hi,
      >
      > Use tlbimp[1] to create .Net wrapper class. You need to use sn.exe to
      > create strong name key file and to use it with the /keyfile:filenam e
      > tlbimp option.
      >
      >
      > [1] -
      > http://msdn.microsoft.com/library/de.../en-us/cptools
      > /html/cpgrftypelibrar yimportertlbimp exe.asp
      >
      > Natty Gur, CTO
      > Dao2Com Ltd.
      > 28th Baruch Hirsch st. Bnei-Brak
      > Israel , 51114
      >
      > Phone Numbers:
      > Office: +972-(0)3-5786668
      > Fax: +972-(0)3-5703475
      > Mobile: +972-(0)58-888377
      >
      > Know the overall picture
      >
      >
      > *** Sent via Developersdex http://www.developersdex.com ***
      > Don't just participate in USENET...get rewarded for it![/color]


      Comment

      • Von Shean

        #4
        Re: (Important)Quer yInterface for interface Interop.SQLXMLB ULKLOADLib.ISQL XMLBulkLoad failed

        tried it .....didnt work.......:(

        "Natty Gur" <natty@dao2com. com> wrote in message
        news:uZKBW1DTDH A.2020@TK2MSFTN GP11.phx.gbl...[color=blue]
        > HI,
        >
        > try to add Imperonate=true with user name and password that got
        > permission to the web.config
        >
        > Natty Gur, CTO
        > Dao2Com Ltd.
        > 28th Baruch Hirsch st. Bnei-Brak
        > Israel , 51114
        >
        > Phone Numbers:
        > Office: +972-(0)3-5786668
        > Fax: +972-(0)3-5703475
        > Mobile: +972-(0)58-888377
        >
        > Know the overall picture
        >
        >
        > *** Sent via Developersdex http://www.developersdex.com ***
        > Don't just participate in USENET...get rewarded for it![/color]


        Comment

        Working...