System.Security.SecurityException Error

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

  1. #1

    Default System.Security.SecurityException Error

    Hello All,

    I have built and deployed a .NET web service to a web server
    [DBADMIN-DEV1]. Then, I created a C# console application wrapper
    around this web service to pass the parameters from the command line.
    When I run this console EXE LOCALLY calling the web service on the
    remote machine, it works fine. When I copy the EXE to the remove web
    server where the web service is running and run it LOCALLY on the web
    server, it runs fine. But now I have created a share with a UNC path,
    so I can call the EXE directly on the remote machine from anywhere,
    without having to maintain a local copy of the EXE. So, I try to make
    this call:

    \\dbadmin-dev1\multco_console_remedy\multco_console_remedy.e xe param1
    param2 param3 ...

    BUT I get the following security error:

    ERROR: System.Security.SecurityException: Request for the permission of
    type System.Net.WebPermission, System, Version=1.0.5000.0,
    Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
    at
    System.Security.CodeAccessSecurityEngine.CheckHelp er(PermissionSet
    grantedSet, PermissionSet deniedSet, CodeAccessPermission demand,
    PermissionToken permToken)


    What permissions or changes do I need to make on the web service or
    console app to allow remote execution?

    Michael [Multnomah] Guest

  2. Similar Questions and Discussions

    1. Error: code:Channel.Security.Error string:'Security
      Flex 2.0 beta 1 I created an mxml application with the following tag: <mx:WebService id="ws"...
    2. System.Security.SecurityException: Security error
      Dear All, The problem or error which I am getting while running my web application is as given below: Security Exception Description: The...
    3. System.Security.SecurityException: Request failed
      Hello, I want to run an existing .Net 1.0 project on .Net 1.1. The exception description is as follows: Description: The application attempted to...
    4. System.Security.SecurityException: Request failed.
      Could you paste the code that's in Page_load? -- Abdellah Elamiri ..net Developer Efficacy through simplicity "Luke Sanderlin"...
    5. Security: securityexception with web parts (SPSv2)
      Hi All This is one for the experts! I have developed a Web Part (in C#) which should list some entities from Active Directory using...
  3. #2

    Default Re: System.Security.SecurityException Error

    Using .NET configuration tool you may set network zone as trusted. But it is
    not an acceptable solution, i know. I would like to ask u what about calling
    web service dynamic discovery or static discovery is used....

    --

    Thanks,
    Yunus Emre ALPÖZEN
    BSc, MCAD.NET

    "Michael [Multnomah]" <michael.o.hanna@co.multnomah.or.us> wrote in message
    news:1115310004.567253.319320@f14g2000cwb.googlegr oups.com...
    > Hello All,
    >
    > I have built and deployed a .NET web service to a web server
    > [DBADMIN-DEV1]. Then, I created a C# console application wrapper
    > around this web service to pass the parameters from the command line.
    > When I run this console EXE LOCALLY calling the web service on the
    > remote machine, it works fine. When I copy the EXE to the remove web
    > server where the web service is running and run it LOCALLY on the web
    > server, it runs fine. But now I have created a share with a UNC path,
    > so I can call the EXE directly on the remote machine from anywhere,
    > without having to maintain a local copy of the EXE. So, I try to make
    > this call:
    >
    > \\dbadmin-dev1\multco_console_remedy\multco_console_remedy.e xe param1
    > param2 param3 ...
    >
    > BUT I get the following security error:
    >
    > ERROR: System.Security.SecurityException: Request for the permission of
    > type System.Net.WebPermission, System, Version=1.0.5000.0,
    > Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
    > at
    > System.Security.CodeAccessSecurityEngine.CheckHelp er(PermissionSet
    > grantedSet, PermissionSet deniedSet, CodeAccessPermission demand,
    > PermissionToken permToken)
    >
    >
    > What permissions or changes do I need to make on the web service or
    > console app to allow remote execution?
    >

    Yunus Emre ALPÖZEN [MCAD.NET] 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