-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: AnupPS
Message 7 in Discussion


Hi,

Mrinal, it is correct that this part is not directly possible.

This has an answer if we go through the Application Domains.

When we call the application using Process.Start(...), we are using the 
application domain as that of the aspnet worker process (ASPNET user).

When you tried to end-task the application, you were not able to do so. Bcoz 
you do not have priviliges over the ASPNET account. I tried the same on my 
machines with 2 different logins. The user with admin rights can terminate the 
process.


Secondly, when we are using Process.Start, it is creating process under the 
callers application domain. So even if you are sending the web-request, you are 
not the actual caller for that application. The ASPNET user is the actual 
caller. 


Well, this is very important for security.

I might confuse you people more if I start explaining difference between 
process and Application domain. Please have a look at the following link:

http://www.gotdotnet.com/team/clr/AppdomainFAQ.aspx

What I can think for the current solution is

Get a reference to the user's default application domain (or whatever domain it 
is). This is the application domain created when the user executes the appln.

Then use this reference and call the ExecuteAssembly method.

How to get this "reference" is a question for me too. 

Hope this clarifies the situation.

Regards,
Anup Shinde.


 


-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to