Re: .Net applet security question
- From: Dominick Baier <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 17 May 2007 21:37:57 +0000 (UTC)
that probably related to the constructor parameter you use - LocalIntranet requires isolation by user.
You have to play around with that.
-----
Dominick Baier (http://www.leastprivilege.com)
Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)
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(IsolatedSto
rageScope scope)
at
System.IO.IsolatedStorage.IsolatedStorage._InitStore(IsolatedStorageSc
ope scope, Evidence domainEv, Type domainEvidenceType, Evidence
assemEv, Type assemblyEvidenceType, Evidence appEv, Type
appEvidenceType)
at
System.IO.IsolatedStorage.IsolatedStorage.InitStore(IsolatedStorageSco
pe scope, Type domainEvidenceType, Type assemblyEvidenceType)
at
System.IO.IsolatedStorage.IsolatedStorageFile.GetStore(IsolatedStorage
Scope scope, Type domainEvidenceType, Type assemblyEvidenceType)
at testApplet.UserControl1.creatingFilesInIsolatedStorage()
at testApplet.UserControl1.btnCreateFilesIS_Click(Object sender,
EventArgs e)
---------------------------
OK
---------------------------
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 ?
.
- References:
- Re: .Net applet security question
- From: genc ymeri
- Re: .Net applet security question
- Prev by Date: Re: .Net applet security question
- Next by Date: Re: Stream pdf to browser
- Previous by thread: Re: .Net applet security question
- Index(es):
Relevant Pages
|
|