iis

Browse by Tags

All Tags » Configuration (RSS)
Workaround: Running ASP.NET 1.1 on Vista SP2/WS08 SP2
Many of you have probably read the article on how to install ASP.NET 1.1 on IIS7 on Vista and WS08 (The article can be found at http://learn.iis.net/page.aspx/472/how-to-install-aspnet-11-with-iis7-on-vista-and-windows-2008/ ). While above works great on Vista/Vista SP1/WS08 RTM, if you try to run ASP.NET 1.1 on Vista SP2/WS08 SP2 , you may have experienced the following error if you are on a 64-bit OS : There was an error while performing this operation. Details: Filename: \\?\C:\Windows\system32\inetsrv\config\applicationHost.config Error: Here is the problem. In order to support .NET 4.0 Framework, IIS team has released a hotfix ( http://support.microsoft.com/kb/958854 ) which is also included in SP2. At the root of the problem that you are experiencing with running ASP.NET 1.1 on Vista SP2/WS08 SP2 is that this hotfix allows the IIS runtime to read the correct version of .NET Framework configuration based on the .NET Framework version that is associated with the application pool. For...
IIS7: The path is not of a legal form.
I recently encountered the error “The path is not of a legal form.” from the IIS 7.0 Manager, but was unable to find any documentation on the error.  Oddly this error didn’t log anything in the System Event Log either.  The error sounds like a config issue so I focused on web.config and applicationHost.config. Problem: When expanding a website in the IIS Manager we get the error below.  This happens only for one specific web site, other sites are on the server are fine.  Additionally the problematic site continues to serve out pages without error.  The only real problem here is an inability to administer the web site. Error: Internet Information Services (IIS) Manager The path is not of a legal form. Screenshot:   Cause: After inspecting applicationHost.config I noted that one application didn’t have a physical path specified. < application path = " /appdir " applicationPool = " DefaultAppPool " >       ...
IIS Security – Past and Present
This topic has been covered many times both by Microsoft and non-Microsoft employees. However, I’ve recently been asked what the main features of IIS 7 are and have seen a great deal of misinformation about IIS security on twitter, blog posts and forums. I think, therefore, the issue deserves yet another look. In this post, I’m going to go over security in the past for IIS and then move on to talk about security features in IIS 7. These are not in any particular order. This post is not meant to diminish the many thoughtful works already created by others – both complimentary and critical. This is just meant to bring the subject back up for discussion again in hopes that you can be properly equipped with the decision making information you may need. Ghosts of IIS Security Past The reason for so much misinformation about the current state of security in IIS is likely due to the earned reputation the product had in versions previous to IIS 6.0. A quick search on the web for IIS 5 security...
Installing CakePHP on IIS 7
Recently I spoke with someone on Twitter who was having issues running CakePHP on IIS. With all the talk about ASP.NET MVC on IIS, folks forget that the MVC pattern works in other languages as well. CakePHP provides MVC  development on PHP. That said, I wanted to dive in and see what the issues were involved in getting this project up and running on IIS 7. I managed to get it installed pretty quickly, but it does take a little tweaking to get you up and running. I've chronicled my adventures with CakePHP below in case anyone else is having issues. That said, I must first say that I am not an expert working with CakePHP. This was my first experience with the project, so this information is provided "as-is" and should be taken with a grain of salt. With this demo, I’ll be walking through the " Cake Blog Tutorial ” offered on cakephp.org, and modifying it as needed to work with IIS 7. That said, let's get started. Prerequisites Install: IIS 7 on Windows 2008 Server...
Shared configuration and password expiration.
Most of you have probably heard of shared configuration. It is a simple and convenient way to centralize IIS configuration among multiple IIS instances. (More info on shared configuration can be found here .) A step in setting up shared configuration is to provide a user credential that can be used to access the shared configuration. Now, what happens when the password changes for the user? Naturally, the IIS instances that are using the shared configuration will no longer be able to access the shared configuration on a file share and, therefore, they won't work properly. So, in order to fix this problem, you may be thinking that all you need to do is to open the IIS Manager and just update the password. You may be right, except that you have a chicken and an egg problem. Although IIS Manager launches successfully, when you try to connect to the server, you will see the following error: You guessed it. The IIS Manager is unable to read the configuration because it no longer has the...
Now Online: Comprehensive IIS7 Technical Reference
If you’ve ever tried to find information on how to install a particular IIS7 feature, or how to configure it using the IIS Manager tool, AppCmd.exe, the new Microsoft.Web.Administration interface or WMI provider, this post is for you.  Every IIS7 feature is now comprehensively documented on http://www.iis.net/ConfigReference/   This IIS7 Technical Reference provides a list of all the built-in IIS7 features, alphabetized for quick access.  If you know the configuration name you are interested in, just type it into the URL…for example if you’re looking for information on the system.webServer <caching> setting, type: http://www.iis.net/ConfigReference/system.webServer/caching and whoila, you now have a complete set of reference material on the subject.  Literally hundreds of pages of documentation are now freely available at http://www.iis.net/ConfigReference/ and super easy to access.  Each topic has a quick summary of what the feature is, how to install the...
Setting up Shared configuration on IIS 7.0
Problem: When IIS 7.0 server is configured to work in shared configuration mode then configuration files are stored on a file share. This configuration is recommended for setting up web farms. But in case file share goes offline, the whole set up fails and web servers stop responding. Moreover when the file share comes up again, IIS server is not able to detect it gives following error message: HTTP Error 500.19 - internal server error The requested page cannot be accessed because the related configuration data for the page is invalid. We have to do an IISreset to start the web servers again after this. Resolution: Follow the below given steps to set up shared configuration with offline files (client side caching) enabled. Step 1: On the Web server, in Control Panel, open Offline Files . Step 2: In the Offline Files dialog box, click Enable Offline Files . Do not reboot the machine yet. Step 3: Ensure that the cache is set to read only by running the following command: REG ADD "HKLM...
Why IIS7? Top 12 cool features…
Every time I talk with customers in meetings or at conferences I’m struck by how many cool amazing new capabilities IIS7 has.  I can go on for literally hours talking about the new features and benefits, and showing demos.  And with each new IIS7 Extension , the list of new features just gets bigger and bigger.  A few months ago I realized we didn’t have the top list of features written up anywhere, and so we started the process of distilling down the list to the top 10.  We almost made it!  We ended up with the top 12 reasons you should get IIS7 today.  Check them out here: http://www.iis.net/getstarted Over the next few weeks we’ll be adding a cool demo for each of the reasons to show the features in action.  Be sure to check back soon! Read More...
Find New IIS7 Extensions at http://www.iis.net/extensions/
I’m happy to announce that IIS7 Extensions have found their home at http://www.iis.net/extensions/   Every since IIS7 shipped 9 months ago, the IIS team has been cranking away adding new features to the platform.  Last time I blogged about how we do this , I realized we didn’t have a single place to learn about all of them, so I kicked off an effort within the team to create this.  Now that the pages are up, it is amazing to see how many new capabilities are already available on top of IIS7…which all by itself had more new features than any other IIS release in the history of the product.  It is a testament to not only the ingenuity and hard work of the IIS team, but a real validation that IIS7 is not just a Web server, it is a server platform.  All of these new features are built on top of public extensibility points that any developer can use, and provide a seamless runtime, configuration and administration experience that looks and feels like they were built...
IIS cannot start after upgrade to Vista SP1
Some time ago, I tried to start up the IIS Management Console on my Vista machine and I received an exception. After trying a few quick fixes, I gave up. I had several VPC images that I worked from and I didn't particularly need this machine to work when I had so many others. However, I've been doing a great deal of development on this machine now, and having IIS working is obviously rather handy. So, I tracked down the exception and solved my problem. I thought I'd go ahead and chronical my adventures for anyone else who is having this issue and needs help. So first of all, the error that was displayed when I started inetmgr was as follows: --------------------------- Failed to connect --------------------------- There was an error when trying to connect. Do you want to retype your credentials and try again? Details: Creating an instance of the COM component with CLSID {2B72133B-3F5B-4602-8952-803546CE3344} from the IClassFactory failed due to the following error: 8007000d...
More Posts Next page »