Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unable to add a property
Message
 
 
À
02/03/2005 09:12:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00991334
Message ID:
00992032
Vues:
22
Michel,

It sounds like you are hitting some runtime error in the code. Does SiteBssfd class have an overridden Error() method somewhere in it's inheritance tree that dumps error logging information to a disk file so that you can examine it? What error number are you getting? On what line of code?

Are you sure the DLL actually has rights to create files in the path you want to them to go? The IIS user might not have sufficient rights.

Have you tried running the class just as a native VFP object inside VFP to debug this? ie:
set classlib to ...
oX = createobject( "commun" )
oX.PrepMessage("")
Have you tried running it as a COM object from inside a VFP clean default environment:
oSession = createobject( "session" )
set datasession to oSession.DataSessionId
oXCOM = createobject( "SiteBssfd.commun" )
oXCOM.PrepMessage("")
>Thanks for your reply I try to remove component from component service and add this component after I add my new property. Nothing change.
>
>Here my code from asp
>-----
>function ConstMesg()
> lcPathXMl = session("repXML")
> Set oPopMsgCrit = server.CreateObject("SiteBssfd.commun")
> lcRetErr = oPopMsgCrit.PrepMessage(lcPathXMl)
>-----------
>Here my code from the class SiteBssfd.commun proc PrepMessage
>
>PARAMETERS pPathXML
>
>LOCAL lcNomTable, lcPathDBFMess
>
>lcPathDBFMess = this.oUtil.CreerPathTemp() && Path temp pour dbf
>
>=this.oTable.ouvTabNom("sb_type_mesg","","NOUP")
>=this.oTable.ouvTabNom("sb_message","","NOUP")
>
>SELECT sb_type_mesg
>SCAN
> lcID_type = sb_type_mesg.id_type
>
> SELECT * ;
> from sb_message ;
> WHERE id_type == lcID_type AND between(datetime(),dt_debut,dt_fin) ;
> order by dt_debut desc;
> INTO TABLE (lcPathDBFMess+"tmp_message.dbf")
>
> =CURSORTOXML("tmp_message",pPathXML + "sb_Message_" + ALLTRIM(STR(lcID_type)) + "XML.xml",3,512)
>
>The parameter pPathXML is empty when I add a property in my class and I try to put a strtofile to check the path and I add some other character like ---. When the class dont have a new property the strtofile work fine and when I had my property the strtofile give nothing, even if the parameter is empty this is suppose to give the character ----. Finally the code crash when he try to do =CURSORTOXML using the path. I did IIS reset and restart the server. Also I try to make a new project, put all the stuff in and recompile my dll.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform