Re: Question about strong-name dlls
- From: "Diego F." <diegofrNO@xxxxxxxx>
- Date: Fri, 20 May 2005 17:21:51 +0200
I didn't found that user. Anyway, I'll show you exactly what is the problem.
I'm making some tests with simple libraries.
I create a new class library with just one class with this method
public void CreateFile(string path)
{
System.IO.StreamWriter sw;
sw = System.IO.File.CreateText(path + "\\test.txt");
sw.WriteLine("test");
sw.Close();
}
I compile that library and add the reference in my project, that is hosted
in a Win 2003 server. I call this method and in my computer works, but in
other computer I get the Security Exception: That assembly does not allow
partially trusted callers.
So I see that's a problem I'll meet in any dll. Do you see exactly my
problem? I don't know if that's because I'm using the VS 2005 beta1, but
I'm missing some step.
--
Regards,
Diego F.
"Kevin Spencer" <kevin@xxxxxxxxxxxxxxxxxxxxxxxxxx> escribió en el mensaje
news:%23SVwYqUXFHA.3228@xxxxxxxxxxxxxxxxxxxxxxx
> Hi Diego,
>
> There IS an ASP.Net user. There is no aspnet user. On a Windows 2003
> server, it runs under a different account. Check Task Manager. Also, on a
> Windows 2003 server, security is much tighter.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> Sometimes you eat the elephant.
> Sometimes the elephant eats you.
>
.
- Follow-Ups:
- Re: Question about strong-name dlls
- From: Kevin Spencer
- Re: Question about strong-name dlls
- From: Diego F.
- Re: Question about strong-name dlls
- References:
- Re: Question about strong-name dlls
- From: Diego F.
- Re: Question about strong-name dlls
- From: Kevin Spencer
- Re: Question about strong-name dlls
- From: Diego F.
- Re: Question about strong-name dlls
- From: Kevin Spencer
- Re: Question about strong-name dlls
- Prev by Date: Re: Session Variable
- Next by Date: Re: Session Variable
- Previous by thread: Re: Question about strong-name dlls
- Next by thread: Re: Question about strong-name dlls
- Index(es):
Relevant Pages
|