iis6

How to disable gzip for just one handler .ashx

I am running a website using IIS6 and i wrote a simple generic handler which return smaller images when it receive image url as query string. My problem is that the server is applying gzip to some file types such as .aspx and .ashx. And that made my response image from the handler appear with lower quality because they are compressed. ...

RewriteRules for Symfony 1.4 running IIS6 with IIRF

I need some help translating the following mod_rewrite rules from a .htaccess file to IIRF (iirf.codeplex.com) format: RewriteEngine On # uncomment the following line, if you are having trouble # getting no_script_name to work RewriteBase / # we skip all files with .something RewriteCond %{REQUEST_URI} \..+$ RewriteCond ...

IIS6 with IE8 not loading ASP.NET MVC site properly

This is odd, and I hope I explain it correctly. When I debug locally with VS2008, IE8 looks like FF and Chrome (minus the obvious). It works well, and I'm happy. When I use IE8 with our IIS6 box (Win2003) or Cassini, buttons aren't aligned, javascript errors occur, and some other CSS anomolies occur: Table cells missing colored bor...

Recycle IIS 6 AppPool set unhealthy flag

In an ISAPI Extention there is a way to programmatically flag an IIS AppPool as unhealthy, which means that it will be recycled on next access. (e.g. pecb->ServerSupportFunction(pecb->ConnID,HSE_REQ_REPORT_UNHEALTHY,UNHEALTHY,NULL,NULL); Is there any way to do the same using a .Net HttpModule? There is a HttpRuntime.UnloadAppDomain(), b...

Problems posting via HTTPS from an IIS process (WCF & WF)

I have some code that wraps the PayflowPro .NET API. It essentially posts to a HTTPS address (a payment gateway) from C#. I can run this code locally and it works nicely. I can run it in my MSUnit tests and it works, and I can run it from a console application on my test environment and it also works. I have a workflow hosted in IIS ...

WCF gets Access denied when the consumer try invoke a WCF service calls hosted on Virtual Machine

Problem System.ServiceModel.Security.SecurityAccessDeniedException : Access is denied. Relevant Stack lines (reduced) Server stack trace: at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter) Exception rethrown a...

IIS6 Cache - how to save cache state for the maximum possible time

Hello, I'm facing some performance problems with IIS6, and so I want to store things in cache for the maximum possible time so that when new requests arrive the content is already available in cache. Can anyone give me a hint how can I do this? ...

IIS keep cache for the longest possible time

Is the any option so I can specify the time that objects remain in cache? I'm facing performance issues since after some minutes of idle the responses to requests take a while to process. I believe this is due to the cache being cleaned. ...

PHP5.3 hangs IIS6 on windows2003 64bit

I am setting up php 64bit on IIS6 (windows 2k3 ). The need is I want my existing website(classic asp) to include a wordpress blog (mu) with friendly url. So want to install it as a subdirectory to the IIS website. I have single IP allocated. Could not get the 32 bit php environment working as per IISADMIN Upon setting up for 64bit php...

php glob() on another directory on Server 2003 (IIS 6)

Always returns an empty array despite giving the IUSR_ "List Folder Contents" permission (and "Read" and "Read & Execute" permissons) on the folder being 'globbed'. glob() on a child directory (within the directory I gave the permissions too) works fine. glob() also works on a specific file (which inherited the permissons) in the afore m...

'safe handle has been closed' when trying to encrypt web.config connectionStrings section

I would like know th reason behind this error: Environment: Windows server 2003 The command I am using is: aspnet_regiis -pef "connectionStrings" "D:\Learn\ResetWebApp\ResetWebApp" The error I get is: Encrypting configuration section... An error occurred executing the configuration section handler for connectionStrings. Failed to en...

Using DirectoryEntry to Enumerate IIS Configuration Data, Getting COMException

Hi All! I'm attempting to manage a set of remote IIS 6 server programmatically, but am running into a wall. My client is Windows 7, and I have Domain Admin rights. The relevant code is as follows: public void Run() { DirectoryEntry W3SVC = new DirectoryEntry("IIS://server/w3svc"); foreach (DirectoryEntry site in W3SVC.Children) ...

Sql Windows Authentication Popup

Hi All, First of all i should say when i used IIS 6.0 and i escaped windows authentication popup, i gave 401 error and i redirected weblogin page. Now i use IIS 7 with similar system but i can't get windows authentication popup, so directly go weblogin page. What is the difference between IIS 6 and IIS 7, why cant i get windows authent...

WordPress 3.0.1 Install on MS IIS v6 Web Server

Hi, Have just installed WordPress 3.0.1 running on MS IIS 6 Windows Server that I developed from my Mac OS X platform. Pls note that my WordPress setup is under the following directory sructure: c:\inetpub\wwwroot\MYSITE The problem here is though, with the site up and running, it can't seem to find any of my pages like "About Us" ev...

Html.ActionLink() != Html.BeginForm() for URL prefix

Hi all! This is my setup: IIS6 on Windows Server 2003 iirf URL rewriter mapped .mvc extension to handle MVC pages (unchecked verify that file exists) no jolly catch-all handler IIRF rewrites with the following rule (there is more, but it all boils down to this one, as far as MVC is concerned): RewriteRule /(.*) /mvc.mvc/$1 [I,L] ...

Prevent IIS from flushing cache

I'm trying to get IIS not to flush cached data, so that the loading of the pages after a period without requests can be faster. SO far I've tried this, but with any success: define an infinite time for the "Object Cache TTL" property; unchecked on IIS (version 6.0) the option "Recycle worker processes"; unchecked on IIS the option "Shu...

How to set permissions on IIS6.0 virtual directory?

How to set permissions on IIS6.0 virtual directory like write/read etc by C# code and script (By command line)? ...

Problem using WIF with IIS6

We have a problem using the SessionAuthenticationModule on IIS 6, when trying to access the application, the following exception occures: The data protection operation was unsuccessful. This may have been caused by not having the user profile loaded for the current thread's user context, which may be the case when the thread is imper...

ASP.NET session issues on a production server

This is a pretty vague question as I've had no luck reproducing my issues outside of our production web server and am unsure if my two issues are even related. My application server is running Windows Server 2003 and is public-facing. The ASP.NET web application runs in .NET 3.5 and uses a (private) SQL Server (2008) on the LAN. The ser...

What is wrong here? In Vs2010 it works but on IIS6 (MS server 2003) it dont

The exception: Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object refe...