RE: programatically changing the .net version of virtual directory



Hi Rak,

I think using external command utility to do the work is reasonable because
the ASP.NET version setting in IIS application vdir (or site) is a purely
IIS metabase setting. Also, perform such configuration will definitely
require powerful permission. And since you're going to execute the command
in ASP.NET application, I would suggest you consider using intergrated
windows authentication in IIS, and configure your ASP.NET application to
use windows authentication. And create an Admin-Page which let admin users
to visit. Thus, we can impersonate the client-user and spawn new process to
execute command under the impersonated user...

#How to implement impersonation in an ASP.NET application
http://support.microsoft.com/?id=306158

#How to spawn a process that runs under the context of the impersonated
user in Microsoft ASP.NET pages
http://support.microsoft.com/?id=889251

Hope this helps.

Regards,

Steven Cheng
Microsoft Online Community Support


==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.



Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

.



Relevant Pages

  • Re: anonymous access + impersonation
    ... If i understood your problem exactly, my advice u to impersonate your com+ ... application(or you can modify IIS application protection level). ... ASPNET user and give directory listing rights on that hard drive... ... > apppool user & its password. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: Identity crisis on a WS
    ... I switched to High the isolation level in the IIS Admin for this specific app and in the component manager I set the identity to Administrator. ... I Tryied with Identity and impersonate on the Impersonate combo. ... I get Access Denied with the AT command and with the DNSCMD in the COM+ component. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: HDD driver low memory condition
    ... the newsgroups are staffed weekdays by Microsoft Support professionals to ... be typed in a command prompt. ... To your IIS settings issue, do you have the IIS matabase backup file? ... newsgroups so that they can be resolved in an efficient and timely manner. ...
    (microsoft.public.windows.server.sbs)
  • Re: iis6 w3wp.exe thread count gets high and wp becomes sluggish
    ... objects which do not have the right apartment model and threading ... IIS is a high performance web server ... I have a website that has 6 app pools. ... *** In order for this command to work properly, ...
    (microsoft.public.inetserver.iis)
  • Re: IIS-bug - CGI-applikation terminates when loading standard DLL
    ... Hit refresh and the page will load fine second time round. ... not executed with the CreateProcessAsUserAPI call by IIS anymore. ... Here is a description of how to set the metabase property which control ... If the command is successful, it will tell you it updated the setting, ...
    (microsoft.public.inetserver.iis)