IIS 7 worker process - iis-7

I have iis 7.0 which each app pool running one website. however, some worker processes hve username: network service which i have no idea what apps they are running.
Is it possible to find them out ?
Thanks.

You can look at each website / application in IIS Manager and check what application pool they are using.
Foreach web site and applicaiton:
Select the site / application in IIS manager and select "Basic Settings". The name of the AppPool should be in the properties dialog that is displayed.
Would that be good enough?

Related

Asp.net process.start own issues

I have a asp.net application where I am using running process.start. it runs on my pc but not the server.
I have read that I needed to give my iis worker permission to run interactivity with the desktop however this still is not working.on my server the asp.net app is under its own application pool. How do I give my application pool access to run the process.start?
Give permission for ASP.NET worker process account (\ASPNET) to interact with desktop or allow ASP.NET worker process to run in SYSTEM account.
To know how to allow worker process to run in SYSTEM account and to know the default permissions of ASPNET account, check this article
INFO: Process and Request Identity in ASP.NET (http://support.microsoft.com/default.aspx?scid=kb;en-us;317012)
2. Enable IIS Admin Service to interact with desktop
To configure this, follow this steps.
a. Open Control Panel and follow these steps:
For Windows NT: click Services.
For Windows 2000, Windows XP, and .NET Server: click Administrative Tools, and then click Services.
b. Double-click IIS Admin Service.
c. On the Log On tab, select the Allow Service to Interact with Desktop check box.
Note: This article assumes that the IIS Admin Service runs as a local system.
d. Stop and restart the IIS Admin Service.
Then you need to change you Application Pool Identity to Local Service. Start and Stop Application Pool and Website.
Then this will work

Is it possible to recycle IIS EXPRESS application pools without losing user sessions?

I have a similar problem than Is it possible to recycle IIS application pools without losing user sessions?
I have a web site in dev using IIS Express.
My session is in a database.
I search how to recycle the app pool of my site without killing the session.
Its easy on IIS but in IIS Express, I dont know how to recycle without restarting by Visual studio. But when I do that, the session is killed.
You can stop the IIS Express server by right-clicking the icon in the system tray. Relaunching the page from VS will restart it, but IIS Express wasn't meant for anything other than quick page testing and you don't have that level of control with it.
You can configure your application to NOT use IIS Express and instead use the full IIS in the project's properties. This way, you'll have the full range of features available to you.

About IIS APPPOOL

I have to debug a WCF hosted in local IIS. Each time I have to attach two processes "w3wp.exe".
One ID is 7624, the other is 8372.
Users: one is "IIS APPPOOL\ASP.NET V4.0 Integrated[administrator]
the other one is "IIS APOOL DefaultAppPool[administrator]
Questions:
What they are? (google search but bo clue)
Can I just attach one process rather all?
Thanks
Updated:
See IIS image:
Just check in your IIS Management Console the Application Pool in which your site resides, then attach to the proper one. Probably, as you're using WCF, you're running under .NET 4, so under the first process you linked.
Application pool is the set of apps that run under same worker process.
Important thing in practice is that one app pool can serve only applications with same version of .NET (version of .NET CLR - to be precise). It is also good to remember that applications from the same app pool will "share" recycling of worker process.
So, you should look up at the IIS in which app pool your service is running and debug only process associated with this app pool.
They are Application Pool Identities. This is the newer (and securer) way of assigning priveleges to websites. Essentially a site runs on its own application pool, so you assign rights to files based on that pool.
See: http://www.iis.net/learn/manage/configuring-security/application-pool-identities

Run Many ApplicationPools in one WebApplication on IIS 7+

It's possible to run more that one aplication pool in the same WebApplication on IIS 7 or 7.5? I have one web application on asp.net 4.0 that use EF 4.0 and a large set of Entities. Then the First query Its to slow and when the application pool fails, the users need to login again, but the pool was restarted and the first query Its too slow, this cause any can't login for a time (about the time that the old pool is finished and the new pool It's ready).
If I can use multiple applications pools for the same site, on the same port 8080 for example, thats solve my problem. The only way I found was to create a server farm. However, if I understand, each servers would be a virtual or real machine?
You can have multiple applications and associated pools running under one site directory root. In IIS 7 manager, simply right-click on the folder in question and select "Create Application" in the resulting dialog set the new application pool and the physical path. This will mean that you have to segregate your code into separate projects/modules (web applications or web application projects in vs) but they will all share the same site.

which account IIS uses to run asp.net project

Any idea which account IIS uses to run asp.net project. My project or code access file which is in C:\path\path directory. When I test the project in my machine it runs fine (well I am running in built server; Cassini) but when I test the same project in development server where it uses IIS 6.0 ... my code throws a exception "Access to the file C:\path\path is denied".
Not sure how can I solve this? any idea?
Thanks a lot.
Rahul
Find the identity used by the application pool your web application runs under. Here are steps for IIS 6:
Click Start | Run...
Type inetmgr, click OK
In the left-hand pane of IIS Manager, browse to your web application, e.g., My Server | Web Sites | Default Web Site | My Web App
Right-click on the web application, click Properties
In the general tab, note name of the the selected Application pool. Click Cancel
Go back to the left-hand pane of IIS Manager. Browse to My Server | Application Pools | My Application Pool, where My Application Pool is the name you found in step 5, above.
Right-click on My Application Pool, click Properties
Click on the Identity tab. This shows the identity that your web application is running under.
Use the IIS Manager to verify which Application Pool that is running the site you want to investigate.
If you look at the properties for the Application Pool, there is a tab named Identity in which you can determine what user is set to run the process.
You can also use the Task Manager to see which user is running the process named w3wp.exe, which is a process running an instance of IIS (or an Application Pool, in fact).

Resources