Monthly Archives: June 2010

IIS 7.5 Enable Parent Paths for ASP

Dear All

As we have migrated all Web Servers of OASIS from IIS 6.0 to IIS 7.5 it was working fine for all virtual directories of that website which are already there , but when new Virtual directory creation requirement came I have created as like in IIS 6.0.

After creating Virtual Directory contents has been uploaded by developer and when tried to browse the Virtual directory it has started giving following error

HTTP Error 404.3 – Not Found
The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.

So tried a lot in IIS setting and at last come to know that it is a issue of Enabling Parent Path

To enable the server to run classic .NET ASP pages, expand Internet Information Services -> World Wide Web Services -> Application Development Features. Check the box next to ASP, then click OK.

Parent Paths is disabled by default on IIS 7.5. To enable it, run the following command as administrator:

%systemroot%\system32\inetsrv\appcmd unlock config /section:asp

%systemroot%\system32\inetsrv\APPCMD set config “Default Web Site” -section:system.webServer/asp /enableParentPaths:”true” /commit:apphost

To start the default web site from the command line, run the following command as administrator:

%systemroot%\system32\inetsrv\APPCMD start site “Default Web Site”

The c:/inetpub/wwwroot directory is UAC protected. If you are going to leave UAC on (and it’s recommended that you do), you will probably want to change the permissions on the wwwroot folder so that you don’t have to click through a prompt each time you change a file.

Using Virtual Paths

As an alternative to using parent paths in your ASP code, you can use virtual paths. Virtual paths require that you enter the full folder path from the URL root of your Web site. For example:

Enabling ASP Parent Paths

You can enable or disable parent paths by using IIS Manager. To do so, open IIS Manager and navigate to the site or application where you want to configure parent paths, and then-double click the ASP feature.


In the list of ASP features, configure the Enable Parent Paths option.and select True


 

Thanks

 

Prashant Deshpande

Advertisements

1 Comment

Filed under Uncategorized

Windows Server 2008 R2 Backup and Restore

Every admin should make backups. That’s just a fact. But what backup software should we use? Many administrators look for a third-party backup solution, however Windows Server ships with a solid and built-in solution – Windows Server Backup (the entirely new face of NTBackup).

To install backup functionality in Windows Server 2008 R2, go to Server Manager – Features, and select Windows Server Backup Features with additional components – Windows Server Backup

Select features screen – select all the Windows Server Backup features available.


After the installation of Backup features we can access them through the Start , in Administrative Tools under “Windows Server Backup”.


Inside the Windows Server Backup Management console, we can create a backup schedule, perform one-time backup, recover data that was previously configured for a backup, or configure performance settings.


In this walk-through we will create a scheduled job for backing up an entire operating system (including the registry), so we’ll go ahead and click on Backup Schedule option.

During the backup schedule plan creation, we can select what to backup (single files from our server, system state, folders, volumes or the entire server), as well as when and how often backups should occur, and finally where to store the backups. Before Windows Server 2008 R2, we could only keep our backups on a dedicated volume, which was a serious maintenance cost for system administrators who had become accustomed to the NTBackup tool from Windows Server 2003, which allowed backups to any storage (including local folders).

During the setup of a Backup Schedule job, we will have to decide what to backup. We can obviously select individual volumes, folders or files, but since Windows Server 2008 R2 we also have additional backup options:

  • Bare Metal Recovery – backup an entire operating system. This is not the same as full backup, which also backs-up your data.
  • System State – generally this option will backup all system-related settings, like registry, COM+ class registration database, Boot files (including system files), certificates, Active Directory Services, SYSVOL folder, IIS Meta-Directory, etc.



After we select data to backup, we can specify file types to exclude in the backup (such as mp3 files or temp files), and choose additional VSS settings. To do this, we click on the Advanced Settings button.

It is advisable to exclude certain files from the backups that are not necessary to restore. For example, when you manually create Full Server backup and store it locally on one of your volumes, you should perform that backup everyday, because it will surely take lot of disk space and impact server performance. Instead consider a less regular Full Server backup and more regular backups of the data which changes more frequently.


In the VSS Settings screen, we can choose what type of Volume Shadow Copy we want to create. Available options are VSS Full Backup, and VSS copy Backup. Normally we will want to use the VSS full backup when we do not use third party tools for backups.


On the next step of scheduled backup configuration, we need to decide when to perform the backups. This is a crucial step, since we have to choose a time when the server load is low and when performance isn’t the most important. For this reason , backup jobs are usually run during the night.

We can choose to backup once a day (and select an exact time when), or choose to perform backups more than once, then we can choose more than one hour for a backup.


In the next step we will decide where we’d like to store the backups. In previous version of Windows Server 2008, when I tried to configure backups as I am used to with NTBackup, I’ve encountered issues because Windows Server Backup wasn’t able to backup my data to local folders. I was forced to purchased a dedicated harddrive for backups despite space being available on existing data volumes. It was a real relief to see the Windows Server Backup in Windows Server 2008 R2 re-introduces this functionality!


In our example, I’ve used one of my local volumes to store my backups.


The final step is the summary, where we can review our settings and Finish the Backup Wizard. After a successfull setup, we’ll see our newly added backup job on the Windows Server Backup console.


If we decide to perform the backup right now, out of schedule, we should use Backup Once option in right pane. Then in the Backup Once Wizard screen, we can choose either one of our scheduled backups, or we can configure entirely new one.


Keep in mind, that when you create a backup of volumes hosting Virtual Hard Disk files (VHD), these files will be automatically excluded from the backup, as if they were mounted at the time backup was created.

So far so good, but what about Recovery ? To configure recovery go back to Windows Server Backup Console and select the Recovery option from the right pane.

We can use this option to recover specific files, entire volumes or the system state components from a backup we setup earlier. We will need to specify where our backup file is located, it can be either on a Local Server, or remote location (which is the normal and recommended location for any backup).


The last interesting option in our Windows Server Backup console are the Optimizations options. These options only apply to backups where we include entire volumes in our backup. We can choose Normal Backup, which is best for servers under heavy loads. Faster Backup is usually good when we perform backups at night or at close to zero server usage. We can also customize these settings for each volume on a server.


Thanks

 

Prashant Deshpande

 

 

4 Comments

Filed under Backup, Operating System