Failed to create object Scripting.FileSystemObject with SilverLight 5


  • I have the silverlight app, which uploads a folder selected by client to the server, with all nested files and folders, preserving inner structure.

    To access file system app creates Scripting.FileSystemObject object with AutomationFactory.CreateObject method.

    When app run inside the browser, AutomationFactory.CreateObject("Scripting.FileSystemObject"); raises error "not supported in current context".

    When app run outside of the browser, everything works fine.

    With silverlight 4 there was no such error even if app run inside the browser.

    How can I solve this error with silverlight 5? Is there other way to upload from the browser to the server selected folder with all subfolders and files?

    The app is for corporate intranet. Any browser settings and policies can be applied.

    Thursday, February 02, 2017 10:45 AM

All replies