Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 21st, 2006, 09:41 AM
Authorized User
Join Date: Feb 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Request for the permission of type 'System.Net.Web


We are using some class in .NET like
in our page. We used these classes to get the file from another ftp server, but we are getting an error regarding security.


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=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

We also tried to solve this security issue by adding some permission tags in web.config file like

  <location allowOverride="true">

  <trust level="Full"/>

Server Error in '/' Application.

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: This configuration section cannot be used at this path. This happens when the site administrator has locked access to this section using <location allowOverride="false"> from an inherited configuration file.

Source Error:

Line 4: <system.web>
Line 5:
Line 6: <trust level="Full"/>
Line 7:

Even this didn't help us it gives some other error like "Administrator has locked the access". Please

any one can suggest me

Paranthaman R

Old August 21st, 2006, 10:16 AM
Wrox Author
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons

The default ASP.NET user account (normally IWAM_[machineName]) by default has low permissions to do anything regarding the Operating System (for obvious reasons) and what you are probably running into here is that you are trying to open a socket from an ASP page which is not allowed. (Judging from the error message this is being enforced by a Domain Controller)

The only suggestions I have for you is to 1)contact your Network Admin and have them grant higher privelages to that particular account, 2) Impersonate a user that has the rights to preform the actions, or 3)Search the MSDN for .NET ftp control.

.NET 1.1 does not support FTP natively but there is a way to write a control that will allow for FTP transmissions. (I used the aforementioned MSDN article in one of my applications to facilitate an automatic FTP and it works very well)

Sorry but I can't seem to find the link to the article in my bookmarks, but do a quick search you are bound to find it.


"The one language all programmers understand is profanity."

Similar Threads
Thread Thread Starter Forum Replies Last Post
System.Web.HttpException: Request timed out Ron Howerton General .NET 0 May 21st, 2008 08:23 AM
default(System.Type) does this exist in VB.NET 2k5 Peace2u ASP.NET 2.0 Basics 0 August 18th, 2006 06:51 AM
System.Net.WebException: The request failed with H deeptisingh20 ASP.NET 1.0 and 1.1 Professional 0 July 19th, 2006 11:18 PM
unhandled exception of type 'System.Net.WebExcepti booksnore2 C# 0 June 26th, 2004 07:26 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.