Wrox Programmer Forums
|
ASP Pro Code Clinic As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Pro Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 2nd, 2004, 01:23 AM
Authorized User
 
Join Date: Aug 2003
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP Type Lost????

Was testing some ASP pages I wrote, but they wouldn't load.

Seems the file association has been changed to Photoshop??? Not sure how or why.

No indications of problems from Firewall or Anti-Virus program.

Opened web with ASP page in FrontPage 2000. Right clicked on an ASP page and selected properties. States that file type (ASP) is unknown.

Have XP Pro - Service Pack 2. I am running IIS. I do not use Norton Anti-Virus as this has caused one too many problems in the past.

Any help???

Best regards,
Tom Seroogy
 
Old November 13th, 2004, 09:15 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

;;;Was testing some ASP pages I wrote, but they wouldn't load

Have you run asp pages on this machine before?
How are you trying to run them, what 'exact syntax' are you using?

;;;Seems the file association has been changed to Photoshop??? Not sure how or why

What exactly do you mean by this, are you trying to open the file by double clicking it like a word document? This is the only way I can imagine PS trying to open it, is this what you mean by association?

File associations dont change by themselves. What is the exact name of an example file including its suffix? (make sure you have the 'hide file extentions for known types' disabled to show all full paths of all non hidden files)

BYW:
;;;I do not use Norton Anti-Virus as this has caused one too many problems in the past

I am not aware of any bad blood between ASP and Norton


Wind is your friend
Matt
 
Old November 13th, 2004, 11:04 PM
Authorized User
 
Join Date: Aug 2003
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the response, Matt.

I finally received an answer from Microsoft. It seems that some older versions of Adobe Photo shop will associate the .asp extension with the Photoshop program. This does not occur with later versions of Photoshop.

Still a mystery to me, however, is that I've been working with Photoshop and ASP on this particular computer wihtout incident for almost a year.

Anyway, the fix was to edit the ASP registry key in the HKEY_CLASSES_ROOT registry. It seems Photoshop was the default program. I changed it to "aspfile" and all is well.

As for Norton. The problems I've had haven't necessarily been with ASP, it's been with IIS. I had Norton 2000 and IIS 5.0 (or whatever version came with XP Pro). I had a heck of time trying to make any scripting work.

Two MS IIS writers spent 3 days on the phone with me, running through various diagnostics. It all came down to Norton's script blocker preventing my scripts from running. The only way to make the scripting work properly was to turn off Norton's script blocker.

I've had other troubles as well. My update to Service Pack 2 for Windows XP Pro was a disaster. Almost lost all of my data. Everytime I'd start a program, I'd lose massive amounts of hard drive space for unknown reasons. Even when I ran Disk Cleanup I'd lose more hard driver than files I was deleting.

It eventually snowballed to where I couldn't use the computer at all. I ended up talking to a local Certified Forensic Computer analyst that said it sounded typical of problems he's experienced on computers where Norton was installed.

I ended up having to go back to a restore point, uninstall Norton and reinstall Service Pack 2. Since the update and a change to another anti-virus program, all is well.

Again, thanks for the response.

Best regards,
sabertec2
 
Old November 14th, 2004, 03:10 AM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Glad you have sorted it. I am still wondering what you mean by association with PS. How can PS have anything to do with calling an ASP page with a browser? I remain intrigued.

;;;I had Norton 2000 and IIS 5.0 (or whatever version came with XP Pro). I had a heck of time trying to make any scripting work

Wow, I have never heard of this before especially with IIS 5.0. IIS 6.0 does not run ASP pages until you have addressed the properties that need addressing (this is a security oriented 'good thing')


Wind is your friend
Matt
 
Old November 14th, 2004, 10:54 AM
Authorized User
 
Join Date: Aug 2003
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default

;;;Glad you have sorted it. I am still wondering what you mean by association with PS. How can PS have anything to do with calling an ASP page with a browser? I remain intrigued.

From what I've been told - and, to some degree, experienced - if older versions of Adobe Photoshop (pre-version 7, I'm told) are installed after IIS and/or Frontpage Extensions, Photoshop automatically makes registry entries and associates itself as the running program for ASP files.

Although the pages function and show properly when called from within a browser, anytime you double click an ASP file, it tries to use Photoshop to open and display. Needless to say, this don't work well.

From the mouth of MS, the first solution is to install Photoshop before installing IIS/Frontpage Extensions. Otherwise registry changes need to be made.

In my case, IIS and FP Extensions were installed first. Photoshop ver. 4 was installed at a later date. What's peculiar in my instance is that this problem did not happen until months later. Why the association change took so long or how it occured I can't even begin to speculate.

;;;Wow, I have never heard of this before especially with IIS 5.0. IIS 6.0 does not run ASP pages until you have addressed the properties that need addressing (this is a security oriented 'good thing')

Again, another one of those "single instances." This problem orginated or was first recognized while trying to make a connection to a database. No matter what I did, as long as Norton was turned ON, the connection would not happen, and the page just hung until it timed out. Other scripting was shut down as well, but connectivity to the database was the biggest problem.

After 3 days on the phone with some very nice MS IIS engineers, the problem was isolated. Once Norton was turned OFF, all problems ceased.

I guess I just get all the queer birds?!?

respectfully submitted,
sabertec2
 
Old November 14th, 2004, 06:26 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

;;;anytime you double click an ASP file, it tries to use Photoshop to open and display. Needless to say, this don't work well.

Ahh I thought this would be the only way PS could possibly associate/ try and open an ASP page, It is all very clear now. Rather than go into the registry, you can change the default file associations from within PS's settings/preferences. I personally am not 'registry savvy' and go in there only when absolutely necessary. If you want to double click .asp files form within your file directory, you must also set your code editor to open these type of files. I use Homesite, this has a directory browser window as do most other editors - I believe most open files from within their editor.

;;;From the mouth of MS, the first solution is to install Photoshop before installing IIS/Frontpage Extensions. Otherwise registry changes need to be made.

Or you can just change the default file types from within the programmes as mentioned above.

;;;Why the association change took so long or how it occurred I can't even begin to speculate

mmmm, no reasonable explanation comes to mind on this one



Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
session variable lost after redirec in classic ASP beetle_jaipur Classic ASP Professional 8 November 21st, 2008 02:18 AM
Issue with SqlData Type in ASP.NET snejsnej ASP.NET 1.0 and 1.1 Professional 1 August 30th, 2006 04:47 PM
ASP-SQL Server Type Mismatched Error ghian72 Pro VB 6 1 July 24th, 2006 05:56 AM
declare a ASP variable with a TYPE crmpicco Classic ASP Basics 1 August 17th, 2005 05:52 PM
Mac screen layout (ASP) lost Jorge Classic ASP Basics 4 May 10th, 2005 11:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.