Re: Anyone seen this error before

From: Matt Milner (matt.milner_at_m3technologypartners)
Date: 01/17/05


Date: Mon, 17 Jan 2005 13:41:58 -0600

I am assuming that you have WSS installed on this server, but have excluded
the path for your web service. If that is the case, then the root
web.config for your site is setup to run the site in medium or low trust (I
think it is actually a custom WSS level). You will need to change this, or
override it in your web.config for the web service to a level that allows
SQL permissions.

Matt

"KalyanT" <KalyanT@discussions.microsoft.com> wrote in message
news:F95A2C20-9015-42C7-A271-18858EAD47A8@microsoft.com...
> Hi,
> I have a simple orchestration calling webservice to get some data. Web
> service fails to fetch data throwing this error. I am running my
> application
> on Windows2003 server which has BizTalk Server installed, trying to access
> database located on same server.I tried giving full trust to my assembly
> using .Net configuration Tool, still I am seeing the same error. Any
> suggestions are welcome.
>
> Here is the error
>
> System.Security.SecurityException: Request for the permission of type
> System.Data.SqlClient.SqlClientPermission, System.Data,
> Version=1.0.5000.0,
> Culture=neutral, PublicKeyToken=b77a5c561934e089 failed. at
> System.Security.SecurityRuntime.FrameDescHelper(FrameSecurityDescriptor
> secDesc, IPermission 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.Data.SqlClient.SqlConnectionString.Demand(SqlConnectionString
> constr) at System.Data.SqlClient.SqlConnection.Open() at
> DWRWebServices.DWROrderDetail.GetOrderDetail(String req) in
> e:\kalyanbiztalk\dwrwebservices\dwrorderdetails.asmx.cs:line 85
> --
> Kalyan



Relevant Pages

  • Re: Security issues with Win2003 and ASPNet app
    ... out how to add a App Pool!) ... how do I then configure permssions on the SQL server ... >> I have an ASP.NET Web Service and Web Site. ... >> don't know how to give it the necessary permissions to access the SQL ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: knowing wich previleges i have
    ... installations on the server are against the requirements of my ... In the web service, you ... check the permissions on servers that have the web service deployed. ... GetPermissionCollection web method. ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: Security issues with Win2003 and ASPNet app
    ... you can configure the identity of your web service using the Application ... > running as a user under a LOCAL group IIS_WPG on the IIS Server and I ... > don't know how to give it the necessary permissions to access the SQL ... > I think what I need to do is create a Domain Account, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: initialize COM within a web service
    ... The likely culprit is permissions. ... Administering just about any server ... >I'm currently trying to use API's in Microsoft Virtual Server 2005. ... >initialize COM just fine from anything other then a web service whihc is ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: write with cURL
    ... execute permissions. ... of potential security risks from other users on the same server. ... I made this suggestion because their web host appears to run Apache ... risk to allow Apache's group write access, since all PHP scripts ran ...
    (alt.php)