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

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default (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.SQLXMLBULKLOADLib.ISQLXMLBulkLoad
    failed

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

    Regards,


    Von Shean Guest

  2. Similar Questions and Discussions

    1. QueryInterface for interface FDFACXLib.IFdfApp failed
      Dear all, When I run the Sample project of FDF_Porject in the FDF Toolkits, has the run time exception of 'QueryInterface for interface...
    2. InvalidCastException: QueryInterface for interface
      Hi, when modifying my customserver control, I did not look at it for more then 2 weeks, I received an error: InvalidCastException:...
    3. ASP Security causes QueryInterface InvalidCastException?
      All, I have a vb6.0 com+ proxy component which works fine from a vb.Net console app. If the same code is placed into a ASP.Net web service I get...
    4. Does Interface Size Matter? Is my interface too complex?
      Hi all, Does Interface Size Matter? Is my interface too complex? I volunteered to design a couple of web pages, but since we don't have a...
    5. QueryInterface, with the object Excel.Application
      Hello, With Asp.Net, I try to generat a document with an Excel object. This is the begin of my procedure: Dim xapExcel As Excel.Application...
  3. #2

    Default Re: (Important)QueryInterface for interface Interop.SQLXMLBULKLOADLib.ISQLXMLBulkLoad 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:filename
    tlbimp option.


    [1] -
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools[/url]
    /html/cpgrftypelibraryimportertlbimpexe.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 [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Natty Gur Guest

  4. #3

    Default Re: (Important)QueryInterface for interface Interop.SQLXMLBULKLOADLib.ISQLXMLBulkLoad 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:OJUIhFCTDHA.2120@TK2MSFTNGP10.phx.gbl...
    > 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:filename
    > tlbimp option.
    >
    >
    > [1] -
    > [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools[/url]
    > /html/cpgrftypelibraryimportertlbimpexe.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 [url]http://www.developersdex.com[/url] ***
    > Don't just participate in USENET...get rewarded for it!

    Von Shean Guest

  5. #4

    Default Re: (Important)QueryInterface for interface Interop.SQLXMLBULKLOADLib.ISQLXMLBulkLoad failed

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

    "Natty Gur" <natty@dao2com.com> wrote in message
    news:uZKBW1DTDHA.2020@TK2MSFTNGP11.phx.gbl...
    > 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 [url]http://www.developersdex.com[/url] ***
    > Don't just participate in USENET...get rewarded for it!

    Von Shean Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139