security Exception
-
i want to convert the any video file into .flv format.. it is worked local server perfectly.. but it is not worked in web server... security exception will be displayed.. i used ffmpeg.exe tool only... pls help me Process ffmpeg; // creating process string video; string mpg; video = Page.MapPath("movie.wmv"); mpg = Page.MapPath("") + "\\video.flv"; // thumb name with path ! ffmpeg = new Process(); ffmpeg.StartInfo.Arguments = "-i " + video + " -f flv -vcodec flv -qscale 10 -s 480x360 -ar 44100 -acodec libmp3lame " + mpg; // arguments ! ffmpeg.StartInfo.FileName = Page.MapPath("ffmpeg.exe"); ffmpeg.Start(); my web config file <?xml version="1.0"?> <configuration> <connectionStrings/> <system.web> <customErrors mode="Off"/> <compilation debug="true"/> <authentication mode="Windows"/> <httpRuntime executionTimeout="240" maxRequestLength="2097151" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100"/> </system.web> </configuration> i receive this error what is this error tell me pls 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_1lwzeoop.0.cs Line: 0 Stack Trace: [SecurityException: Request failed.] _Default.Button1_Click(Object sender, EventArgs e) +0 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.Pa
-
i want to convert the any video file into .flv format.. it is worked local server perfectly.. but it is not worked in web server... security exception will be displayed.. i used ffmpeg.exe tool only... pls help me Process ffmpeg; // creating process string video; string mpg; video = Page.MapPath("movie.wmv"); mpg = Page.MapPath("") + "\\video.flv"; // thumb name with path ! ffmpeg = new Process(); ffmpeg.StartInfo.Arguments = "-i " + video + " -f flv -vcodec flv -qscale 10 -s 480x360 -ar 44100 -acodec libmp3lame " + mpg; // arguments ! ffmpeg.StartInfo.FileName = Page.MapPath("ffmpeg.exe"); ffmpeg.Start(); my web config file <?xml version="1.0"?> <configuration> <connectionStrings/> <system.web> <customErrors mode="Off"/> <compilation debug="true"/> <authentication mode="Windows"/> <httpRuntime executionTimeout="240" maxRequestLength="2097151" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100"/> </system.web> </configuration> i receive this error what is this error tell me pls 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_1lwzeoop.0.cs Line: 0 Stack Trace: [SecurityException: Request failed.] _Default.Button1_Click(Object sender, EventArgs e) +0 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.Pa
I guess the exception already told you what the problem is :D "The application attempted to perform an operation not allowed by the security policy" It seems you are using shared hosting and such hosting force some policies to insure the safety of their servers So contact them and ask them how far can they go with you in the policies thing, or u might need to have your own dedicated server.
Best Regards 3ala2 :)