Calling a MFC ActiveX Control from a ASP.net web service.

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

  1. #1

    Default Calling a MFC ActiveX Control from a ASP.net web service.

    I am looking for some information about a problem I have run into. I have a
    third party MFC ActiveX Control and I would like to wrap it with a ASP.net
    web service. I add it to my project using "Add Reference" which creates the
    interop dll. I can instantiate the ActiveX Control but when I call a method
    in the control I get the following exception:

    System.Runtime.InteropServices.COMException at
    System.RuntimeType.ForwardCallToInvokeMember(...)
    Catastrophic failure

    Any ideas why this doesn't work?

    TIA,
    dmdaniels
    dmdaniels Guest

  2. Similar Questions and Discussions

    1. Q: ActivePerl - calling an ActiveX object
      I have a 3rd-party ActiveX object (as a DLL) that I am trying to call from Perl (ActivePerl 5.8) The function that I am calling takes three 'in'...
    2. User Control and ActiveX control
      Now I am hosting a user control(an assembly in .dll) in IE. I want to know the difference between this kind of control and ActiveX control. thank...
    3. Calling Acrobat file from WScript.Shell ActiveX object
      WinXP, Acrobat 6 When I type the name of a PDF file at the Windows command prompt, the file opens properly. Then I create the following JavaScript...
    4. problems calling ActiveX control inside VB OCX from ASP
      I seem to have run into two documented bugs whose workarounds are incompatible. What I have is an OCX written in VB 6 that has a few classes in it....
    5. UnauthorizedAccessException loading ActiveX control from Web Service
      I have a question on invoking processes from within a Web service. I have an ActiveX control that actually runs as a process (Bartender.exe). ...
  3. #2

    Default Re: Calling a MFC ActiveX Control from a ASP.net web service.

    I've seen this happen repeatedly with the PDF Control, when the control is
    used improperly.

    Consult the doc, and compare your ASP.NET code to working code that uses,
    for example, VB6 to do the same thing. Are you sure you are using a
    parallel usage model ?

    ps: wrong group.
    try posting to microsoft.public.dotnet.interop

    -Dino


    "dmdaniels" <dmdaniels@discussions.microsoft.com> wrote in message
    news:205BCD83-59F3-4BA8-AB0E-49A31EA67322@microsoft.com...
    >I am looking for some information about a problem I have run into. I have a
    > third party MFC ActiveX Control and I would like to wrap it with a ASP.net
    > web service. I add it to my project using "Add Reference" which creates
    > the
    > interop dll. I can instantiate the ActiveX Control but when I call a
    > method
    > in the control I get the following exception:
    >
    > System.Runtime.InteropServices.COMException at
    > System.RuntimeType.ForwardCallToInvokeMember(...)
    > Catastrophic failure
    >
    > Any ideas why this doesn't work?
    >
    > TIA,
    > dmdaniels

    Dino Chiesa [Microsoft] 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