Information générale
Catégorie:
Applications Internet
Titre:
FoxPro DLL's with IIS
Is there a trick to using FoxPro DLL's with IIS?
Here is a synopsis of the problem I am having.
I have created a DLL using Visual FoxPro that creates an extract file and
then calls Crystal Reports to print a report from that extract.
I have created an ASP that calls the Visual FoxPro DLL. The ASP code looks
like this:
dim objPara3B
set objPara3B = Server.CreateObject("BPAReports.Para3B")
objPara3B.FileLocation = "E:\kwik\bpa\Para3B.HTM"
objPara3B.ExtractReport
objPara3B.PrintReport
When the ASP is ran it fails on the Server.CreateObject. The error received
is:
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/BPA/PARA3B.asp, line 5
Invalid class string
I also created a VB DLL that simply send "Hello World" to the browser. This
DLL works just fine. The ASP code looks like this:
dim objVBTest
set objVBTest = Server.CreateObject("VBTest.VBTestClass")
Response.write objVBTest.HelloWorld
I have searched Microsofts web site but cannot find any reference to this
exact problem.
If I create the extract file on my PC (not with ASP) and then run the report
from the web using ASP the report printing works fine. So it appears to be
a problem calling a Visual FoxPro DLL from ASP.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement