IIS

Using Caspol.exe to grant .NET applications rights to a remote network share

by File in: IIS

When you host a .NET application on a remote network share, you may receive a System.SecurityException exception error message or a security warning message. The Code Access Security Policy tool (CASPOL) enables administrators to modify security policy for the machine policy level, the user policy level, and the enterprise policy level. Caspol is used to […]

Fix: The World Wide Web Publishing Service (WWW Service) did not register the URL prefix http://x.x.x.x:80/ for site 1. The site has been disabled. The data field contains the error number

by File in: IIS

Fix for The World Wide Web Publishing Service (WWW Service) did not register the URL prefix http://x.x.x.x:80/ for site 1. The site has been disabled. The data field contains the error number. System log Event: 1004 Source: IIS-W3SVC Error received when trying to start the stopped web site:  The process cannot access the file because […]

Howto: Export IIS 7.0 web server configuration

by File in: backup

To export a backup copy of your IIS 7.0 configuration on a Windows 2008 Server: Open Server Manager Expand Roles – Web Server (IIS) – Internet Information Services (IIS) Manager Highlight the web server name From the Management category, double click Shared Configuration Under Actions, select Export Configuration. Accept or change the default export path […]

Howto: Backup IIS 7.0 web server configuration

by File in: backup, IIS

To backup your IIS 7.0 configuration on a Windows 2008 Server, you just need to make a copy of the \windows\system32\inetsrv\config directory (and subdirectories) and save it in a safe location. You can also use the appcmd.exe utility to create the backup via the command line. The syntax to create a backup is: %windir%\system32\inetsrv\appcmd.exe add […]

Running Windows Media Services and and IIS on the same server in Windows Server2008

by File in: Windows Media Services

MS KB328728 describes how to run Windows Media Services and and IIS on the same server in Windows 2003, but the WMSHttpSysCfg utility the KB article references does not exist on Windows 2008. Here’s how to run both WMS and IIS on Windows 2008. 1. Install both WMS and IIS 2. Add a second IP […]

Script to securely backup and export IIS 6.0 Configuration

by File in: script

Last week I posted a basic script that took advantage of file encryption to securely backup the iis metabase. Today’s script builds upon it by backing up the IIS configuration and exporting it using iiscnfg.vbs. REM delete mapping for H: if it exists net use h: /del REM map H: to remote server share net […]

Script to securely backup IIS 6.0 Metabase

by File in: script

The following is a script to backup the IIS 6.0 Metabase.  Save it as bkupmeta.bat. REM delete mapping for H: if it exists net use h: /del REM map H: to remote server share net use h: \\RemoteServer\backup /user:RemoteServer\user password REM replace YouriisServerName with the name of your IIS web server SET SERVER=YouriisServerName REM yymmdd will be […]