iis

Sponsors

Browse by Tags

All Tags » AppCmd (RSS)
Caution when stopping and starting an IIS application pool with appcmd
When starting and stopping IIS 7 application pools from command line with appcmd.exe, you should be aware of a behavior that can sometimes lead to unintended circumstances. To explain it, lets first review what happens when you stop an application pool Read More......( read more ) Read More...
A New Site - Quick!
For testing purposes I sometimes need a new IIS site, often times running in its own AppPool. And I usually need it fast and without much programming. I hate ports and so I normally put my site name in the hosts file. Locally this works great! Because I'm an old kind-a guy I still use batch files with some pixie dust from appcmd. I thought somebody might find this script useful, too: @ECHO OFF REM =============================================================================================== REM CREATE A NEW SITE IN ITS OWN APPPOOL. REM ARGUMENTS: SITENAME REM REM STEPS: REM 1) SETUP AND ARGUMENTS CHECKS REM 2) CREATE APPPOOL (SAME NAME AS SITE) REM 3) CREATE DIRECTORY c:\inetpub\ < sitename > REM 4) CREATE DEFAULT.ASPX FILE IN c:\inetpub\ < sitename > REM 5) CREATE SITE WITH PHYSICALPATH c:\inetpub\ < sitename > REM 6) ASSIGN SITE ROOT APP TO APPLICATIONPOOL < sitename > REM 7) ADD SITENAME TO HOSTS FILE RESOLVING TO 127.0.0.1 REM 8) LAUNCH IE WITH SITE REM...
Use AppCMD to change Request Filtering extensions
Go to Inetmgr > ServerName > Request Filtering > Filename extensions. You can see all blocked extensions. Open a command prompt and type 'To allow c:\windows\system32\inetsrv\appcmd set config /section:system.webServer/security/requestFiltering Read More......( read more ) Read More...
When to restart IIS when making changes to your application
Knowing when to restart IIS to pick up various types of changes to your application has traditionally been a challenge. IIS and ASP.NET are both stateful software systems, which heavily rely on cached state that is loaded once to provide high performance Read More......( read more ) Read More...
Trace IIS 7.0 Errors Like a Pro with Failed Request Tracing
When dealing with hard to find IIS 7.0 errors, I break out the trusty Failed Request Tracing. My favorite way of doing this is through the command line...( read more ) Read More......( read more ) Read More...
How to configure SSL on IIS7 under Windows 2008 Server Core
Due to the popularity of Windows 2008 Server Core I have seen frequently questions about how to configure SSL on IIS7 with only command-line. Since I wandered that path few months back I thought of putting this article/guide together. http://www.awesomeideas.net/post/2008/05/18/How-to-configure-SSL-on-IIS7-under-Windows-2008-Server-Core.aspx Read More...
IISRESET light
Note: This blog entry used to be on my old blog. I'm about to shut it down so I thought I replicate some of the content here. Many IIS customers use IISRESET to get IIS back into a vanilla state. IISRESET is a pretty heavy hammer however and not needed most of the time - why would you restart FTP, WAS and W3SVC and all worker processes just because one of your web applications is locking a DLL or some content. Recycling the Application Pool causing the problem is usually enough. If you don't know which Application Pool is making the trouble you can recycle all of them. Here is how you do it with APPCMD: Recycling the Default Application Pool: %windir%\system32\inetsrv\appcmd recycle AppPool DefaultAppPool .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color...
Posted: May 06 2008, 06:41 PM by IIS.net
Filed under: ,
Hosting Übersites: IIS7 Support for International Domain Names (IDN)
Let's suppose you are German, you developed an extremely cool web-site and now you want to make it available to your German Bier buddies. The only really fetzig site name you could come up with contains one of these nasty German umlauts: übersite.de (not registered at the time I'm writing this blog). There are several registrars out there who allow you to register domain names that contain Unicode characters. It's called International Domain Names (IDN) and IIS 7.0 and HTTP.SYS support it nicely. Here is what you do if you want to try it yourself: 1) Configure IE to use IDN server names for Intranet addresses You need a browser who converts IDNs into punycode . Name resolution systems like DNS don't work with Unicode and hostnames have to be converted to punycode first. Internet Explorer 7 does this automatically for Internet addresses. For our example you need to instruct IE to do the same for Intranet addresses. Go to "Tools" - "Internet Options" -...
SSL certificates on Sites with Host Headers
Today I got the following question: "I have two sites (siteV1.mysite.com and sitev2.mysite.com). They listen on the same IP address and port. We generated a certificate for siteV1.mysite.com and SSL is working properly. The problem is that some of our customers use siteV2.mysite.com and they are getting certificate errors. What's the problem?" Here is the issue: There are three pieces of data to uniquely identify an IIS site: The IP address The Port The Host name which HTTP 1.1 clients send as an HTTP request header. This IP:Port:Hostname triplet is called a binding. The binding " 192.168.1.192:80:myserver" for example represents a site that listens on IP address 192.168.1.192 , port 80 , host-header myserver . The very first things IIS (HTTP.SYS to be more precise) does when a request comes in is to read the site's configuration. Connection limits and timeouts are examples of site configuration. The site binding is used to find the right site configuration. The SSL certificate seems to...
Finding your way around IIS 7 configuration sections with AppCmd
The IIS 7 configuration system contains 50+ configuration sections (100+ if you count .NET Framework configuration), 477 attributes, and 57 collections. This can make it pretty challenging to figure out exactly what IIS 7 configuration section needs to be used to turn on some particular behavior, and then exactly syntax the configuration in that section should follow. This is not typically an issue for me, because I can write most IIS configuration from memory. But, what if you didn't spend the past 4 years developing IIS7? Learn some tricks for demystifying the IIS7 config at http://mvolo.com/blogs/serverside/archive/2007/11/01/IIS7-configuration-sections-exposed.aspx . Read More...
More Posts Next page »