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
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?