RSS 2.0
 Saturday, May 07, 2005
Today I built the most trivial of ASP.NET 2.0 Web applications that called the most trivial of ASP.NET 2.0 Web services. I deployed both to IIS 6.0, and the one wouldn't call the other. I was getting these, over and over:

Security Exception

Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Resolution

Not very elegant here, but I added this to the web.config of the calling Web site, and it works:

<system.web>
   <trust level="Full" originUrl=""/>
</system.web>

Found some research here and here.

Saturday, May 07, 2005 5:10:24 PM (Mountain Standard Time, UTC-07:00)  #    Comments [0] -

Archive
<September 2010>
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2010
Richard Hundhausen
Sign In
Statistics
Total Posts: 719
This Year: 7
This Month: 0
This Week: 0
Comments: 509
Themes
Pick a theme:
All Content © 2010, Richard Hundhausen
DasBlog theme 'Business' created by Christoph De Baene (delarou)