Hello,
I developed an applicaiton with Netadvantage winform 2008 Vol2 CLR 2.0 and i'am deploying this application on differents computers.
Some computers with Win XP and others with Win7.
Every thing is ok on Win xp but it do not works on win7's computers.
Here is a part of the error message :Can you help me ?
************** Texte de l'exception **************System.Reflection.TargetInvocationException: Une exception a été levée par la cible d'un appel. ---> System.Data.DuplicateNameException: Une colonne nommée 'Inform' appartient déjà à ce DataTable. à System.Data.DataColumnCollection.RegisterColumnName(String name, DataColumn column, DataTable table) à System.Data.DataColumnCollection.BaseAdd(DataColumn column) à System.Data.DataColumnCollection.AddAt(Int32 index, DataColumn column) à System.Data.DataColumnCollection.Add(DataColumn column) à BLS.Board_001.Funct_Board_Evenemen() à BLS.Board_001.Board_001_Load(Object sender, EventArgs e) à System.Windows.Forms.UserControl.OnLoad(EventArgs e) à System.Windows.Forms.UserControl.OnCreateControl() à System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) à System.Windows.Forms.Control.CreateControl() à System.Windows.Forms.Control.RecreateHandleCore() à System.Windows.Forms.Control.OnParentHandleRecreated() à System.Windows.Forms.Control.RecreateHandleCore() à System.Windows.Forms.Control.OnParentHandleRecreated() à System.Windows.Forms.Control.RecreateHandleCore() à System.Windows.Forms.Control.OnParentHandleRecreated() à System.Windows.Forms.Control.RecreateHandleCore() à System.Windows.Forms.Form.RecreateHandleCore() à System.Windows.Forms.Control.RecreateHandle() --- Fin de la trace de la pile d'exception interne ---
I'am still searching.
Please, anybody can help me ?
I have tried to install FrameWorks 3.5 on Win7 computers but it's seems to be already installed.
So i don't know what to do !
Thanks
Is you win 7 machine updated? (framework updates)
yes i update my laptop.
I have tried with FrameWork 4 client.
Do you have suggestions ?
Thank you very much
You can try remote debugging.
COOOOOLLLL it works.
In fact, the problem was just a column in a datatable. I haved 2 columns with the same name.
But it's stange, why it works on win xp and not win 7 ?I thing i will check this point in other life :-)
thank you very much for your help.
It is not stopping there because you don't have the code that raised the exception, but you can easily do that if you download it.
Look here:
http://blogs.msdn.com/b/sburke/archive/2008/01/16/configuring-visual-studio-to-debug-net-framework-source-code.aspx
If you are using .NET 4:
http://blogs.microsoft.co.il/blogs/arik/archive/2010/07/12/step-into-net-framework-4-0-source-code.aspx
It works with thread.sleep but it do not stop on the error message.
i don't know where i can looking for :-(
You can use Thread.Sleep to make the app wait until you attach the debugger.
I have a problem to debbug.
I can attach process without any problem but you can attach just after your project is started.
The problem is that the error message appear directly after the start, so the debugger can't analyze the error.
TY