sm_tahery
سه شنبه 10 اردیبهشت 1387, 20:41 عصر
سلام کسی میدونه این خطا چی میگه؟
ما تو برنامه از ReportViewer استفاده کردیم تو Local جواب میده ولی رو سرور این خطا ظاهر میشه. در ASP.NET
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.SecurityException: Request failed.
Source Error:
Line 432: </asp:View>
Line 433: <asp:View ID="View1" runat="server">
Line 434: <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt"
Line 435: Height="440px" Width="100%" SizeToReportContent="True" ShowPromptAreaButton="False" ShowRefreshButton="False">
Line 436: <LocalReport ReportPath="ResultStuReport.rdlc" EnableExternalImages="True">
Source File: d:\Webspace\resadmin\azmoontvto\azmoontvto.com\www \AzmoonResult.aspx Line: 434
Stack Trace:
[SecurityException: Request failed.]
Microsoft.Reporting.LocalService.set_Snapshot(Repo rtSnapshotBase value) +27
Microsoft.Reporting.LocalService.ResetExecution(Bo olean recompile) +29
Microsoft.Reporting.WebForms.LocalReport.Refresh() +43
Microsoft.Reporting.WebForms.LocalReport.set_Repor tPath(String value) +66
ASP.azmoonresult_aspx.__BuildControl__control115(L ocalReport __ctrl) in d:\Webspace\resadmin\azmoontvto\azmoontvto.com\www \AzmoonResult.aspx:434
ASP.azmoonresult_aspx.__BuildControlReportViewer1( ) in d:\Webspace\resadmin\azmoontvto\azmoontvto.com\www \AzmoonResult.aspx:434
ASP.azmoonresult_aspx.__BuildControlView1() in d:\Webspace\resadmin\azmoontvto\azmoontvto.com\www \AzmoonResult.aspx:433
ASP.azmoonresult_aspx.__BuildControlMultiView1() in d:\Webspace\resadmin\azmoontvto\azmoontvto.com\www \AzmoonResult.aspx:10
ASP.azmoonresult_aspx.__BuildControlContent1(Contr ol __ctrl) in d:\Webspace\resadmin\azmoontvto\azmoontvto.com\www \AzmoonResult.aspx:6
System.Web.UI.CompiledTemplateBuilder.InstantiateI n(Control container) +12
ASP.site1_master.__BuildControlContentPlaceHolder1 () in d:\Webspace\resadmin\azmoontvto\azmoontvto.com\www \Site1.Master:274
ASP.site1_master.__BuildControlform1() in d:\Webspace\resadmin\azmoontvto\azmoontvto.com\www \Site1.Master:121
ASP.site1_master.__BuildControlTree(site1_master __ctrl) in d:\Webspace\resadmin\azmoontvto\azmoontvto.com\www \Site1.Master:1
ASP.site1_master.FrameworkInitialize() +69
System.Web.UI.UserControl.InitializeAsUserControlI nternal() +31
System.Web.UI.MasterPage.CreateMaster(TemplateCont rol owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +2028700
System.Web.UI.Page.get_Master() +48
System.Web.UI.Page.ApplyMasterPage() +18
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(Http Context context) +18
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.azmoonresult_aspx.ProcessRequest(HttpContext context) +29
System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication.IExecutionStep.Execute() +358
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +64
[/FONT]
ما تو برنامه از ReportViewer استفاده کردیم تو Local جواب میده ولی رو سرور این خطا ظاهر میشه. در ASP.NET
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.SecurityException: Request failed.
Source Error:
Line 432: </asp:View>
Line 433: <asp:View ID="View1" runat="server">
Line 434: <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt"
Line 435: Height="440px" Width="100%" SizeToReportContent="True" ShowPromptAreaButton="False" ShowRefreshButton="False">
Line 436: <LocalReport ReportPath="ResultStuReport.rdlc" EnableExternalImages="True">
Source File: d:\Webspace\resadmin\azmoontvto\azmoontvto.com\www \AzmoonResult.aspx Line: 434
Stack Trace:
[SecurityException: Request failed.]
Microsoft.Reporting.LocalService.set_Snapshot(Repo rtSnapshotBase value) +27
Microsoft.Reporting.LocalService.ResetExecution(Bo olean recompile) +29
Microsoft.Reporting.WebForms.LocalReport.Refresh() +43
Microsoft.Reporting.WebForms.LocalReport.set_Repor tPath(String value) +66
ASP.azmoonresult_aspx.__BuildControl__control115(L ocalReport __ctrl) in d:\Webspace\resadmin\azmoontvto\azmoontvto.com\www \AzmoonResult.aspx:434
ASP.azmoonresult_aspx.__BuildControlReportViewer1( ) in d:\Webspace\resadmin\azmoontvto\azmoontvto.com\www \AzmoonResult.aspx:434
ASP.azmoonresult_aspx.__BuildControlView1() in d:\Webspace\resadmin\azmoontvto\azmoontvto.com\www \AzmoonResult.aspx:433
ASP.azmoonresult_aspx.__BuildControlMultiView1() in d:\Webspace\resadmin\azmoontvto\azmoontvto.com\www \AzmoonResult.aspx:10
ASP.azmoonresult_aspx.__BuildControlContent1(Contr ol __ctrl) in d:\Webspace\resadmin\azmoontvto\azmoontvto.com\www \AzmoonResult.aspx:6
System.Web.UI.CompiledTemplateBuilder.InstantiateI n(Control container) +12
ASP.site1_master.__BuildControlContentPlaceHolder1 () in d:\Webspace\resadmin\azmoontvto\azmoontvto.com\www \Site1.Master:274
ASP.site1_master.__BuildControlform1() in d:\Webspace\resadmin\azmoontvto\azmoontvto.com\www \Site1.Master:121
ASP.site1_master.__BuildControlTree(site1_master __ctrl) in d:\Webspace\resadmin\azmoontvto\azmoontvto.com\www \Site1.Master:1
ASP.site1_master.FrameworkInitialize() +69
System.Web.UI.UserControl.InitializeAsUserControlI nternal() +31
System.Web.UI.MasterPage.CreateMaster(TemplateCont rol owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +2028700
System.Web.UI.Page.get_Master() +48
System.Web.UI.Page.ApplyMasterPage() +18
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(Http Context context) +18
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.azmoonresult_aspx.ProcessRequest(HttpContext context) +29
System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication.IExecutionStep.Execute() +358
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +64
[/FONT]