Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [iis-7]

IIS7 is the version of Microsoft's web server software released with Windows Server 2008.

262
votes
6answers
290k views

How to assign permissions to ApplicationPoolIdentity account

In IIS 7 on Windows Server 2008, application pools can be run as the "ApplicationPoolIdentity" account instead of the NetworkService account. How do I assign permissions to this "...
77
votes
3answers
81k views

What should I do to make sure that IIS does not recycle my application?

I have a WCF service app hosted in IIS. On startup, it goes and fetches a really expensive (in terms of time and cpu) resource to use as local cache. Unfortunately, IIS seems to recycle the process ...
73
votes
8answers
62k views

Enable HTTP Strict Transport Security (HSTS) in IIS 7

What is the best way to turn on HTTP Strict Transport Security on an IIS 7 web server? Can I just through the GUI and add the proper HTTP response header or should I be using appcmd and if so what ...
49
votes
6answers
141k views

IIS complains about a locked section - how can I find out where it's locked?

I have this section in my web.config: <system.webServer> <modules runAllManagedModulesForAllRequests="true" /> <security> <authentication> <...
45
votes
10answers
97k views

IIS7: can't set host name on site with SSL cert and port 443

Consider a Win 2008 SP2 machine with IIS7. The task is to apply a certificate and host name to the one and only Site on this machine. The site's host headers need to be abc.123.example.com The first ...
39
votes
8answers
21k views

IIS Manager - Connect to Another Server (Win7 to Win2008 server)

I am running Windows 7 Ultimate. If I open up IIS Manager, I see a list of "connections" on the left hand side. In previous versions, I would be able to select an option to "connect to another ...
37
votes
4answers
29k views

Directly editing IIS 7 applicationHost.config configuration file

I know that IIS 7+ now uses XML config files instead of the metabase. I also know that if I edit a web.config file for a given site, IIS automagically detects the changes and implements any ...
37
votes
7answers
44k views

Removing phantom applications from Application Pools in IIS7

I have an application in one of my application pools that has a virtual path of '/Site/login.aspx'. I want to remove it but it no longer exists on my computer and it's causing me issues setting up ...
37
votes
2answers
24k views

IIS6 vs. IIS7 and IIS7.5: handling URLs with plus sign (+) in base (not querystring)

For any URL with a plus sign (+) in the base URL (not the querystring), IIS7 and IIS7.5 (Windows Server 2008 and 2008 R2) do not appear to forward the URL to the default handler on an ASP.NET ...
29
votes
2answers
50k views

Service WAS was not found on computer '.'

I am using Windows 7 Professional. When I am trying to start DefaultAppPool in IIS 7.0, I am getting error - Service WAS was not found on computer '.'. Is there any changes in setting need to be ...
29
votes
4answers
66k views

How can I display and log PHP errors on IIS7?

We're running PHP 5.2.5 on an IIS 7 Server and we're having problems making PHP errors visible... At the moment whenever we have a PHP error the server sends back a 500 error with the message "The ...
27
votes
1answer
45k views

IIS7 What unit does time-taken have in a w3c-log?

I'm trying to analyze some IIS7 logs (W3C format) and am interesting in the time-taken field and its unit. According to Microsoft the unit is milliseconds. The length of time that the action took, ...
27
votes
2answers
97k views

How to increase memory usage in MySQL Server to improve speed?

I have a Windows 2008 server with 8GB of RAM running IIS7 and MySQL. I've been tracking the memory, cpu and disk usage on the server and I found out that MySQL is using only 250MB of RAM, keeping the ...
26
votes
6answers
50k views

Configure IIS 7.0 to download APK

I would like to know how to configure IIS 7.0 to allow the download of APK files? I found an article which tells me to add a new MIME type: File Name Extension: .apk MIME Type: application/vnd....
26
votes
3answers
45k views

What is the IIS7 default keepalive time?

What is the IIS7 default time for HTTP keepAlive?
26
votes
5answers
54k views

Recycle remote IIS app pool from the command line?

Is it possible to recycle an IIS7 app pool from the command line, on a different machine? I've found APPCMD (appcmd recycle apppool my-app-pool), but it only operates on the host it's run on, AFAICT. ...
25
votes
6answers
38k views

IIS 7 Still Serving old SSL Certificate

I installed a new SSL certificate into IIS7, removed the old certificate and setup the bindings for the new certificate - so https is now bound to the new certificate only. I restarted IIS7 (and the ...
25
votes
1answer
10k views

Don't see Failed Request Tracing in IIS 7 Manager

In the "Actions" Pane of IIS Manager, under Configure there is supposed to be a link for "Failed Request Tracing". I don't see that... I just have "Limits..."
25
votes
9answers
50k views

How to get IIS7 to release a locked file?

During our production builds, a very large (10 megabyte) static content file in the root directory will sometimes be locked by IIS and cannot be deleted by the clean task. This is presumably because ...
24
votes
1answer
18k views

Certificate does not have a name

I've successfully managed to install an ssl-certificate in IIS, however the 'Name' column is showing as blank even though I entered a friendly name. Is there any way to rectify this? I grabbed a ...
24
votes
2answers
36k views

IIS 7.x Application Pool Best Practices

We are about to deploy a bunch of sites to some new servers. I have the following questions about application pools: It seems advisable to have one application pool per website. Are there any ...
22
votes
6answers
83k views

Restrict access to IIS site to an AD Group

Is it possible in IIS to set up a site in IIS and only let users of a certain AD Group get access to it?
22
votes
1answer
6k views

IIS: Content-Length 0 for CSS, Javascript and Images

After a clean re-installation of my Windows 7 system, I can't get IIS 7 to properly deliver any static content. Dynmic content (ASPX pages and content served by ASP.NET MVC controllers) works fine, ...
22
votes
3answers
43k views

How do I block specific IPs and IP ranges in IIS7?

I'm trying to block various IP addresses from every site that I have hosted from an server running Windows 2008 and IIS7. I've found various information about how to do this using Deny rules from "...
21
votes
2answers
12k views

IIS 7.5 optimizations for a site serving only static content

I'm looking to setup a cookie-free domain intended to serve static content for a web application, similar to the http://sstatic.net/ site that the stack exchange sites use. My question is, what ...
20
votes
7answers
36k views

yslow says etags are misconfigured. how to configure etags properly on IIS7?

running ySlow on a website I support, I noticed it reported that the etags are misconfigured for the site images (e.g. *.jpg, *.png, *.gif). Can anyone help explain what I have to do to get IIS7 ...
20
votes
1answer
19k views

How can I export URL rewrite rules?

Is it possible to export URL rewrite rules for IIS7? I am setting up a duplicate of a website for internal use (testing) and want to duplicate all of the URL Rewrite rules without having to manually ...
20
votes
1answer
7k views

Change TeamCity IP address and port number on multi-homed Windows Server 2008 running IIS 7

After two full days of "research" (read: banging my head against my keyboard) and cursing at TeamCity/MSDN/Tomcat documentation as well as phantom IIS bindings, I've come up with an answer to a very ...
19
votes
1answer
34k views

IIS FTP Server works locally, but cannot connect from remote

I'm trying to setup an FTP server on Windows 2008 Server. I can connect locally: C:\>ftp localhost Connected to WebHead1 220 Microsoft FTP Service However, when I try to connect from remote, it ...
19
votes
8answers
102k views

How to resolve FTP Error “Failed to retrieve directory listing” for Administrator account in IIS 7.5

Using my administrator account, I FTP connected to my IIS 7.5 FTP Site with FileZilla. I was able to successfully upload a file, but I keep getting a "Failed to retrieve directory listing" in ...
19
votes
1answer
15k views

Difference Between Private Memory Limit and Virtual Memory Limit in IIS

I want to set the max limit on the physical memory an application can use in IIS 7. Should I set a limit on Private Memory Limit or Virtual Memory Limit? Can some one point me to documentation of all ...
18
votes
2answers
28k views

How can I control which IP address IIS7 uses?

In Win2k3 I used httpcfg to tell IIS to listen to specific IP addresses on the server. I want to run Apache with VisualSVN Server on port 80 on another IP address but IIS7 binds to all ip addresses by ...
17
votes
3answers
22k views

IIS7 - Basic Authentication Module missing?

I'd like to use basic HTTP authentication to keep people out of our dev site instance since it is unfortantly exposed to the wild internet. However, in IIS7, the only authentication modes listed are ...
17
votes
4answers
30k views

IIS7 - Lock Violation error, HTTP handlers, modules, and the <clear /> element

I have an ASP.NET site that uses its own set of HTTP handlers and does not need any modules. So, in IIS6, all I had to do was this in my web.config: <httpModules> <clear /> </...
16
votes
8answers
2k views

When is the right time to introduce high availability for web site?

When is the right time to introduce high availability for web site? There are many articles on High Availability options. It’s not that obvious however WHEN is the right time to switch from single ...
15
votes
1answer
27k views

Import .pem into IIS 7

I was given two .pem files to import. I did not generate these files. Can I import them into IIS 7 or do they have to be converted into another format? I know that IIS likes .pfx - can .pem's be ...
15
votes
2answers
14k views

IIS7 ban IP range [duplicate]

Possible Duplicate: How does IPv4 Subnetting Work? I have a list of IP ranges I would like to ban, an example being: 119.30.47.xx Where xx is anything. I've added the domain and IP ...
15
votes
3answers
98k views

How to change default application in a website in IIS 7.5 on Windows 7

When I pull up http://localhost in a web browser on my computer (Windows 7, IIS 7.5) I get the IIS 7 welcome image. I have a different website that is set up in IIS that I'd prefer to be the default ...
14
votes
4answers
18k views

Properly handle IIS request with percent sign in url (/%)

I am looking for any kind of solution to properly get an IIS request such as https://stackoverflow.com/% and http://bing.com/% to not display a 400 Bad Request page, but display a custom error page ...
14
votes
3answers
24k views

IIS7 returns blank when static content requested

I am trying to configure a demo machine which is EEEPC with Windows 7 Home Premium edition all the drivers properly loaded (don't ask me why it's Home edition) with IIS7 installed. I've deploy the ...
14
votes
6answers
34k views

How to configure IIS for SVG and web testing with Visual Studio?

Let's say I have a simple web page with svg image in it: <img src="foobar.svg" alt="not working" /> If I make this page as static html page and view it directly svg is displayed. If I type the ...
14
votes
2answers
14k views

Where & how can I see IIS7 log entries for a specific web site?

All IIS7 is telling me is a folder (i.e. C:\inetpub\logs\LogFiles) which contains a couple of subfolders. How can I tell which subfolder/file I should look at? What is the logic behind this folder/...
14
votes
1answer
58k views

How to limit the memory used by an application in IIS?

The IIS worker processes are taking lot of memory on our servers. I want to limit the memory each application can use. I am confused whether I should set a limit on Virtual Memory Limit, or Private ...
14
votes
1answer
31k views
13
votes
3answers
44k views

What is the downside to sticky sessions with load balancers?

We have a web farm of IIS7 machines which work great. In front of them is an F5 Big-IP hardware load balancer, also working fine :) (source: www.f5.com) Currently we're using an ASP.NET State ...
13
votes
1answer
24k views

In IIS 7.0, what is the difference between the application pool identity and the web site identity?

In IIS 5.0, by default the identity account of an application pool is ASPNET, and the website, unless impersonation is enabled, run under the account of its application pool's identity. But in IIS 7....
13
votes
7answers
29k views

Installing SSL Certificate for use in IIS7, installation “works”, but cert listing disappears

Windows Server 2008 R2, IIS7. We have an SSL cert from Go Daddy. It's a wildcard cert, so it will work across subdomains (e.g. *.domain.com). I followed the instructions located at http://support....
12
votes
3answers
35k views

How do you start/stop IIS 7 app pool from cmd line if there are spaces in the app pool name?

http://technet.microsoft.com/en-us/library/cc732742(WS.10).aspx The above URL describes how to start/stop an IIS 7 app pool. However, I have spaces in my app pool name. Double-quotes doesn't work. ...
12
votes
4answers
46k views

IIS7: How to block access with a web.config file?

I know that IIS7 allows me to have a per directory configuration with the web.config xml file. I have a directory with some configuration files that don't want to be web accessible. A local web.config ...
12
votes
4answers
10k views

Configure IIS 7 Reverse Proxy to connect to TeamCity Tomcat

We have an IIS 7 webserver configured and would like to create a reverse proxy for a TeamCity installation using Tomcat on the same machine. The IIS server site is https://somesite and I would like ...