In my asp.net C# web application i am using telerik upload control to upload the image or file on server with ftp.
My Code is as follows:
ftpfilepath = AppFunctions.GetFTPUrl() + AppFunctions.GetFileUpload
Path() + filename;
ftpWebRequest = (FtpWebRequest)WebRequest.
ftpWebRequest.Method = WebRequestMethods.Ftp.UploadFile
ftpWebRequest = AppFunctions.GetNetworkCre
streamReader = new StreamReader(uploadedFile.
byte fileContents = Encoding.UTF8.GetBytes(str
h = fileContents.Length;
stream = ftpWebRequest.GetRequestSt
ftpWebResponse = (FtpWebResponse)ftpWebRequ
When I run it on my local machine, it works fine, but as soon as i uploaded it on the production server, it gives error as :
Error Occured : Request for the permission of type 'System.Net.WebPermission,
System, Version=22.214.171.124, Culture=neutral, PublicKeyToken=b77a5c56193
I also tried
<trust level="Full" originUrl=""/>
but then it gives error as :
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.