Re: .Net applet security question



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 ?



.



Relevant Pages

  • Re: Allowable voltages on Scope
    ... Placing a probe tip near a transformer or inductor will often provide ... adequate signals for the scope to display. ... an isolation transformer is utilized to troubleshoot/test ...
    (rec.crafts.metalworking)
  • Re: Allowable voltages on Scope
    ... measuring procedures. ... Placing a probe tip near a transformer or inductor will often provide ... adequate signals for the scope to display. ... an isolation transformer is utilized to troubleshoot/test ...
    (rec.crafts.metalworking)
  • Re: Differential probes
    ... scope and all four channels plus the trigger inputs are isolated. ... at millivolt sensitivity. ... That has nothing to do with differential amp performance. ... isolation. ...
    (sci.electronics.design)
  • Re: .Net applet security question
    ... IsolatedStorage! ... System.IO.IsolatedStorage.IsolatedStorage.DemandPermission(IsolatedStorageScope scope) ... scope, Evidence domainEv, Type domainEvidenceType, Evidence assemEv, Type ... scope, Type domainEvidenceType, Type assemblyEvidenceType) ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Differential probes
    ... scope and all four channels plus the trigger inputs are isolated. ... at millivolt sensitivity. ... It'll probably work ok on a low impedance circuit, but try to measure a diff ... isolation. ...
    (sci.electronics.design)