iis7

IIS7 Application Pool Crash

I am running IIS 7.0 on Windows server 2008 R2 and created 1 Application Pool per site and I have 1 site which is causing the application pool to stop. These are the following errors in the Event Viewer: This shows several times: A process serving application pool 'Pilot.Mobile.SyncV2' terminated unexpectedly. The process id was '3620'...

ASP.NET Ajax not running with IIS 7

Hi, I have a small web application with ASP.NET AJAX running well under the Cassini ASP.NET from http://www.ultidev.com/. But when I tried to host it under IIS7, the AJAX is not working. The UpdatePanel, the Calendar extension, the client side validation from the Validation Control are not working at all. I think it must be a problem of...

Asp .net web app hosted on IIS 7.0 will not use self signed client certificate for certificate authentication for a wcf service?

I have a wcf service hosted on a remote machine (IIS 7.0, Windows Server 2008) and an asp .net web application hosted on my local machine (IIS 7.0, Vista Ultimate 32bit).The wcf service uses a certificate authentication based on a self-signed certificate for development. When I try to connect to the service with my client asp .net appli...

A HttpModule that doesn't work in IIS7

I have a HttpModule that redirects certain URL:s in an ASP.NET WebForms application. It works on my machine with the ASP.NET Development Server. But when I upload it to our Win2k8 server with IIS7, it doesn't seem to react at all. I've put the <add name="Test.Web" type="Test.Web.Core.HttpModules.RedirectOldUrls, Test.Web" /> in the syste...

Set MaxAllowedContentLength/maxRequestLength value per action.

How do I set maxAllowedContentLength value per action? I have a few actions that used to upload files, each one needs a different maxAllowedContentLength value. It make sense that we don't want to use action filters as we want to filter this request at IIS level. On the other hand, action filter is the best solution from coding perspec...

HttpHandler fire only if file doesn't exist

Hey, I'm trying to create a HTTP handler to handle all requests to a folder but I only want it to fire if the files requested don't exist (EG: Request comes in for file X, if X exists I'd like to serve the file, otherwise the handler should deal with it). The files will only be static content, not scripts themselves, which I assume mak...

How to add New Application mapping in IIS6 and IIS 7 programmatically using WMI and C# ?

Hi all, My goal is to add php Extension to IIS6 and IIS 7 via Code in C# using WMi (System.Management). I cant use DirectoryEntry. I am stuck with adding a new ScriptMap Object to IIS 6/IIS7. I have read some posts at here and there and heard that adding new WMi object from Scratch is difficult. I want to enable IIS 6/IIS7 to hand...

Custom Error Page for Http Error 503.

I need to send a Customized Error page for 503 Errors produced by my asp.net website. I have tried to simulate the condition by switching off the application pool (doesn't work) and by flooding my application with requests. Even though IIS sends me the default 503 error page, and even though I have tried setting a Custom URL in IIS and ...

How to add Custom Property to System.Managment Object using WMI, C# in ASP.Net Application?

AA, I want to add a custom property to a WMi Object's Propert Collection. So that whenever i retrieve the properties of that object, i get the custom added property as well. Specifically speaking lets see the following code. foreach (ManagementObject WebSite in WebSitesCollection) { if (WebSite.Properties["Name"].Va...

running iis7.5 on 32-bit windows 2008 (not r2)

Does anyone know if it's possible to run IIS 7.5 on Windows 2008. From what I understand Windows Server 2008 R2 is an exclusively 64-bit OS. Can we upgrade IIS7 to IIS7.5 on Windows 2008 (not R2) ...

How much IIS7 is dependent on WAS?

WAS is usually described as a service, which was created to support non-HTTP protocol hosting in IIS7. But is it true that WAS has actually taken over much of WWW Service tasks and so even HTTP-only IIS7 hosts cannot exist without WAS, since this service is responsible for working with all protocol listener adapters and worker process ...

Enable Chunked Transfer Encoding in ASP.NET

I have an ASP.NET 3.5 website residing on IIS7. I am using dynamic compression and wanted to see if I can enable chunked encoding. Is there some setting on IIS or web config that enables it? ...

Retrieving active session information from IIS 7

I'm running several ASP.NET web sites with InProc session state and I would like to retrieve the number of active sessions per web site and hopefully any details around each session (eg client connection details). My end goal is to be able to see who is connected to the web site so that I can notify them when deploying an update. Is th...

Add a *new* DestinationBinding for a site to a package using MSDeploy

I'm using a staging model with MSDeploy to deploy a couple of our sites to a web farm. The sites are configured in IIS on the staging boxes only, and then MSDeploy is used to build the target web servers from scratch. The staging box uses its own bindings (ie no header entries, different IPs/ports and no host headers) for the sites tha...

Intercept what's being written to HttpResponse.OutputStream

I am working on a tool which audits access to existing web application. Existing app does not have any hooks in place, but my plan is to inject an IHttpModule by modifying web.config and log whatever I need to log during EndRequest event. What I'm struggling with right now is: I cannot intercept what is application writing to an output ...

IIS 7.0 using netTcpBinding

I've been trying for more than a week without any success at all, to host wcf service using netTcpBinding. With http, everything is ok. But with tcp problems arise. I have performed all the steps I'm supposed to, in order to host my service in WAS: .Net 3.0 Features are enabled, including http and non-http Activation . At IIS Manage...

is it dangerous to change Windows Server 2008 EventLog security settings

I have an ASP.NET application running on a Windows Server 2008 box with IIS 7. The application started on Windows Server 2003 with IIS 6. When I changed servers I learned about how Microsoft changed the default settings for IIS 7 to be more secure. One of the changes was, the user account set as the identity for the Application Pool had...

IE hangs on web site when contacting web service

Hi All, I have a website that seems to be Ok in Mozilla but when I access some pages in IE (mostly the ones where it has to contact a web service) the page hangs. If I refresh and then click the same button again, it seems to work fine 90% of the time. As mentioned, the same features work flawlessly in Mozilla. I am not really sure whe...

openning sql connection from iis7?

i created an asp.net website with visual studio 2008 sp1 and in the code i use sql connection to reach a data base in my sql server 2008. it all wiorks great but then i wanted to deploy the website in iis7 (windows 7) which was hell to discover how to do it- ( i added a virtual directory and converted it to an application and only then ...

IIS Hosted SSL WCF Service - Certificate or permissions problem

Before anyone flags this as duplicate from the other barrel full of questions about WCF, I don't want MSDN links and blog article references. I can Google for myself, and have been at this for 3 days, so if all you have are Google links, please abstain. I'm having a heck of a time with an IIS hosted WCF service using wsHttpBinding and a...