Re: .Net applet security question
- From: genc ymeri <genc_ymeri@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 17 May 2007 14:22:01 -0700
IsolatedStorage! it should be the solutions. I tried but I get this error
below while
the control works when dropped on a winform
Thanks a lot. Hope I can get around.....
Genc Ymeri
Sr. Software Engineer
Chantilly, VA
---------------------------
---------------------------
Request for the permission of type
'System.Security.Permissions.IsolatedStorageFilePermission, mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
at System.Security.CodeAccessSecurityEngine.Check(Object demand,
StackCrawlMark& stackMark, Boolean isPermSet)
at System.Security.CodeAccessPermission.Demand()
at
System.IO.IsolatedStorage.IsolatedStorage.DemandPermission(IsolatedStorageScope scope)
at
System.IO.IsolatedStorage.IsolatedStorage._InitStore(IsolatedStorageScope
scope, Evidence domainEv, Type domainEvidenceType, Evidence assemEv, Type
assemblyEvidenceType, Evidence appEv, Type appEvidenceType)
at
System.IO.IsolatedStorage.IsolatedStorage.InitStore(IsolatedStorageScope
scope, Type domainEvidenceType, Type assemblyEvidenceType)
at
System.IO.IsolatedStorage.IsolatedStorageFile.GetStore(IsolatedStorageScope
scope, Type domainEvidenceType, Type assemblyEvidenceType)
at testApplet.UserControl1.creatingFilesInIsolatedStorage()
at testApplet.UserControl1.btnCreateFilesIS_Click(Object sender,
EventArgs e)
---------------------------
OK
---------------------------
--
"Dominick Baier" wrote:
You don't have direct access by default to File IO - but you can use IsolatedStorage.
(which is like a virtual file system). Have a look at IsolatedStorageFileStream.
-----
Dominick Baier (http://www.leastprivilege.com)
Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)
Hi,
I'm planning to build a dotnet applet which will download a file from
a
webservice, save it in the local disk, editing and then upload it back
in the
server side.
I was doing a test to access local directories and files from a .Net
applet but I couldn't.
How can I resolve this ?
- Follow-Ups:
- Re: .Net applet security question
- From: Dominick Baier
- Re: .Net applet security question
- References:
- Re: .Net applet security question
- From: Dominick Baier
- Re: .Net applet security question
- Prev by Date: Re: .Net applet security question
- Next by Date: Re: .Net applet security question
- Previous by thread: Re: .Net applet security question
- Next by thread: Re: .Net applet security question
- Index(es):
Relevant Pages
|
|