|
-
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.
-
September 10th, 2008, 02:52 AM
#2
Re: How to Handle Exception after uploading files onto server
Check the permissions of the ASP.NET account (it varies based on version of Windows / IIS) for the folder where you're doing the work / saving / editing files. Also, if the ConvertToFLV method calls a separate process you'll need to make sure the ASP.NET account has permission to execute it.
-
September 10th, 2008, 03:11 AM
#3
Re: How to Handle Exception after uploading files onto server
 Originally Posted by mmetzger
Check the permissions of the ASP.NET account (it varies based on version of Windows / IIS) for the folder where you're doing the work / saving / editing files. Also, if the ConvertToFLV method calls a separate process you'll need to make sure the ASP.NET account has permission to execute it.
Thanks for your reply. I have uploaded the application onto godaddy hosting server and given all the required permissions. Still I am facing the problem. Can you suggest some more help.
-
September 10th, 2008, 08:48 AM
#4
Re: How to Handle Exception after uploading files onto server
The big question is what does the ConvertToFLV method actually call? If it's calling a separate executable this isn't going to work on GoDaddy.
-
September 16th, 2008, 05:20 AM
#5
Re: How to Handle Exception after uploading files onto server
Thanks for your reply. The ConvertToFLV method is actually calling a separate executable. But I need it to convert my video files. So how to overcome this problem. Do you have some suggestions.
-
September 16th, 2008, 09:08 AM
#6
Re: How to Handle Exception after uploading files onto server
Godaddy to my knowledge does not allow running a separate executable on any of their shared hosting environments. It's a combination of security and performance related issues - not to mention their hosting is very inexpensive so they typically won't allow this.
You may need to get either a VPS (Virtual Private Server) or even a dedicated one depending on what your requirements are. You could also try something with Amazon's Web Services, but this would require a fair amount of work to interface properly.
Your best bet is likely to contact GoDaddy and see what they say. Considering that this type of task is better handled with a queue and a background conversion process (otherwise you can't return data to the client until the conversion completes) you'll likely need one of the options presented above.
-
September 17th, 2008, 01:06 AM
#7
Re: How to Handle Exception after uploading files onto server
Thanks mmetzger for your help. I would check it with other web hosting sites and see if it works or not.
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
|