Bug Report B133404
Visible to All Users

Web - Pie and doughnut series views don't work under medium trust on some machines

created 16 years ago

I am having the exact problem as described in Q185169.
To sumerize, I am using .NET 8.2. I have recently upgraded from previous versions and I no longer can get any pages with charts to load.
I have tried removing the assembly references from the web.config as suggested and that made no difference. I've also checked my Bin and I have the exact same list of DLL's installed. Just as mentioned in the previous in the previous post, everything works fine Locally, but when moved to the production server I receive the "Operation Could destabilize the runtime" error. (also a medium trust). I have included the code used at the end of this message, but as I mentioned it works fine locally.
The original bug was reported several months ago, so I would assume their is a resolution by now. If you could please provide a link, that would be great. If there is no bug fix, if you could please provide me with instructions on where to locate the previous versions.
I am under extreme pressure from others to get this resolved quickly. The team at DevX has been very helpful in the past, and I hope that you will be able to help me once again.
 Protected Sub WebChartControl1_ObjectSelected(ByVal sender As Object, ByVal e As DevExpress.XtraCharts.HotTrackEventArgs) Handles WebChartControl1.ObjectSelected
        e.Cancel = False
        Dim point As SeriesPoint = TryCast(e.AdditionalObject, SeriesPoint)
        InitProductsChart(point)
    End Sub

Private Sub InitProductsChart(ByVal point As SeriesPoint)
        WebChartControl1.Series(0).Visible = False
        Dim dataFilter1 As New DataFilter("Division", "System.String", DataFilterCondition.Equal, point.Argument)
        WebChartControl1.Series(2).DataFilters.Add(dataFilter1)
        WebChartControl1.Series(2).Visible = True
    End Sub
Steps to Reproduce:
Add a chart to an aspx page, and run it in a hosted environment.
Actual Results:
Receive stack error "Operation could destabilize runtime"
Expected Results:
Chart to load as normal.

Show previous comments (12)

    Nevermind, I found what I was looking for. I'll close the issue. You guys are great for putting up with me. Thanks.
    Dim axisX As AxisXBase = (CType(WebChartControl1.Series(1).View, XYDiagramSeriesViewBase)).AxisX
            axisX.Label.Angle = 270

      Found Solution

      DevExpress Support Team 16 years ago

        Hi Benjamin,
        Unfortunately, our Support Center concept doesn't allow you to discuss multiple problems within one thread.
        In the future, please post a separate issue for each question. This way, we can process and track it more efficiently.
        For now, I've moved your question regarding the Axis Labels to a separate issue. Please refer to this thread:
        Chart Wizard issue when adjusting the axis label angle.
        BTW: Also, it's not necessary to close the Bug Report after it has been fixed.
        Thanks,
        Alex.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.