May 2006 Blog Posts
If you are running IIS on an Exchange Server 2000 or 2003 machine make sure you really think hard before you uninstall IIS - it is not a trivial process to get your exchange and IIS linked together again.
Microsoft has a KB article #320202 available here http://support.microsoft.com/default.aspx?scid=kb;en-us;320202 that describes the process in detail to get the system working again.
Apparently when you remove IIS you have also removed some additional configuration parameters that exchange has added to the IIS Metabase and you must follow the 6 steps below to relink the attributes when you install IIS again.
Back Up Data
Dismount the Mailbox...
I came across this post in the IIS Newsgroups today
“I want to create virtual directory in IIS. I have a method in doing C# for doing this . The following code is supposed do my job. But It throws the following errors. I strongly feel there is something going wrong with the metabase path "IIS://localhost/W3SVC/1/Root".
Can somebody help me in finding out correct metabase path.“
//Create a virtual directory
System.EnterpriseServices.Internal.IISVirtualRoot vr = new System.EnterpriseServices.Internal.IISVirtualRoot();
string sError;
vr.Create("IIS://localhost/W3SVC/1/Root",@"C:\Demos\WebServices\","WebServices",out sError);
The error it has thrown is :System.Runtime.InteropServices.COMException (0x80070003): The system cannot find the path specifiedat System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)at System.DirectoryServices.DirectoryEntry.Bind()at System.DirectoryServices.DirectoryEntry.get_IsContainer()at System.DirectoryServices.DirectoryEntries.CheckIsContainer()at System.DirectoryServices.DirectoryEntries.Add(String name, String schemaClassName)at System.EnterpriseServices.Internal.IISVirtualRoot.Create(String...
Whether you are interested in database administration, database development, or business intelligence, you can access the E-Learning topic you want, when you want it, and learn at your own pace. Each lesson includes hands-on virtual labs and offline functionality.In addition, you may consider taking a free Microsoft Skills Assessment to help you meet your Microsoft SQL Server 2005 training goals. You'll receive a learning roadmap with additional skills resources including instructor-led classroom training and books.
Note: The E-Learning Courses below are free for 90 days - get in there now!
Course 2944: Updating Your Reporting Skills to Microsoft® SQL Server™ 2005 Reporting...
These labs give you time as a full admin using a product on an OS fully configured for a period of 90 minutes in your web browser. You can do what you want including trashing the system completely. This is your time to try the product. Do you have the system at home or work to install these products? who carees, try the labs you can really put the product though its paces.
IIS 7.0 Virtual Labs
Core Server
Configuration
Diagnostics & Troubleshooting
SQL Server 2005 Virtual Labs
Express Lab: What's new in SQL Server 2005
SQL Server 2005 Self Guided Hosted Trial...
The following code will allow you to create rounded corners on your HTML pages.
The output from the following HTML is like this:
You can change the colour of the background by changing the background attribute of the .bg-rounded-container class - currently set to Orange.
For a live demo click here<style type="text/css">
.bg-rounded-container {
BACKGROUND: orange;
WIDTH: 400px;
POSITION: relative;
HEIGHT: 50px
}
.bg-rounded-content {
FONT-FAMILY: Tahoma, "Arial Narrow", sans-serif;
font-weight: bold;
font-size: 14pt;
text-align: center;
PADDING-RIGHT: 10px;
PADDING-LEFT: 10px;
PADDING-BOTTOM: 12px;
PADDING-TOP: 12px
}
.bg-rounded-top-left {
FONT-SIZE: 0.1em;
BACKGROUND-IMAGE: url(/images/bg-rounded-corners.png);
WIDTH: 7px;
BACKGROUND-REPEAT: no-repeat;
HEIGHT:...
SQL Prompt provides Intellisense® style auto-completion for Microsoft SQL Server editors. It will tell you the exact formatting you should use for your SQL commands, while you are writing them and will therefore help you write fast, perfectly formatted SQL statements. SQL Prompt improves the productivity of all SQL script creation.
SQL Prompt simply sits behind the scenes and provides unobtrusive help when you press Ctrl-Space or when you type "." after a table/view/alias name.
Features include :
Table/View name completion
Column name completion
Stored procedure name completion
USE completion
JOIN/JOIN ON completion
Auto-uppercasing of keywords
Auto-popup after keywords
SQL...
http://www.iis.net
IIS 7 Virtual Labs
Do you want to play around with the latest verison of IIS 7 without having to find a machine or a setup a Virtual PC image?
The new IIS 7 site has Virtual Labs where can test IIS 7 today on Vista Beta 2 (offical release version) via a web browser for 90 minutes for free.
The virtual labs have a workbook you can download for showing you parts of the new system; one of the labs shows how to create a new Authentication module for IIS 7 so you can use any ASP.NET membership provider as the credential store...
While searching for some free books I came across these two good sites.
Microsoft and .NET books for free downloadhttp://www.techbooksforfree.com/microsoft.shtml
and
Free computer science books and lecture notes http://www.freetechbooks.com/
Learn advanced .NET programming techniques by getting an insider's look at a complete application!
The developers who created SharpDevelop give you the inside track on application development with a guided tour of the source code for SharpDevelop. They show you the most important code features and explain how you can use these techniques in your own projects. You will gain valuable experience of building an application on this scale, learning from the decisions, mistakes, problems, and solutions that led to the current version of SharpDevelop.
You will need to register to download the PDF but it is well worth it. Total Pages...
Microsoft is giving away this book either as a single download (15MB) or chapter by chapter.
Get a focused, first look at the features and capabilities in Microsoft Visual Basic 2005, Visual Studio 2005, and the .NET Framework 2.0.
If you currently work with Visual Basic 6, these authors fully understand the adoption and code migration issues you'll encounter. They'll step you through a quick primer on .NET Framework programming, offering guidance for a productive transition.
If you already work with .NET, you'll jump directly into what's new, learning how to extend your existing skills.
From the innovations in rapid...
A simple example to return all the fields in the IISWebService object on an IIS 6 computer using Windows PowerShell and the get-wmiobject cmdlet.
A simple example to return just the name fields from the IISWebServer object on an IIS 6 computer.
Windows PowerShell is a new command-line shell and task-based scripting technology that provides comprehensive control and automation of system administration tasks.
Windows PowerShell allows Windows administrators to be more productive by providing numerous system administration utilities, consistent syntax, and improved navigation of common management data such as the registry or Windows Management Instrumentation (WMI).
Windows PowerShell also includes a scripting language which enables comprehensive automation of Windows system administration tasks. The Windows PowerShell language is intuitive and supports existing scripting investments. Exchange Server 2007 and System Center Operations Manager 2007 will be built on Windows PowerShell.
Windows Powershell has also been...
Ever wanted to find a font just like the one used by certain publications, corporations, or ad campaigns?
This amazing system at www.myfonts.com can help you by allowing you to upload or to link to an image on the web and it will attempt to find you the actual font that was used to create the text.
For example I used the new IIS 7 font used on the logo for the new IIS 7 web site www.iis.net
Here is my example font.
The site then decoded the image into each individual letter as shown below and allowed me to specify...
Shipping with Windows Vista will be the latest version of Internet Information Services (IIS), which includes a broad collection of features and capabilities that have been anxiously awaited by both developers and IT Pros. Scott Guthrie and Bill Staples describe and demo new features in IIS 7.0
This is a 1 hour 30 minute show (with 30 minutes) covering IIS 7 which was recorded on May 18th, 2006.
The technical level is 300 so we should see some good techy stuff in the video and not just marketing fluff.
The technoBabble section is the section on IIS 7.
For more details and to watch the...
Mitch Tulloch is the author of Windows 2000 Administration in a Nutshell, Windows Server 2003 in a Nutshell, and Windows Server Hacks.
Mitch intervies Brett Hill about the forthcoming IIS 7 product line that will be included with Windows Vista and Windows Server (“LongHorn“)
For the full article see http://www.windowsdevcenter.com/lpt/a/6594
Microsoft will be launching a new web site dedicated to IIS 7 on Tuesday 23rd May 2006 (note currently password protected) to coincide with the impending release of Windows Vista & Windows Server ("Longhorn") Beta 2.
Some of the features of the new site:
The first true detailed learning on IIS 7.0 (40+ articles, videos, etc.)
IIS Product Team blogs
Community focused Forums similar to ASP.NET & MSDN
Learning Portal called "TechCENTER"
Real-live Virtual Labs so you can practice IIS 7.0 at your pace, online, without ever installing bits
Some of the features of the new IIS 7 product:
Minimize patching and...
FTP User Editor for Microsoft Active Directory.....
What is this?
When you run the FTP server with Microsoft IIS 6.0 on the Windows 2003 Server Family of products you can have the FTP server isolate users to their own folders. This means that the user can not browse into another users folder.
There are three isolation modes:
Do not isolate users
Isolate Users
Isolate Users with Active Directory
This application is designed for option 3 and allows you to edit two attributes for a users account:
msIIS-FTPRoot
msIIS-FTPDir
For more details on these attributes see the following page.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adschema/adschema/a_msiis_ftproot.asp
There is no Windows UI to perform this step but there is a...
The FTP User Editor for Microsoft Active Directory has been updated a fix a couple of problems.
Bugs
The connect dialog did not hide the password as you typed it!
The Recent Users were lost after you shutdown due to a difference in implementation between the old and new controls.
New Features
You can now browse to find the path for the FTP Root directory.
You can download and install from:
Binary Versionhttp://blog.crowe.co.nz/Attachments/FTPUserEditor/1.09/setup.msi
Full Sourcehttp://blog.crowe.co.nz/Attachments/FTPUserEditor/1.09/FTPADUserEditorv109.rar
For more details on the FTP User Editor please see the original post at http://blog.crowe.co.nz/archive/2006/02/15/556.aspx
The FTP User Editor for Microsoft Active Directory has been updated a fix a couple of problems.
Bugs
There was a limit of 1000 objects being returned from the Active Directory - increased to 32768.
You can download and install from:
Binary Versionhttp://blog.crowe.co.nz/Attachments/FTPUserEditor/1.10/setup.msi
Full Sourcehttp://blog.crowe.co.nz/Attachments/FTPUserEditor/1.10/FTPADUserEditorv110.rar
For more details on the FTP User Editor please see the original post at http://blog.crowe.co.nz/archive/2006/02/15/556.aspx
If you receive the error below then it means that your web site or virtual directory is configured to run with the wrong version of the .NET Framework.
Server Error in '/MSDN' Application.
Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Unrecognized configuration section 'connectionStrings'Source Error:
Line 12: <add key="ConnectionString" value="User ID=MSDN;Password=$MSDN$;Initial Catalog=MSDN;Data Source=nzc-ap-sql-01.ap.trimblecorp.net"/>
Line 13: </appSettings>
Line 14: <connectionStrings/>
Line 15: <system.web>
Line 16: <pages theme="MSDN"></pages>Source File: D:\Inetpub\websites\IS\MSDN\web.config Line: 14
Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300...
After doing a restore from a SQL Server backup, the users login rights are removed from the database yet the user itself still remains in the roles of the database. This means that when you try and add the user again you get the error "Error 15023: User "XXXX" already exists in current database" and the addition fails. (where XXX is the user you wish to add)
The quickest way to get this working is using query analyser and running the following command when working on the actual database.
EXEC sp_dropuser 'XXXX'
This will drop the user from the database and you can then...
What it does
The Focus extender will allow you to set the input focus to a particular control on your web form. I know that with ASP.NET v2 you can use the DefaultFocus attribute of the
tag to set the focus but that does not work well with Master Pages.
How to use it.
In your ASP.NET source page you need to register a tag prefix to the DLL as shown below.<%@ Register Assembly="Focus" Namespace="Focus" TagPrefix="trmb" %>
You then need to add the tags to the page to control the focus.<trmb:FocusExtender ID="Focusextender1" runat="server">
<trmb:FocusProperties TargetControlID="txtPN" />
</trmb:FocusExtender>
There is really only one property...
When running IIS on a server edition you can create multiple web sites and over time you may add and remove sites. When you do this the Log Files are still retained
The following script can be used to find unused log file directories that are no longer associated with any IIS Web Sites - it does not delete them just displays them.
Example Output
Usage
cscript LocateUnusedLogFileDirectories.VBS
Source Code
You can download the source code by clicking here.
Option Explicit
dim LogFileDirectory
dim Folders()
dim Sites()
dim Valid()
function EnumerateFolders()
Dim FSO, Dir, File, Index
set FSO = createobject("Scripting.FileSystemObject")
set Dir = fso.GetFolder(LogFileDirectory)
redim Folders(Dir.SubFolders.Count)
redim Valid(Dir.SubFolders.Count)
Index =0
for each...
On IIS 6.0 you will find that when you create web sites that their log files are created with seemingly random numbers. In previous versions of IIS the Instance IDs as they are called were sequentially numbered.
The first "Default Web Site" has a log file directory of W3SVC1 but any new sites you create may end up as follows (or something similar)
W3SVC1240841244
W3SVC1289352529
W3SVC147076792
W3SVC1527186048
W3SVC1566259604
W3SVC1710104836
I have written a script that you can use to display all the web sites and their associated Instance Ids - the output similar to the following.
Web Sites Description===============================================================W3SVC/1 Default Web SiteW3SVC/1036328378 WebSite1W3SVC/1816184000 WebSite2W3SVC/1867813904 WebSite3W3SVC/568530179 WebSite4W3SVC/719499532 WebSite5W3SVC/669732006 WebSite6
See http://blog.crowe.co.nz/archive/2005/12/08/346.aspx...