Hi,
I'm trying to convert a 5.52 application that's been working perfectly and now I want to upgrade to 7.09.
I did the conversion of the VCXs to PRGs and changed SET CLASSLIB TO to SET PROC
The upgraded app is hitting IIS and the app but as soon as I try to display a web page, it's getting up hung up because the THIS.oTAWPROCESS is not being populated with the TAWProcessConfig class as defined in the Init function in the TAWMain.prg as shown below.
This is not a problem in the current app because I reference the oConfig.oTAWProcess.cHTMLPagePath throughout the app.
So the bottom line is the THIS.oTAWPROCESS property is not being populated.
Any ideas on what's going on?
Thanks
Kevin
FUNCTION Init
THIS.oTAWPROCESS = CREATEOBJECT("TAWPROCESSConfig")
THIS.owwMaint = CREATEOBJECT("wwMaintConfig")
THIS.oHTTP = CREATEOBJECT("HTTPConfig")
THIS.owwPhotoAlbum = CREATEOBJECT("wwPhotoAlbumConfig")
THIS.oWebHits = CREATEOBJECT("WebHitsConfig")
THIS.owwSoapProcess = CREATEOBJECT("wwSoapProcessConfig")
THIS.owwThreads = CREATEOBJECT("wwThreadsConfig")
*** ADD CONFIG INIT CODE ABOVE - DO NOT MOVE THIS LINE ***
ENDFUNC
ENDDEFINE
*EOC TawConfig
*** Configuration class for the TAWPROCESS Process class
DEFINE CLASS TAWPROCESSConfig as wwConfig
cHTMLPagePath = "C:\TAW\"
cDATAPath = ""
cHomePage = ""
ENDDEFINE
Hi Kevin,
Well, have you checked to see why that's failing? Does the class exist? Is that code being called? It should be... Step through the code to see what happens. If the class doesn't exist it should fail and throw an error. Since you're getting past this it sounds to me like that instantiation is actually working.
That code is called from wwServer
when it initializes the application and sets up all the configuration objects that are available.
+++ Rick ---