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@xxxxxxxxxxxxxxxxxx> wrote in message
news:1115310004.567253.319320@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> 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.exe 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.CheckHelper(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?
>


.



Relevant Pages

  • Re: I am stucked: Working on a network mapped drive via Web Service
    ... Either run the corresponding ASP .NET application in a dedicated application pool running under a user account with sufficient permissions to access the mapped network drive, ... I have a thrid party tool "EXE" that we need to use with our web service to ... When I trigger the EXE via web service the EXE ... permission issue. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Smart clients
    ... >> a connection) to the machine that the client was downloaded from. ... First, you can connect to a web service, but you cannot open any arbitrary ... If you evaluate the permission set granted to an executable ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: OleDBpermission
    ... The problem is web sites have limited Code Access Security permissions... ... You can do this in the web.config of the web service, by adjusting the element. ... The intranet does have the OleDB permission, which is the reason why calling it from the Internet zone doesn't work..... ...
    (microsoft.public.dotnet.security)
  • RE: UpdateListItems web service does not update field
    ... I think there is nothing wrong with the configurations. ... \par The permission is correct, and the soap message looks good. ... \par url: Web Service URL, ... \par As web service issues requires extensive programming skills, it is suggested to get further help in microsoft.public.sharepoint.portalserver.development newsgroup. ...
    (microsoft.public.sharepoint.portalserver)
  • RPC over HTTPS Question (2 rpcproxydlll files)
    ... Right at the bottom of the page is ... Only one of which was given permission to execute in the web service ...
    (microsoft.public.exchange.admin)