Re: Request for the permission of type System.Net.WebPermission ... failed

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Nick Malik (nickmalik_at_hotmail.nospam.com)
Date: 09/09/04


Date: Thu, 09 Sep 2004 10:38:17 GMT

your event handler needs to impersonate an account and needs to use
AllowPartiallyTrustedCallers in order to overcome the fact that objects
running under sharepoint are not trusted.

--- Nick
See the Document Library Event Handler Toolkit for excellent packaged code
to get you going...
http://download.microsoft.com/download/9/e/5/9e5a6158-8942-4ed4-9bb6-0d33df627a3b/EventHandlerToolkit.EXE

"zafrir" <zaflap@hotmail.com> wrote in message
news:786c64f3.0409080433.7cc19036@posting.google.com...
> Hello,
>
> I have a InfoPath form deployed on Sharepoint.
>
> in the code behind event written in c# i'm trying to access WebService
> on the same server. i get the following error:
>
> Request for the permission of type System.Net.WebPermission ... has
> failed?
>
> does any one has a clue?
>
> i saw zeynep published messages regarding this problem, but he did not
> write wether the prolbem was solved.
>
> Thanks



Relevant Pages

  • Re: Unable to instantiate event handler object
    ... One thing to keep in mind is that your event handler is called asynchronously by SharePoint and a new instant of your event ... so I suspect that you have amiss in your initialization code that is causing the exception to occur on the 2nd ... I have developed an event handler for sharepoint document library. ... Again when i run document library, this problem pops up. ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: Document Library Event Handlers
    ... open the properties on the Sharepoint Web ... loading event handler assembly failed. ... Including the strong name when entering into Sharepoint's interface ... Public Sub OnEvent(ByVal listEvent As ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: Attach event handler to a custom list
    ... I doubt very much that this is a SharePoint Team Services question. ... normal non-programming WSS questions go to the main newsgroup ... Can I also attach an event handler to a custom list ...
    (microsoft.public.sharepoint.teamservices)
  • Re: Multiple Document Library Event Handlers
    ... Unfortunately it's just not possible as you can only configure a single event handler to a doclib. ... I have looked at the possibility of creating an event handler factory of sorts that, through reflection, would be able to delegate events to multiple handlers but not something that's easy to accomplish. ... sharepoint deployment / development and we need to take advanced control ... Custom workflow management ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: Threads and Events
    ... especially if the event handler needs to update ... If it's in the context of the worker thread, ... wouldn't the MEssageBox be running in the same ...
    (microsoft.public.dotnet.framework.compactframework)