I'm attempting to use IsolatedStorage from IronPython running the browser,
and I keep running into the following error.  Any idea what I'm doing wrong
or is this functionality currently unsupported?

Best regards,
Dave

MethodAccessException: Security transparent method
System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForSite()
cannot access 
Microsoft.Scripting.Actions.Calls.MethodCandidate+Caller.Call(System.Object[],
Boolean ByRef) using reflection.

<!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>
<script type="text/javascript">
    window.DLR = { path: 'ipy' }
</script>
<script src="ipy/dlr-20100305.js" type="text/javascript">
</script>
</head>
<body>
<script type="text/python">
from System.IO import (FileMode, StreamWriter)
from System.IO.IsolatedStorage import IsolatedStorageFile
with IsolatedStorageFile.GetUserStoreForSite() as store:
    with IsolatedStorageFileStream("test.txt", FileMode.Create, store) as
stream:
        with StreamWriter(stream) as writer:
            writer.WriteLine("Testing from IPy in Browser.")
</script>
</body>
</html>
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to