Re: .Net applet security question



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 ?




.



Relevant Pages

  • IsolatedStorage with impersonation in ASP.NET problem
    ... web.config, IsolatedStorage works fine. ... But when I try to set impersonation to true via the web.config, ... scope) +0 ... scope, Type domainEvidenceType, Type assemblyEvidenceType) +66 ...
    (microsoft.public.dotnet.framework.aspnet)
  • IsolatedStorage with impersonation in ASP.NET problem
    ... web.config, IsolatedStorage works fine. ... But when I try to set impersonation to true via the web.config, ... scope) +0 ... scope, Type domainEvidenceType, Type assemblyEvidenceType) +66 ...
    (microsoft.public.dotnet.security)
  • IsolatedStorage with impersonation in ASP.NET problem
    ... web.config, IsolatedStorage works fine. ... But when I try to set impersonation to true via the web.config, ... scope) +0 ... scope, Type domainEvidenceType, Type assemblyEvidenceType) +66 ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Exception using Isolated Storage in ASP.NET on a hosted server
    ... I'm getting the following exception on the hosted environment: ... scope) at ... scope, Type domainEvidenceType, Type assemblyEvidenceType) at ...
    (microsoft.public.dotnet.framework)
  • Re: .Net applet security question
    ... that probably related to the constructor parameter you use - LocalIntranet requires isolation by user. ... Dominick Baier ... ope scope, Evidence domainEv, Type domainEvidenceType, Evidence ...
    (microsoft.public.dotnet.framework.aspnet.security)