File operation not permitted. Access to path '' is denied in savedialog.sDialog.OpenFile() RRS feed

  • Question

  • I am using excellite  lib to export excel in silverlight 4, it is working find in windows 7 , the problem here is, the same app export excel is not working in windows 8 IE, it throw an error in sDialog.OpenFile(), but it is working fine in windows 8 chrome.

    File operation not permitted. Access to path '' is denied
    void exportExcel_Click(object sender, RoutedEventArgs e)
        SaveFileDialog sDialog = new SaveFileDialog();
        sDialog.Filter = "Excel Files(*.xls)|*.xls";
        if (sDialog.ShowDialog() == true)
            Workbook workbook = new Workbook();
            Worksheet worksheet = new Worksheet("Friends");
            // write data in worksheet cells
            worksheet.Cells[0, 0] = new Cell("Column1");
            worksheet.Cells[0, 1] = new Cell("Column2");
            worksheet.Cells[0, 2] = new Cell("Column3");
            worksheet.Cells[1, 0] = new Cell("string value");
            worksheet.Cells[1, 1] = new Cell(478574.5, "#,###.00");
            worksheet.Cells[1, 2] = new Cell(4);
            using (var stream = sDialog.OpenFile())

    Windows 8 IE has this limitation or i am doing something wrong?

    Thanks. BalaKrishnan

    Thursday, October 31, 2013 8:43 AM


  • Hi BalaKrishnan,

    Silverlight 4 is not compatible with Windows 8 according to official websites. Silverlight 5 is compatible with Windows 8 desktop in IE 10 and it supports 64-bit mode. As Silverlight 5 is compatible with Windows 8 desktop in Chrome 12+ which supports 32-bit mode and it is similar to Silverlight 4, I guess it is the reason that your application can work well in Win8 Chrome.

    Silverlight 4: Compatible Operating Systems and Browsers

    Silverlight 5: Compatible Operating Systems and Browsers

    If you want to run the application in Win8 IE, I’d like to suggest you to install Silverlight5 from here:

    Get Microsoft Silverlight


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, November 1, 2013 10:43 AM