About AspxGauges
-
Hello guys, There is a problem that I added a few AspxGauges to my project. I set the customize Gauge control and save them out as XML. The page load is below:
protected void Page\_Load(object sender, EventArgs e) { this.gauges\_yil.RestoreLayoutFromXml(MapPath("~/aspx/gauges\_yil.xml")); this.gauges\_m2.RestoreLayoutFromXml(MapPath("~/aspx/gauges\_m2.xml")); this.gauges\_kasa.RestoreLayoutFromXml(MapPath("~/aspx/gauges\_kasa.xml")); this.ASPxGaugeControl4.RestoreLayoutFromXml(MapPath("~/aspx/ASPxGaugeControl4.xml")); this.ASPxGaugeControl5.RestoreLayoutFromXml(MapPath("~/aspx/ASPxGaugeControl5.xml")); this.ASPxGaugeControl6.RestoreLayoutFromXml(MapPath("~/aspx/ASPxGaugeControl6.xml")); }
However, I got this error after I sent it to the server: 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: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [SecurityException: Request failed.] DevExpress.XtraGauges.Core.Resources.PointF2DConverter.ConvertTo(ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType) +0 System.Web.Compilation.CodeDomUtility.GenerateExpressionForValue(PropertyInfo propertyInfo, Object value, Type valueType) +587 System.Web.UI.SimplePropertyEntry.GetCodeStatement(BaseTemplateCodeDomTreeGenerator generator, CodeExpression ctrlRefExpr) +136
-
Hello guys, There is a problem that I added a few AspxGauges to my project. I set the customize Gauge control and save them out as XML. The page load is below:
protected void Page\_Load(object sender, EventArgs e) { this.gauges\_yil.RestoreLayoutFromXml(MapPath("~/aspx/gauges\_yil.xml")); this.gauges\_m2.RestoreLayoutFromXml(MapPath("~/aspx/gauges\_m2.xml")); this.gauges\_kasa.RestoreLayoutFromXml(MapPath("~/aspx/gauges\_kasa.xml")); this.ASPxGaugeControl4.RestoreLayoutFromXml(MapPath("~/aspx/ASPxGaugeControl4.xml")); this.ASPxGaugeControl5.RestoreLayoutFromXml(MapPath("~/aspx/ASPxGaugeControl5.xml")); this.ASPxGaugeControl6.RestoreLayoutFromXml(MapPath("~/aspx/ASPxGaugeControl6.xml")); }
However, I got this error after I sent it to the server: 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: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [SecurityException: Request failed.] DevExpress.XtraGauges.Core.Resources.PointF2DConverter.ConvertTo(ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType) +0 System.Web.Compilation.CodeDomUtility.GenerateExpressionForValue(PropertyInfo propertyInfo, Object value, Type valueType) +587 System.Web.UI.SimplePropertyEntry.GetCodeStatement(BaseTemplateCodeDomTreeGenerator generator, CodeExpression ctrlRefExpr) +136
I think you are running into CASPOL issues as your content resides on a remote share see this link: "System.Security.SecurityException: Security error" error message when the virtual directory points to a remote share in ASP.NET[^]