Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with ASP page
Message
 
À
26/08/2006 09:57:00
Alan Harris-Reid
Baseline Data Services
Devon, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
01148805
Message ID:
01148858
Vues:
16
Underneath the instanciation I would use an ASP "TYPE" to assure the that the object was craeted and then return the "TYPE" definition to your browser and raise it in an alert box.

If you can install VFP on your server - you could build a foxISAPI - if you want to work VFP with ASP then ick Sthral (west wind) or Claude Fox at AFP might beable to give you more help.

What are you doing? Can you install VFP on the server?


>This is the code from a very simple asp ('old' style, not .net) page I am testing.
>
>
><html>
>This is an ASP test page with various stuff...<br><br>
>< %
>SET oTest=Server.CreateObject("COMTest2.TestClass")
>lcResult = oTest.Test1("Alan")
>lcErrorMsg = oTest.cErrorMsg
>
>IF lcErrorMsg=" " THEN
>   Response.write(lcResult)
>ELSE
>   Response.Write(lcErrorMsg)
>END IF
>% >
></html>
>
>Q1. When I run oTest.Test1("Alan") from within VFP, I get the expected result "My name is Alan", but when called from the asp page within a browser, I get no output (no errors reported).
>
>Q2. If I refresh the page more than twice within a few seconds, I get the following error message and I have to reset IIS before I can proceed any further. However, if I wait long enough, the next refresh shows the page correctly (apart from the problem in Q1 above). I cannot work out why this is happening, especially as the error does not occur on the first 2 displays. Could this be a IIS configuration or caching issue?
>
>
>Error Type:
>Server object, ASP 0177 (0x80004005)
>Unspecified error
>/comtest/comtest.asp, line 7"
>
>Line 7 has the following code
>SET oTest=Server.CreateObject("COMTest2.TestClass")
>
>Has anyone any idea of what might be going on here? Any help would be appreciated.
>
>
>TIA,
>Alan
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform