Re: FileIOPermission Erro using referenced dll on shared hosting
- From: "Nicole Calinoiu" <calinoiu REMOVETHIS AT gmail DOT com>
- Date: Wed, 31 May 2006 14:54:02 -0400
Calling into COM objects requires SecurityPermission\Unmanaged code, which
is not part of the medium trust level grant. It's a "dangerous" permission
that is not granted at any of the ASP.NET trust levels other than full
trust.
<brian@xxxxxxxxxx> wrote in message
news:1149094527.279167.233870@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Ok stupid as the solution is here is what was happing
The code was for an open source wiki called perspective, which I guess
no one has ever used on shared hosting.
In one of the project function libraries the author was for some reason
creating directories using FileSystemObject using the
WindowsScriptingComponent via interop?
So I replaced this with the .net Directory.CreateDiretory and it all
worked.
I guess you cannot use WindowsScriptingComponent , or at least to write
directories, using medium trust.
Thanks for all your suggestions anyway
Brian
.
- References:
- FileIOPermission Erro using referenced dll on shared hosting
- From: brian
- Re: FileIOPermission Erro using referenced dll on shared hosting
- From: Nicole Calinoiu
- Re: FileIOPermission Erro using referenced dll on shared hosting
- From: brian
- FileIOPermission Erro using referenced dll on shared hosting
- Prev by Date: Session management
- Next by Date: Re: Need affiliate web host!
- Previous by thread: Re: FileIOPermission Erro using referenced dll on shared hosting
- Next by thread: Building text box name programically
- Index(es):