CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2008
    Posts
    51

    Exclamation Question Windows Form Controll in IE, Request for System.Net.WebPermission Failed

    I have a Windows Form Control that am using to show users pictures on a secure server, e.g. log on required. The control that I have built runs fine in the Control Debugger but fails when I try to run it in IE 7.

    The error i get is:
    Request for the permission of type 'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

    How do I fix this? Can I enable VS 2005 to debug this while it runs in IE? Is there another approach that i could use? Ideally there is 0 config from the users point of view besides allowing the control to run.

    Thanks,

  2. #2
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125

    Re: Question Windows Form Controll in IE, Request for System.Net.WebPermission Failed

    Do the users have you URL as a "Trusted Site"??????
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  3. #3
    Join Date
    Oct 2008
    Posts
    51

    Re: Question Windows Form Controll in IE, Request for System.Net.WebPermission Failed

    Quote Originally Posted by TheCPUWizard View Post
    Do the users have you URL as a "Trusted Site"??????
    For my testing I am using localhost, and though not explicitly considered in my local intranet i added it to the "trusted sites".

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured