开发者

System.ComponentModel.Win32Exception: Access is denied?

In my web application i am using video conversion, i am getting error like

System.ComponentModel.Win32Exception: Access is denied

video conversion is working fine in localserver. when i upload in online it is giv开发者_C百科ing error like this can u help me.

error like..

Access is denied Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ComponentModel.Win32Exception: Access is denied

Source Error:

Line 76:               ffmpeg.StartInfo.Arguments = " -i \"" + video + "\"    -vframes 1 -ss 00:00:10 -s 150x150 -f image2 -vcodec mjpeg \"" + thumb + "\""; // arguments !
Line 77:               ffmpeg.StartInfo.FileName = Page.MapPath("FFMPEG\\ffmpeg.exe"); //Page.MapPath("\\User\\Trailorvideos\\ffmpeg.exe");  //Page.MapPath(".") + "/ffmpeg.exe";
Line 78:               ffmpeg.Start(); // start !


Are you using shared hosting? Probably your code is running at a lower trust level on your hosting provider that it is on your local server and you have no acces to COM.

You can read about trust levels here many shared hosting providors set the trust level to medium.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜