|
-
September 10th, 2008, 02:34 AM
#1
How to Handle Exception after uploading files onto server
Hi all,
I recently published an application and uploaded it onto to server. It has a module to upload video files. While I was uploading a video file of a size less than the allowed size of the file, I got an exception as stated below:
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 failed.
Source Error:
[No relevant source lines]
Source File: App_Web_fileupload.aspx.aeceba10.kuwpdbir.0.cs Line: 0
Stack Trace:
[SecurityException: Request failed.]
Work1_FileUpload.ConvertToFLV(FileUpload fld_VideoUpload) +0
Work1_FileUpload.CheckFile(FileUpload fileup) +781
Work1_FileUpload.btn_Attach_Click(Object sender, EventArgs e) +132
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7350
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +213
System.Web.UI.Page.ProcessRequest() +86
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.work1_fileupload_aspx.ProcessRequest(HttpContext context) in App_Web_fileupload.aspx.aeceba10.kuwpdbir.0.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +358
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
I couldn't overcome the problem. However when I run the same application in my localhost server, there is no problem. How to solve this issue. Please help me.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|