Avatar of Lico_w
Lico_w
 asked on

ASP - Microsoft VBScript compilation error '800a0411' Name redefined

I am migrating an ASP app to IIS6 from IIS5 it would appear that the global application object is handled differently. In the app currently the there is an include line for each page to include the global variable e.g. <!-- #include file="inc/applicationVariables.asp" -->

However when you go from one page to another I get the error in the title. It appears it is moaning about a constant value being changed (I guess 'cus it's re-reading it..?) However if I remove the include file line then I get an error saying:

Microsoft VBScript runtime error '800a01a8'
Object required: 'application(...)'
ASPVB ScriptMicrosoft IIS Web Server

Avatar of undefined
Last Comment
Lico_w

8/22/2022 - Mon
Paul Jackson

Remove the constant out into another file and only include that in your initiaal page, or just put the constant at the top of your initial page.
Lico_w

ASKER
No good, when I do either it states my variables haven't been declared when I move to the next page. For example:

Microsoft VBScript runtime error '800a01f4'
Variable is undefined: 'applicationRoot'

Any ideas how I can set these global variables without re-declaring them?
ASKER CERTIFIED SOLUTION
Paul Jackson

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Lico_w

ASKER
OK thanks, will award points soon, but want to keep Q open for a couple of days whilst I reconfigure.
Your help has saved me hundreds of hours of internet surfing.
fblack61
SOLUTION
Lico_w

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Lico_w

ASKER
.