iis-6

Check the status of an application pool (IIS 6) with C#

我与影子孤独终老i 提交于 2019-12-01 08:11:02
问题 How can I check the status of an IIS6 application pool with C# ? For example, I want to know if it is running or not ! Thank's in advance for your help ! 回答1: http://msdn.microsoft.com/en-us/library/ms524962.aspx You can do this checking the AppPoolState Property: protected void status() { string appPoolName = "dev.somesite.com"; string appPoolPath = @"IIS://" + System.Environment.MachineName + "/W3SVC/AppPools/" + appPoolName; int intStatus = 0; try { DirectoryEntry w3svc = new

Start/Stop App Pool IIS6.0 with Powershell or command line

南笙酒味 提交于 2019-12-01 05:11:30
I'm using IIS 6.0 and looking for a way to stop/start the app pool. I know there is a stop-appPool for powershell in 7.0 but using 6.0. :-( So does anyone have a powershell script or another command line exe that will stop/start the app pool? Thanks. Ok here it is, I just add a switch to stop the app pool else it starts since no harm in starting an app pool that is already started: param([string]$appPoolName, [switch]$stop) $appPool = get-wmiobject -namespace "root\MicrosoftIISv2" -class "IIsApplicationPool" | where-object {$_.Name -eq "W3SVC/AppPools/$appPoolName"} if($appPool) { if($stop) {

My ASP.NET App_code changes not getting picked up (or are cached??)

佐手、 提交于 2019-12-01 04:05:11
Help!! I have a single .cs file under a (root level) App_Code directory for the purpose of retrieving the correct template for the requested URL (it is linked to our own Content Management database). Initially, it was working fine - I could make changes to it and they were picked up by the web application OK. Then something happened (no idea what) and now whatever changes I make, they are not recognised. Even if I delete the entire App_Code directory, it makes no difference - I still seem to be picking up an earlier (cached??) version of what was in the App_Code directory. Code in the .cs file

Start/Stop App Pool IIS6.0 with Powershell or command line

拜拜、爱过 提交于 2019-12-01 02:16:43
问题 I'm using IIS 6.0 and looking for a way to stop/start the app pool. I know there is a stop-appPool for powershell in 7.0 but using 6.0. :-( So does anyone have a powershell script or another command line exe that will stop/start the app pool? Thanks. 回答1: Ok here it is, I just add a switch to stop the app pool else it starts since no harm in starting an app pool that is already started: param([string]$appPoolName, [switch]$stop) $appPool = get-wmiobject -namespace "root\MicrosoftIISv2" -class

My ASP.NET App_code changes not getting picked up (or are cached??)

狂风中的少年 提交于 2019-12-01 01:44:28
问题 Help!! I have a single .cs file under a (root level) App_Code directory for the purpose of retrieving the correct template for the requested URL (it is linked to our own Content Management database). Initially, it was working fine - I could make changes to it and they were picked up by the web application OK. Then something happened (no idea what) and now whatever changes I make, they are not recognised. Even if I delete the entire App_Code directory, it makes no difference - I still seem to

Change Default Locale in IIS 6.0

别说谁变了你拦得住时间么 提交于 2019-12-01 01:12:14
问题 I've got a hosted VPS hosted by a UK hosting company that for some reason is set to US settings. In fact, until recently, the regional settings were 'English - United States'. I've corrected the regional settings, but my application is still working with the wrong date format. See: http://www.albaassoc.com/events/listevents.aspx The default dates are supposed to be the current date to the date + 3 months, but as you can see, the dd and MM fields are swapped. Note: the AJAX calendar extender

Worker process recycles because it reached its virtual memory limit

不羁的心 提交于 2019-12-01 00:18:29
问题 We host a rather large (self written) ASP.NET website for our customers. It consists of a web service, a web site and a image serving web site, all three in their own virtual directory. The three virtual directories are together in one application pool. The pool has both memory limits (maximum virtual memory and maximum used memory) set to 500 megabytes. However, the application pool suffers many recycles, even with only one user at a time. The eventlog message says: A worker process with

How can I find the average number of concurrent users for IIS to simulate during a load/performance test?

一世执手 提交于 2019-11-30 20:54:24
I'm using JMeter for load testing. I'm going through and exercise of finding the max number of concurrent threads (users) that our webserver can handle by simply increasing the # of threads in my distributed JMeter test case, and firing off the test. Then -- it struck me, that while the MAX number may be useful, the REAL number of users that my website actually handles on average is the number I need to make the test fruitful. Here are a few pieces of information about our setup: This is a mixed .NET/Classic ASP site. Upon login, a browser session (with timeout) is created in both for the

IIS 6 ignores Web.config authorization settings

﹥>﹥吖頭↗ 提交于 2019-11-30 16:24:40
Context: IIS 6 on Windows 2003 Server ASP.NET 3.5 sp1 C# Web Application running from a virtual directory There are a few files that I would like not to serve. For example, there's a hibernate.cfg.xml in the root directory that should not be accessible. There are also log files in a logs directory. On the local development server (Visual Studio 2008) The NHibernate config file can be protected in a couple of ways through Web.config: <location path="hibernate.cfg.xml"> <system.web> <authorization> <deny users="?"/> <deny users="*"/> </authorization> </system.web> </location> OR <httpHandlers> .

PHP 5.3 not recognizing Native Client to connect to MS SQL

依然范特西╮ 提交于 2019-11-30 16:08:40
We have a server running on Windows Server 2003 32 Bit IIS6.0 (We have some Classic ASP apps that uses 32bit components so we can't upgrade to 2008 64bit) Our DB Server is on a separate computer running Windows Server 2008 64 Bit MS SQL 2008 R2 64 Bit I have installed the following version of PHP PHP 5.3.10 Build Date Feb 2 2012 20:26:31 Compiler MSVC9 (Visual C++ 2008) PHP works fine on static pages, but the issue is when trying to connect to MSSQL. We need to connect to MSSQL due to a lot of legacy code in ASP and an existing MSSQL DB. I have SQL Native Client 2008 installed, I've installed