iis6

Avoiding 401 response for each request using NTLM

HI, We have here an asp.net 3.5 application using NTLM based windows authentication. The system runs on a private network that actually distributed over different geographic places (connected via VPN). We are now trying to optimize the website's performance. Because the way NTLM works, every new request to the IIS is composed with 3 di...

Restart IIS / Recycle App Pool after X num of errors?

My company is plagued by the infamous "Hashtable insert failed. Load factor too high" error on our webfarm [6 Server 2003 SP2 boxes w/IIS 6.0]. I realize that there is a kb update that will resolve this error (see link), however others in the department are not contacting Microsoft in a timely fashion (and I don't have the authority to ...

jqGrid 'url' parameter causes errors in pages in deeper URLs

I'm trying to deploy an ASP.NET MVC site to a Windows 2003, IIS 6.0 server with the 3.5 framework installed (but not ASP.NET MVC - it's just in the bin folder). The site makes use of jqGrid, but on the deployment server the grid is failing in certain cases. The web site's master page is at /Views/Shared/Site.Master. It has a script tag ...

WCF and IIS 6 - WSDL is not exposed

Hello, I have developed an ASP.NET application that includes a WCF service. This service needs to be consumed by third party applications. This service has worked fine while testing in my development environment. My development environment is using IIS 7.0 on Window 7 RC 1. However, I cannot use the service once it is in my staging / pr...

Why does my 64-bit IIS app pool show 3 gigabytes more virtual memory than private memory?

I have an ASP.Net application that I am running on 64-bit IIS 6 on Windows XP x64. When I open performance counters after one page hit of a trivial page, I see a Private Bytes of about 88 megs, but a Virtual Bytes of about 3 Gigs. When I try the same thing with a VERY trivial ASP.Net app, I get the same result. We see something similar o...

How to check if a IIS directory is virtual directory or not?

I am trying to find a way to write a script which will check if a IIS 6 directory is a virtual directory or not (see image below - I would like to see if TestMPIService is a virtual dir or not). I tried with Powershell and WMI, but I am unable to find that information anywhere. Anybody has an idea how to do such thing? ...

Could not load file or assembly 'app_code' or one of its dependencies.

This has been bothering me for a while now: Could not load file or assembly 'app_code' or one of its dependencies. The system cannot find the file specified. I'm using visual studio 2008 and IIS6 and for some reason I get this weird error. Why is it trying to load 'app_code', and why does it fail? Tried to resolve it/ find out mo...

How to avoid user interruption when deploying a website on IIS 6.0/.NET 3.5

We deploy our websites as a single MSI package. We deploy to IIS 6.0 (Windows 2003) and they run on .NET 3.5. The problem I have is that when we upgrade to a new version of our websites, users may be half way with a long-running task. What I need is the following: How to stop users from starting new requests Let users with long-running...

How to see if IIS is actually sending requests to ASP.Net?

I have setup in the script maps for a site in the IIS metabase a wildcard mapping to ASP.Net for a particular directory within the site. I have a handler setup in the web.config which should be handling requests for said path and it should never return an actual 404. I have this configuration in place for another site on the same serve...

Recieving 404 error for everything except homepage in ASP.NET MVC APP

I have what seems to be a strange problem to me. I am working on creating an ASP.NET MVC project and when I load the site using the 'Visual Studio Development Server', everything works as expected. However, if I change the project properties to 'use local IIS Web Server' and load the site, only the Home Page works. If I try to load an...

Make IIS not render pages as WML. Ever!

Some background I'm currently working on a mobile site so I keep switching user agent all the time in Firefox with User Agent switcher (lovely addon). But when I go to the admin site it renders as WML, which makes Firefox all confused, so it tries to download it rather then showing the content. And this makes me frustrated (not falling ...

IIS 6 caches static image

Even if the image is changed, overwritten, modified, IIS still serves the cached copy. I am trying to upload an image from a webcam taken every 15 seconds. The image makes it onto the server but when I refresh the browser with the image FROM the server it does not refresh. IIS caches the file apparently for more than 2 minutes. I want t...

How to find relative path to C:\Inetpub\AdminScripts\ADSUTIL.VBS?

IIS 6 and older ships with a utility script called ADSUTIL.VBS: Adsutil.vbs is an IIS administration utility that uses Microsoft Visual Basic Scripting Edition (VBScript) with Active Directory Service Interfaces (ADSI) to manipulate the IIS configuration. This script should be run using CScript, which is installed with...

aspxerrorpath NULL On IIS 6

I'm trying to do a URL rewrite based off a 404. My logic checks for the "aspxerrorpath", but it always shows up as null. My code works perfectly fine on the dev server. I have customerrors turned on. I also have customerrors in the IIS control panel pointing to my handler. Ideas on why it is not passing the 404 url??? public class ...

Stack Overflow on IIS 6.0

Hi, I am using WAMP as localhost on my pc, and upload all data to the hosting (using IIS 6.0). I am using lightbox gallery in one post, and in the sidebar, to show recent photos from that gallery (on the sidebar). my code on the sidebar as follows: echo do_shortcode('[gallery id="66" size="large" columns="4" num="12" pagenavi="0"]'); ...

Classic ASP session and Web Garden (multiple workers)

We are having issues with IIS6 slowdowns when using more than 1.2GB of RAM in a single worker and would like to use more workers. However looks like ASP sessions are made by worker and when the browser accesses some page through another worker it losts the ASP session. Do you have some tips on how to solve this problem? We are consider...

Why does IIS wild card mapping break my AJAX calls?

I'm trying to use jQuery to make some AJAX calls, but because I have wild card mapping (to .NET) in IIS 6 turned on, it doesn't seem to work. Disabling the mapping makes everything magically work. I've put the web method attribute on methods in both an .aspx page and an .asmx web service, but neither work. Here is the sample URL that ...

Setting up my MVC project on IIS 6

I am very new at web development in general and I am trying to publish my first web app. I am using ASP.Net MVC 1 and IIS 6. I have read the post http://stackoverflow.com/questions/628236/how-to-make-asp-net-mvc-work-in-iis-6 and Phil Haack's blog post at http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx. How...

Any way to access the IIS kernel cache from ASP.Net?

This only clears items in the user cache: public static void ClearCache() { foreach (DictionaryEntry entry in HttpRuntime.Cache) { HttpRuntime.Cache.Remove(entry.Key.ToString()); } } Is there any way to access the kernel cache as well? Clarification: I want to print the keys of all item...

IIS 6.0 recycle overlapping delay

Hi, Is it possible to add delay in overlapping iis 6.0 recycling? for example iis does not shutdown the old pool for 2 hours even the new app pool is live and processing requests. I`ve got sometimes a long running request. I thought that 'shutdown time limit' property is right one for that but it`s not. IIS is still shutdown the old poo...