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.
Michel
>Michel,
>
>When a component is installed it's interface is cast in stone as far as MTS is concerned. If you change the interface (add/remove) a public property or method, you need to remove the component and reinstall it.
>
>If you don't change the interface you can just simply copy the dll over the old dll as long as there are no instances of the dll currently running on the server.
>
>>I will try to uninstall but this is very special. If I remove the property the dll I generate work if I had a property again the dll fail. The method call is prepxml and at the fist line the methode receive a path. Just the next line I put a strtofile whit the path and a dash before. When the dll work I file text.txt is created with the path (- c:\temp\_x9d7fjsd\). If I had a property the file text.txt is not created and I receive an error from this method at line 30. At this line we try to create an xml using this path.
Précédent
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