Re: Question about strong-name dlls



> Firstly, thank you for all your answers, I really appreciate :-)

You're very welcome, and thank you! :)

The user doesn't have "asp" in its name. You have to find it in Task Manager
or IIS Admin. Depending on the OS, Task Manager will show one of 2 different
process names (not user names, but process names - the user name is the
account under which the process runs): XP = "aspnet_wp.exe", Windows Server
2003 = "w3wp.exe". You can look in Task Manager for the name of the ASP.Net
user account by seeing what user account the process is running under. The
user account (not the process) will need the proper permissions. Entiende?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Sometimes you eat the elephant.
Sometimes the elephant eats you.

"Diego F." <diegofrNO@xxxxxxxx> wrote in message
news:OLbzKCWXFHA.2348@xxxxxxxxxxxxxxxxxxxxxxx
> Firstly, thank you for all your answers, I really appreciate :-)
>
> - When I tell you that runs from my computer, I mean running connected to
> the server project, not in a local project. Even more, a few days ago my
> computer gave the same error as the other computers.
>
> - I log as administrator and when I want to set the permissions to the
> project folder, there is no user with asp in its name. I know it's
> strange, but it's what happens.
>
> --
> Regards,
>
> Diego F.
>
>
> "Kevin Spencer" <kevin@xxxxxxxxxxxxxxxxxxxxxxxxxx> escribió en el mensaje
> news:ejagv1VXFHA.228@xxxxxxxxxxxxxxxxxxxxxxx
>> Hi Diego,
>>
>>> - why does it work from my computer?
>>
>> Now you're making me repeat myself. I told you that Windows Server 2003
>> has much tighter security than XP, and that the ASP.Net user account and
>> permissions are different as well.
>>
>>> - how can I activate asp.net user in Windows 2003?
>>
>> You don't activate it. You grant it the permissions it needs. First you
>> have to find out what it is. Second, you have to be an Administrator on
>> the server machine. Third, you set the permissions it needs in order to
>> do what it needs to do. Assuming that your network has a network
>> administrator, why not ask him/her to do it for you?
>>
>> --
>> HTH,
>>
>> Kevin Spencer
>> Microsoft MVP
>> .Net Developer
>> Sometimes you eat the elephant.
>> Sometimes the elephant eats you.
>>
>> "Diego F." <diegofrNO@xxxxxxxx> wrote in message
>> news:%23UVrEpVXFHA.4032@xxxxxxxxxxxxxxxxxxxxxxx
>>> Two questions the:
>>> - why does it work from my computer?
>>> - how can I activate asp.net user in Windows 2003?
>>>
>>> --
>>> Regards,
>>>
>>> Diego F.
>>>
>>> "Kevin Spencer" <kevin@xxxxxxxxxxxxxxxxxxxxxxxxxx> escribió en el
>>> mensaje news:uUf49TVXFHA.3620@xxxxxxxxxxxxxxxxxxxxxxx
>>>> >I didn't found that user. Anyway, I'll show you exactly what is the
>>>> >problem. I'm making some tests with simple libraries.
>>>>
>>>> Well, Diego, you're going to have to found that user if you want to
>>>> solve your problem, because that user doesn't have the permission to
>>>> perform what you want on that machine. On a Windows 2003 server, the
>>>> ASP.Net process is named w3wp.exe. I believe it runs by default under
>>>> the Network_Service account on Windows 2003 Server.
>>>>
>>>> --
>>>> HTH,
>>>>
>>>> Kevin Spencer
>>>> Microsoft MVP
>>>> .Net Developer
>>>> Sometimes you eat the elephant.
>>>> Sometimes the elephant eats you.
>>>>
>>>> "Diego F." <diegofrNO@xxxxxxxx> wrote in message
>>>> news:%23Xyqo$UXFHA.796@xxxxxxxxxxxxxxxxxxxxxxx
>>>>>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.
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>


.



Relevant Pages

  • Re: OLEDB database connection from ASP.NET
    ... ASP.NET applications run under the user account ASPNET by default. ... permissions to your database. ... > the database in ASP. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: RWW - Local Policy connect to desktop issue
    ... it seems as if it is infact something with that user account. ... permissions as well as the replace permissions. ... only difference I see is in the logon script. ... firewall properties and enabled the Remote Desktop service. ...
    (microsoft.public.windows.server.sbs)
  • Re: SHAREPOINT AND RWW ISSUES
    ... Is there a way to go to each domain user account, ... web designer group, or reset their permissions. ... is reader, and all individual users have been deleted. ... Everything is running on this one box (EXCHANGE, COMPANYWEB, ...
    (microsoft.public.windows.server.sbs)
  • Re: PLEASE help me I D this...
    ... my workgroup has been hacked/infected. ... >workgroup was made a part of a domain and I noticed user group "NT ... >for one admin user account, which I was using to correct the problem. ... >action (restoring permissions to shares and enabling user accounts). ...
    (microsoft.public.inetserver.iis.security)
  • Re: How do I add a network user to the security permissions on a shared XP folder?
    ... can't figure out what way to setup the permissions. ... user account on the fileserver computer with the same name as my own ... allowed them to list folder contents only. ... Next I allowed the NETWORK ...
    (microsoft.public.windows.server.networking)