Server Error in '/' Application.
--------------------------------------------------------------------------------
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 .SecurityExcept ion: Request for the permission of type 'System.Securit y.Permissions.F ileIOPermission , mscorlib, Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9' failed.
Source Error:
Line 99:
Line 100: FileInfo File_Small, File_Big;
Line 101: File_Small = new FileInfo(FilePr odImgSmall.Post edFile.FileName .ToString().Tri m().Replace("'" , ""));
Line 102: File_Big = new FileInfo(FilePr odImgBig.Posted File.FileName.T oString().Trim( ).Replace("'", ""));
Line 103:
Source File: d:\hosting\den3 13\admin\Produc tMaster.aspx.cs Line: 101
Stack Trace:
[SecurityExcepti on: Request for the permission of type 'System.Securit y.Permissions.F ileIOPermission , mscorlib, Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9' failed.]
System.Security .CodeAccessSecu rityEngine.Chec k(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
System.Security .CodeAccessPerm ission.Demand() +58
System.IO.FileI nfo..ctor(Strin g fileName) +131
ProductMaster.b tnsave_Click(Ob ject sender, EventArgs e) in d:\hosting\den3 13\admin\Produc tMaster.aspx.cs :101
System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e) +111
System.Web.UI.W ebControls.Butt on.RaisePostBac kEvent(String eventArgument) +110
System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP ostBackEvent(St ring eventArgument) +10
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler sourceControl, String eventArgument) +13
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +36
System.Web.UI.P age.ProcessRequ estMain(Boolean includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint) +6785
System.Web.UI.P age.ProcessRequ est(Boolean includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint) +242
System.Web.UI.P age.ProcessRequ est() +80
System.Web.UI.P age.ProcessRequ estWithNoAssert (HttpContext context) +21
System.Web.UI.P age.ProcessRequ est(HttpContext context) +49
ASP.admin_produ ctmaster_aspx.P rocessRequest(H ttpContext context) in App_Web_1z5irrh 3.14.cs:0
System.Web.Call HandlerExecutio nStep.System.We b.HttpApplicati on.IExecutionSt ep.Execute() +181
System.Web.Http Application.Exe cuteStep(IExecu tionStep step, Boolean& completedSynchr onously) +75
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.507 27.3603; ASP.NET Version:2.0.507 27.3053
--------------------------------------------------------------------------------
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 .SecurityExcept ion: Request for the permission of type 'System.Securit y.Permissions.F ileIOPermission , mscorlib, Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9' failed.
Source Error:
Line 99:
Line 100: FileInfo File_Small, File_Big;
Line 101: File_Small = new FileInfo(FilePr odImgSmall.Post edFile.FileName .ToString().Tri m().Replace("'" , ""));
Line 102: File_Big = new FileInfo(FilePr odImgBig.Posted File.FileName.T oString().Trim( ).Replace("'", ""));
Line 103:
Source File: d:\hosting\den3 13\admin\Produc tMaster.aspx.cs Line: 101
Stack Trace:
[SecurityExcepti on: Request for the permission of type 'System.Securit y.Permissions.F ileIOPermission , mscorlib, Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9' failed.]
System.Security .CodeAccessSecu rityEngine.Chec k(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
System.Security .CodeAccessPerm ission.Demand() +58
System.IO.FileI nfo..ctor(Strin g fileName) +131
ProductMaster.b tnsave_Click(Ob ject sender, EventArgs e) in d:\hosting\den3 13\admin\Produc tMaster.aspx.cs :101
System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e) +111
System.Web.UI.W ebControls.Butt on.RaisePostBac kEvent(String eventArgument) +110
System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP ostBackEvent(St ring eventArgument) +10
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler sourceControl, String eventArgument) +13
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +36
System.Web.UI.P age.ProcessRequ estMain(Boolean includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint) +6785
System.Web.UI.P age.ProcessRequ est(Boolean includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint) +242
System.Web.UI.P age.ProcessRequ est() +80
System.Web.UI.P age.ProcessRequ estWithNoAssert (HttpContext context) +21
System.Web.UI.P age.ProcessRequ est(HttpContext context) +49
ASP.admin_produ ctmaster_aspx.P rocessRequest(H ttpContext context) in App_Web_1z5irrh 3.14.cs:0
System.Web.Call HandlerExecutio nStep.System.We b.HttpApplicati on.IExecutionSt ep.Execute() +181
System.Web.Http Application.Exe cuteStep(IExecu tionStep step, Boolean& completedSynchr onously) +75
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.507 27.3603; ASP.NET Version:2.0.507 27.3053