[CLOSED] Urgent: Permission denied Error

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] Urgent: Permission denied Error

    Hi am getting this error in IE 8 "Microsoft JScript runtime error: Permission denied".
    But am not facing this error in Firefox works fine.

    In Jscript block[Dynamic] am getting error here
    SetReturnValue(__flash__toXML(Ext.FlashEventProxy.onEvent("extflashcmp1007",({message:"resize (width: 34267, height: 21976)",type:"log",category:"info"}))) ); }
    Am using Extjs Charts and MVC 2
    Last edited by Daniil; Mar 01, 2011 at 10:30 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Unfortunately, information is not enought. Please provide test sample.

    Usually means that you are attempt to update a property or access content that is not permitted under your current security settings. What is the function that is returning the error?
  3. #3
    This creates problem. Line charts get displayed fine but after that if i click any button then IE starts (Not Responding) and

    function panelLoaded() {
                Portlet5.add(new Ext.chart.LineChart({ title: "Test",
                    xtype: 'linechart',
                    store: dsGraphAccount,
                    yField: 'Amount',
                    url: '/ExtJS/charts.swf',
                    xField: 'Days',
                    chartStyle: {
                        lineColor: 0xB5BAC8,
                        lineAlpha: .5
    
                    },
                    xAxis: new Ext.chart.CategoryAxis({
                        title: 'Days'
                    }),
                    yAxis: new Ext.chart.NumericAxis({
                        title: 'Amount'
                    }),
                    chartStyle: {
                        legend: { display: 'none' },
                        dataTip: {
                            padding: 5,
                            border: { color: 0x99bbe8,
                                size: 1
                            },
                            background: { color: 0xDAE7F6,
                                alpha: .9
                            },
                            font: { name: 'Arial',
                                color: 0x15428B,
                                size: 10,
                                bold: true
                            }
                        }
    
                    },
                    extraStyle: { xAxis: {
                        color: '#99bbe8',
                        majorTicks: { color: 0x69aBc8, length: 4 },
                        minorTicks: { color: 0x69aBc8, length: 2 },
                        majorGridLines: { size: 1, color: 0xeeeeee },
                        labelRotation: -90
                    },
                        yAxis: {
                            color: '#99bbe8',
                            majorTicks: { color: 0x69aBc8, length: 4 },
                            minorTicks: { color: 0x69aBc8, length: 2 },
                            majorGridLines: { size: 1, color: 0xdfe8f6 }
                        }
                    },
    
                    series: [{
                        style: {
                            color: '#99bbe8',
                            image: '/ExtJS/dot.png',
                             mode: 'stretch'
                        }
                    }]
    
                }));
                Portlet5.doLayout();
            }

    try { document.getElementById("extflashcmp1006").SetReturnValue(__flash__toXML(Ext.FlashEventProxy.onEvent("extflashcmp1006",({category:"info",message:"resize (width: 38122, height: 26248)",type:"log"}))) ); } catch (e) { document.getElementById("extflashcmp1006").SetReturnValue("<exception>" + e + "</exception>"); }

    Code for loading Chart in Portlet is below

      <ext:Portlet Collapsible="false" ID="Portlet5" Height="240" runat="server" Title="Account Activity" >
                                                                 <Listeners>                 
                                                                        <AfterRender Fn="panelLoaded" />         
                                                                  </Listeners>
                                                                
                                                                      <Tools>
    
                                                             <ext:Tool Type="Close" Handler="#{Portlet5}.hide();" />
                                                           </Tools> 
                                                    </ext:Portlet>
  4. #4
    Hi,

    I don't think that problem is related with Ext.Net because I don't see any Ext.Net code in the following code
    try { document.getElementById("extflashcmp1006").SetReturnValue(__flash__toXML(Ext.FlashEventProxy.onEvent("extflashcmp1006",({category:"info",message:"resize (width: 38122, height: 26248)",type:"log"}))) ); } catch (e) { document.getElementById("extflashcmp1006").SetReturnValue("<exception>" + e + "</exception>"); }
    I made test sample but I don't see any exception
    <%@ Page Language="C#" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>Row Layout - Ext.NET Examples</title>
        
        <script type="text/javascript">
            function panelLoaded() {
                Portlet5.add(new Ext.chart.LineChart({ title: "Test",
                    id : "Chart1",
                    xtype: 'linechart',
                    store: dsGraphAccount,
                    yField: 'Amount',
                    url: 'charts.swf',
                    xField: 'Days',
                    chartStyle: {
                        lineColor: 0xB5BAC8,
                        lineAlpha: .5
     
                    },
                    xAxis: new Ext.chart.CategoryAxis({
                        title: 'Days'
                    }),
                    yAxis: new Ext.chart.NumericAxis({
                        title: 'Amount'
                    }),
                    chartStyle: {
                        legend: { display: 'none' },
                        dataTip: {
                            padding: 5,
                            border: { color: 0x99bbe8,
                                size: 1
                            },
                            background: { color: 0xDAE7F6,
                                alpha: .9
                            },
                            font: { name: 'Arial',
                                color: 0x15428B,
                                size: 10,
                                bold: true
                            }
                        }
     
                    },
                    extraStyle: { xAxis: {
                        color: '#99bbe8',
                        majorTicks: { color: 0x69aBc8, length: 4 },
                        minorTicks: { color: 0x69aBc8, length: 2 },
                        majorGridLines: { size: 1, color: 0xeeeeee },
                        labelRotation: -90
                    },
                        yAxis: {
                            color: '#99bbe8',
                            majorTicks: { color: 0x69aBc8, length: 4 },
                            minorTicks: { color: 0x69aBc8, length: 2 },
                            majorGridLines: { size: 1, color: 0xdfe8f6 }
                        }
                    },
     
                    series: [{
                        style: {
                            color: '#99bbe8',
                            image: '/ExtJS/dot.png',
                             mode: 'stretch'
                        }
                    }]
     
                }));
                Portlet5.doLayout();
            }
        </script>
    </head>
    <body>
        <ext:ResourceManager ID="ResourceManager1" runat="server" />
        
        <ext:Store ID="dsGraphAccount" runat="server">
            <Reader>
                <ext:JsonReader>
                    <Fields>
                        <ext:RecordField Name="Days" />
                        <ext:RecordField Name="Amount" />
                    </Fields>
                </ext:JsonReader>
            </Reader>
        </ext:Store>
         
        <ext:Panel runat="server" ID="Portlet5" Height="300">
            <Listeners>                 
                  <AfterRender Fn="panelLoaded" />         
            </Listeners>
            <Buttons>
                <ext:Button runat="server" Text="Click">
                    <Listeners>
                        <Click Handler='document.getElementById("Chart1").SetReturnValue(__flash__toXML(Ext.FlashEventProxy.onEvent("Chart1",({category:"info",message:"resize (width: 38122, height: 26248)",type:"log"}))) );' />
                    </Listeners>
                </ext:Button>
            </Buttons>
        </ext:Panel>
    </body>
    </html>
  5. #5
    Hi Vladimir,

    Sorry for late reply, i tried your sample but am getting Jscript Exception: Object expected.

  6. #6
    Hi,

    I have tested Vladimir's example and it appears to be working fine on my side.

    I reproduced the same error that you described when replaced charts.swf to wrong place, I mean a browser can't find this resource.

    So, if there is
    url: 'charts.swf',
    this file should be in current page location.

    If the issue persist I assume that a version of charts.swf can be wrong.
  7. #7
    Hi Daniil,

    Well am using MVC 2 and what happens is the view where am displaying graphs works fine am using Pie, Column and Line graphs page renders graphs perfectly. Issue comes up when i try to open other view at that time this Jscript error comes up.
    What i've seen so far problem arises with Column and Line charts only. If i disable Line and Column charts except pie no permission denied error comes up.
  8. #8
    Please provide us with a simplified sample/test project to reproduce the issue. please see #5:
    http://forums.ext.net/showthread.php?3440
  9. #9
    Sample Code sent to Support mailbox.
  10. #10
    Hi,

    Removing of page with charts takes a long time (you add new tab before remove compliting)
    I suggest to exchange removing and adding new tab (add new tab and remove first tab)
    // Add new tab
    tab = tp.addTab({                
         ...
    });
    // Remove old tab after adding new only
    tp.remove(tp.getComponent(0), true);
Page 1 of 2 12 LastLast

Similar Threads

  1. Fileuploadfield in one click - htmlfile access is denied error
    By vishal.jhala@gmail.com in forum 1.x Help
    Replies: 1
    Last Post: Aug 08, 2011, 6:05 PM
  2. Gridpanel Abort Transcation Error-urgent
    By gopikrishna in forum 1.x Help
    Replies: 0
    Last Post: Feb 15, 2011, 9:22 AM
  3. [CLOSED] Error after update frm SVN - URGENT!
    By Stefanaccio in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 28, 2010, 7:21 AM
  4. Replies: 0
    Last Post: Oct 30, 2009, 3:57 AM
  5. Replies: 3
    Last Post: Aug 13, 2009, 2:38 PM

Tags for this Thread

Posting Permissions