Re: FileIOPermission Erro using referenced dll on shared hosting



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



.