MINDdrops.com

ASP Tutorials

 

Getting ASP to work in Windows XP

Listed below are the steps I found necessary to get ASP working on a Toshiba Satellite laptop computer with Windows XP Professional installed.  Hopefully these steps will work for you. If not, they may at least point you in the right direction.

Step 1  Check the settings of your anti-virus software.  My Toshiba Satellite came with Norton AntiVirus installed.  In order create and write to text files with ASP on your local computer you need to turn Script Blocking OFF.  The Default is ON which causes IIS.1 to crash when you use your browser to access an ASP page (http://localhost/inetpub/wwwroot/MyFolder/mypage.asp) containing a FileSystemObject. See the IISFAQ.com  article for more details.

Step 2 Turn off  Simple File Sharing in Windows XP. Click Start > MyComputer > Tools > Folder Options > View tab. Scroll to bottom of Advanced Settings and deselect  "Use simple file sharing (Recommended)"  See Minasim (page 78, Chapter 18) for further details.

Step 3 Set security permissions for the folder containing your ASP file.  In Windows XP click Start > MyComputer .  Find the folder in  .../wwwroot that you want to give read, write, create permissions.  Right click this folder and click on Properties in the drop down menu.  Click the Security tab. In the Group or Users Names window you will see a list of names. Click on the Administrator and you will see that all the permissions are granted to the administrator. Click on the MyName(Toshiba-User ) and in the Permissions window click Full Control.  Scroll to the bottom of the User Names window and click on Users(TOSHIBA-USER\Users).  In the Permissions window click Full Control. Click OK.  For further details see Minasism (page 79, Chapter 18).

Surprisingly, to me at least, the preceding list of steps appear to be independent of the various security and permission settings in Microsoft Internet Information Server (IIS).  If you want to explore the security and permissions settings of IIS, click Start > Control Panel (the classical view). Double click Administrative Tools. You may want to check out Local Security Policy, Internet Information Services, or Computer Management to see if you can find any settings that may need changing.  Initially I used this approach but without success. It was only after I did the three steps listed above that  I was able to work successfully with ASP.  For further details on IIS see O'Brien (Chapter 7 and 8) and Stanek (Chapter 5).

The steps listed above were applied to an isolated laptop computer that was not connected to a network or the internet.  If your computer is not isolated,  for security purposes you may want to choose a more restricted set of permissions.

 

References

IISFAQ

Minasim, Mark, Mastering Windows XP Professional, SYBEX, 2002

O'Brien, Gerry, Microsoft IIS 5 Administration, Sams, 2000

Stanek, William R., Microsoft Windows 2000 and IIS 5.0, Microsoft Press, 2001

 

Keyword Search Results

1.  Try the following search words at www.google.com. (Be sure to include the quotation marks.)

                                                                      Pages sited by Google

  "ASP on IIS"                                                           554

   "script blocking"                                                   5,640

   "ASP doesn't work"                                                109

   "Problems with ASP"                                              506

 


2002-7  All rights reserved.  MINDdrops.com