application-pool

Shared variable across applications within the same AppPool?

二次信任 提交于 2019-12-20 02:58:07
问题 I'm using Asp.net FW 4.6. I have two applications under the same application pool that needs to read (constatntly) a predefined value which is object to change. Static variables can't be used beucase differnt apps (even under same app pool) - won't be shared. DB/File/Server are known options. But : Question : Is there any code that I can write that can store in mem value which will be accessible through multiple applications which is under the same App Pool ? Something like : MyAppPool App1 -

Does recycling the IIS7 application pool kill any currently executing requests?

房东的猫 提交于 2019-12-19 21:29:06
问题 Does recycling the IIS7 application pool kill any currently executing requests? Or does it wait for all requests to complete (like a drain-stop)? I don't want the recycling rules to cause intermittent errors from my WCF sites. Thanks 回答1: No. By default, the WWW service establishes an overlapped recycle, in which the worker process that is to be terminated is kept running until after a new worker process is started. This is from the Documentation for IIS6 and I am sure it applies for IIS7. If

application compiles every 15 minutes

十年热恋 提交于 2019-12-18 21:52:33
问题 I am using ASP.Net4 MVC2 for my application. The first person using the application usually experiences a long wait before the application responds. After that the application is pretty responsive. If the application is idle for 15 minutes, the same person or the next person using the application will experience long wait again. It looks like the application compiles after being idle for 15 minutes. Can someone tell me where I should look to trouble shoot the problem? Thanks. 回答1: It is

How do I programmatically find why Application_End() is invoked?

谁说我不能喝 提交于 2019-12-18 15:37:29
问题 Application_End() is invoked when my application pool is stopped which can happen for a number of reasons, including automatic pool recycle or changes in the folder from which the application is served. The call stack will typically looks like this: my Application_End(Object sender, EventArgs e) at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) at System

Why do IIS application pools need to be recycled?

三世轮回 提交于 2019-12-18 14:26:10
问题 Application pools in IIS are recycled very frequently and I can't figure out why. I remember reading about a possible issue in IIS6 that meant you were forced to recycle but a quick search now turns up empty. On IIS6 or 7 you can turn off the idle time, duration and specific time recycle options so no problems there. So why does every .net site recycle the application pool? If a site didn't have any memory leaks could you set up a site that never needed to recycle? Also failing this, what

RSACryptoServiceProvider CryptographicException System Cannot Find the File Specified under ASP.NET

旧城冷巷雨未停 提交于 2019-12-18 12:16:57
问题 I have an application which is making use of the RSACryptoServiceProvider to decrypt some data using a known private key (stored in a variable). When the IIS Application Pool is configured to use Network Service, everything runs fine. However, when we configure the IIS Application Pool to run the code under a different Identity, we get the following: System.Security.Cryptography.CryptographicException: The system cannot find the file specified. at System.Security.Cryptography.Utils

Applicationhost.config not showing changes

孤人 提交于 2019-12-17 20:24:00
问题 We have a webserver hosted in Microsoft Azure. It's a Windows Server 2008 R2 Datacenter edition, 64 bit. For a website hosted on this machine, I need to make changes to the applicationhost.config file. However, changes I made to IIS recently are not shown in the config. I've added a new application pool and added this specific website to that application pool. I restarted the website, the 'Date Modified' of the file is updated, but the application pool is not present. Right now I'm editing

“Entry has already been added” - Two Separate App Pools

☆樱花仙子☆ 提交于 2019-12-17 19:42:58
问题 I am creating a test version of an existing production site. A virtual web service application exists inside the site - and the two web configs have the same connection string. There are no "clear" tags in the production web configs and the site and the web service co-exist merrily on two separate app pools. On the test site however, every time I browse to the webservice URL I receive the Configuration Error "The entry 'ConnectionString' has already been added." The test site and

IIS Application pool PID

蹲街弑〆低调 提交于 2019-12-17 10:24:09
问题 is anyone familiar with a way to get the Application pool that is associated with a process ID ? I am using Win32_Process to query the W3WP services and return the PID now I am trying to get the app pool associated with it. 回答1: If you are just using command line to figure it out ad-hoc you can do this too: The script is already placed in systemroot\system32 on Windows Server 2003 so simply go to your Command Prompt and type in iisapp.vbs (the .vbs is optional) and you'll have an instant list

ASP.NET restarts when a folder is created, renamed or deleted

隐身守侯 提交于 2019-12-17 09:31:36
问题 UPDATE -- process to replicate issue: 1) Create a website project at c:\projects\restart-demo 2) Add default web.config and a dummy aspx page test.aspx 3) Map IIS to point to the root folder c:\projects\restart-demo 4) Monitor application restarts using perfmon, health monitoring, tracking in global.asax Application_End, etc. 5) Request page in browser http://localhost/test.aspx application start 6) Create new folder c:\projects\restart-demo\asdf application end 7) Request page in browser