Calling a COM (exe) file from Webservice

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

  1. #1

    Default Calling a COM (exe) file from Webservice

    Hello,

    I have a programme made in VB6 that I need to reference from a web service.
    I tried it from a .NET windows application and it worked perfectly. When I
    try it from a web service, though, it does not work at all. It does not give
    any error, only a "the page cannot be reached" fault in the web service
    (when using post).

    I can call VB6 COM components from the .NET web service provided they are
    dll-files, but not the one that is an exe-file.

    As it works perfectly well from a windows application, it seems it must be a
    security issue. Where would I change it so that I can access files of this
    type. I have the project from my own computer and log in as an
    administrator, but to no avail.

    I hope the description of the problem is clear enough, and I hope somebody
    knows an answer that can help me.

    Thank you in advance,
    Jason


    Jason Wager Guest

  2. Similar Questions and Discussions

    1. Calling a webservice from a webservice
      Well, I dont really want to call a webservice, but the class that I need is in a webservice and I dont see the need for serialization if I am...
    2. Timeout when calling a webservice from C#
      I get a timeout when calling a webservice from C#. Works fine in browser. I am not doing anything out of the box. The same works on other machines...
    3. Calling COM+ in a WebService
      Can I get a sample on how to call a com+ componant in a webservice, please? This is what I have so far and I am getting an error Run-time exception...
    4. Calling a webservice from Excel
      Where can I find sample codes for both excel 2002 and 2003 for retrieving data (SQL Data) from a web service. Thank you H
    5. Webservice calling a webservice.....Error
      Hi Ihave a strange problem .....or?? On one machine 1 i have a webservice A calling an other webservice B on a other machine 2 . the B service are...
  3. #2

    Default Re: Calling a COM (exe) file from Webservice

    I found out, when doing it as a web application (instead of web service),
    that I got an error message:

    Security Exception
    Description: The application attempted to perform an operation not allowed
    by the security policy. To grant this application the required permission
    please contact your system administrator or change the application's trust
    level in the configuration file.

    Exception Details: System.Security.SecurityException: Permission denied


    The problem here is that I have no idea of what to write in the config file
    here.

    Any answers or pointers to where I can find answers are very wellcome.

    Sincerely,
    Jason


    Jason Wager Guest

  4. #3

    Default Solution found

    For others who might have same problem or otherwise interested.

    Problem:
    I could not create an ActiveX object on the ASP .NET page unless using
    Impersonate in the web.config. When I wanted to create a COM object that in
    itself created an ActiveX object, that was not enough.

    The solution to this problem was to give aspnet_wp the rights to the ActiveX
    component through the dcomcfng.exe.

    This might pose some security issues. Does anybody have any thoughts on
    this?

    Sincerly,
    Jason



    Jason Wager 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