Re: Web Service that calls an external Web Service

From: Krish Shenoy[MSFT] (kshenoy_at_online.microsoft.com)
Date: 01/29/04

  • Next message: Rich Roller: "Re: SID Filtering vs. SIDhistory"
    Date: Wed, 28 Jan 2004 15:28:17 -0800
    
    

    microsoft.public.webservices would be a better group to post this to

    -- 
    Krish Shenoy[MSFT]
    This posting is provided "AS IS" with no warranties, and confers no rights.
    "Isaias Formacio Serna" <none@mail.com> wrote in message
    news:Og$5tme5DHA.2736@TK2MSFTNGP09.phx.gbl...
    > Hi, I developed and installed a Web Service on a Windows Server 2003, the
    > web service works fine on any Windows XP Workstation but not on the
    server,
    > I keep getting this exception:
    >
    > 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)
    >    at System.Security.CodeAccessSecurityEngine.Check(PermissionToken
    > permToken, CodeAccessPermission demand, StackCrawlMark& stackMark, Int32
    > checkFrames, Int32 unrestrictedOverride)
    >    at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission
    > cap, StackCrawlMark& stackMark)
    >    at System.Security.CodeAccessPermission.Demand()
    >    at System.Net.HttpRequestCreator.Create(Uri Uri)
    >    at System.Net.WebRequest.Create(Uri requestUri, Boolean useUriBase)
    >    at System.Net.WebRequest.Create(Uri requestUri)
    >    at System.Web.Services.Protocols.WebClientProtocol.GetWebRequest(Uri
    uri)
    >    at
    System.Web.Services.Protocols.HttpWebClientProtocol.GetWebRequest(Uri
    > uri)
    >    at
    System.Web.Services.Protocols.SoapHttpClientProtocol.GetWebRequest(Uri
    > uri)
    >    at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
    > methodName, Object[] parameters)
    >    at
    > Bluenode.Gourmet.Services.Service_SS.station.CancelaDetalleComanda(Int32
    > Mesa, String Producto, Int32 Orden, String Autorizador)
    >    at Bluenode.Gourmet.Services.pos.CancelaDetalleComanda(Int32 NoMesa,
    > String NombreProducto, Int32 NoOrden, String NombreAutoriza, Int32
    > IdDetalleComanda)
    >
    > The state of the failed permission was:
    > <IPermission class="System.Net.WebPermission, System, Version=1.0.5000.0,
    > Culture=neutral, PublicKeyToken=b77a5c561934e089"
    >              version="1">
    >    <ConnectAccess>
    >       <URI uri="http://plasma/station/station\.asmx"/>
    >    </ConnectAccess>
    > </IPermission>
    >
    > I've triend adding the site to the trusted sites, increasing the site's
    > trust, etc.
    >
    > Please help!!!
    >
    >
    

  • Next message: Rich Roller: "Re: SID Filtering vs. SIDhistory"

    Relevant Pages

    • Re: Request for permission type failed
      ... In order to give your program the permissions you need, go to the .NET Administration applet and add a new permission set that corresponds to your application. ... DataGridView are read and writen to the .XML using DataSet.ReadXml ... StackCrawlMark& stackMark, Boolean isPermSet) ... access, Int32 rights, Boolean useRights, FileShare share, Int32 ...
      (microsoft.public.dotnet.languages.csharp)
    • Security Error
      ... To grant this application the required permission ... Exception Details: System.Security.SecurityException: Request for the ... CodeAccessPermission demand, StackCrawlMark& stackMark, Int32 checkFrames, ... Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior ...
      (microsoft.public.de.inetserver.iis.asp)
    • Security Error
      ... I have a ASP.net application that work fine with IIS 5.0. ... To grant this application the required permission ... CodeAccessPermission demand, StackCrawlMark& stackMark, Int32 checkFrames, ... Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Adjusting security setting to run an embedded windows control in IE
      ... I'm completly sure that the URI is the same... ... > Does the Uri in the WebPermission that is being demanded match the hostname> of the Uri that the code was downloaded from? ... > for the permission should work. ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Adjusting security setting to run an embedded windows control in IE
      ... I'm completly sure that the URI is the same... ... > Does the Uri in the WebPermission that is being demanded match the hostname> of the Uri that the code was downloaded from? ... > for the permission should work. ...
      (microsoft.public.dotnet.security)