473,322 Members | 1,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Can the App pool User name be retrieved with a web app.

I am writing an intranet web application and would like to retrieve the user name of the app. pool. (Not the user name of the user hitting the web app).

Is this possible? And if so could you post the code

I am using .net 1.x with c#.

Thanks in advance, Doug
Feb 4 '08 #1
3 1313
myth0s
32
I am writing an intranet web application and would like to retrieve the user name of the app. pool. (Not the user name of the user hitting the web app).

Is this possible? And if so could you post the code

I am using .net 1.x with c#.

Thanks in advance, Doug
"WindowsIdentity.GetCurrent().Name" will give you the name of the security account (AKA app. pool identity) used to run the application pool.
Feb 4 '08 #2
"WindowsIdentity.GetCurrent().Name" will give you the name of the security account (AKA app. pool identity) used to run the application pool.
It appears that this is for windows forms and not Web Apps. and that this is for .NetFramework 3.5. If that is correct...do you know of anything that will work with a web App and in .NetFrameWork 1.x?

I am building a wrapper that will be attached to both Classic asp as well as .Net 1.x and .Net 2.0 web applications.

Thank you for your quick reply....Doug
Feb 4 '08 #3
myth0s
32
It appears that this is for windows forms and not Web Apps. and that this is for .NetFramework 3.5. If that is correct...do you know of anything that will work with a web App and in .NetFrameWork 1.x?

I am building a wrapper that will be attached to both Classic asp as well as .Net 1.x and .Net 2.0 web applications.

Thank you for your quick reply....Doug
Woops, sorry.

You can try the server variables (http://msdn2.microsoft.com/en-us/library/ms524602.aspx). I'm not sure about the compatibility though. If this doesn't works for you, I fear that I won't be able to help you :(

HTH
Feb 4 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Konstantinos Michas | last post by:
Hello Experts, I make a connection with .Net Sqlclient Data Provider to my server and I adjust the min pool size = 0, but when I check the sysprocesses I see that 2 connections have been made....
0
by: Freebase | last post by:
Something changed recently on our W2K SP4 machine when we installed INTERSOLV ODBC software... the following script just opens a connection to an MS-Access DB, gets a record then tears down the...
2
by: Ronald | last post by:
I just started with dotnetnuke, and with a wrong login (wrong password on a clean install i can crash the application pool from IIS. (when i login with the right username/password information the...
6
by: M Craig | last post by:
I'm trying to write a custom installation engine to plug into our existing build system. Some things I'm trying to do are, Create/Delete/Start/Stop Application Pools, Web Sites, and Virtual...
0
by: roni schuetz | last post by:
since a few day's i'm running around the problem that I stocked with a change i need to do. hopefully somebody here can give me a tipp which will be usefull to solve my problem. I'm using a...
5
by: mackenzie | last post by:
Hello, I am looking for a little bit of help. I am trying to create a dynamically allocated object which contains one or more objects of type boost::pool<>. I get a compiler error when an object...
6
by: Dylan Nicholson | last post by:
Running as an administrator, I can retrieve the account password stored by IIS for any application pool (using the WAMUserPass property). But, unsurprisingly, an ASP.NET application running inside...
5
markrawlingson
by: markrawlingson | last post by:
Hey guys, Having a bit of a complicated issue here so please bare with me while I explain. I'm also not a system admin and don't know a whole lot about IIS, so i apologize in advance. I...
1
by: johnyjj2 | last post by:
Hello! I've got web application created for MSSQL and IIS. There are two directories in this application - Scripts and WebSite. In Script there is file CreateDb.sql. I need to run it so that it...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.