IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

C# Discussion :

Executable ne fonctionnant pas sur certaines machines


Sujet :

C#

  1. #1
    Membre habitué
    Homme Profil pro
    Étudiant
    Inscrit en
    Mai 2014
    Messages
    10
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Sarthe (Pays de la Loire)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Mai 2014
    Messages : 10
    Par défaut Executable ne fonctionnant pas sur certaines machines
    Bonjour,

    Je suis actuellement en stage et j'ai développé une application C# WPF avec Visual studio 2010. Tout allait bien jusqu'aux test sur les machines qui allaient utiliser l'application. En effet sur certaines machines le programme fonctionne parfaitement (comme sur le PC de dev) et sur certains je vois dans le gestionnaire de tâches le processus ce lancer puis disparaitre 1/2 secondes après sans aucun message d'erreur ou autre.
    Il y a 2 types de machines :
    • les postes windows XP 32bits
    • les postes windows 7 64bits

    Sur les postes windows 7 aucun problème. Pour XP, le PC de dev, et d'autres font fonctionner le programme, et d'autres ont le problème. Les postes ont globalement les mêmes caractéristiques et ont la même version du framework .NET (4.0.0) et la dll sqlite utilisé par le programme est dans le dossier d’exécution.

    J'ai essayé l’exécution direct du .exe (avec le projet publié ou non par VS), l'install OneClick, aucune de ces solutions ne fonctionne.

    Dans mes sauvegardes du projet une version plus ancienne du programme, l’exécution du programme fonctionne sur les machines n'acceptant pas la nouvelle version mais la dll SQLite n'était pas trouvée lors de la création de la BDD.

    On est à court d'idée pour trouver d’où viens le bug.

    d'avance merci.

  2. #2
    Membre Expert
    Avatar de Pragmateek
    Homme Profil pro
    Formateur expert .Net/C#
    Inscrit en
    Mars 2006
    Messages
    2 635
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 39
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Formateur expert .Net/C#
    Secteur : Conseil

    Informations forums :
    Inscription : Mars 2006
    Messages : 2 635
    Par défaut
    Ça fleure mauvais le souci d'affinité binaire.

    Essaye de lancer ton exécutable depuis la console (CMD) tu devrais obtenir une exception.
    Si ce n'est pas le cas () consulte les logs Windows via l'Event Viewer il devrait y avoir quelque chose, à voir si c'est exploitable...

  3. #3
    Membre habitué
    Homme Profil pro
    Étudiant
    Inscrit en
    Mai 2014
    Messages
    10
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Sarthe (Pays de la Loire)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Mai 2014
    Messages : 10
    Par défaut
    Bonjour,
    Le fait de lancer l'exe depuis l'invite de cmd ne change rien et pas de message d'erreur.
    Avec l'event Viewer plus de succès :
    On à une erreur .NET Runtime événement 1026 et pas de catégorie
    voila le message d'erreur avec la stacktrace :
    Application: PACCA9-V2.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.Windows.Markup.XamlParseException
    Stack:
    at System.Windows.Markup.XamlReader.RewrapException(System.Exception, System.Xaml.IXamlLineInfo, System.Uri)
    at System.Windows.Markup.WpfXamlLoader.Load(System.Xaml.XamlReader, System.Xaml.IXamlObjectWriterFactory, Boolean, System.Object, System.Xaml.XamlObjectWriterSettings, System.Uri)
    at System.Windows.Markup.WpfXamlLoader.LoadBaml(System.Xaml.XamlReader, Boolean, System.Object, System.Xaml.Permissions.XamlAccessLevel, System.Uri)
    at System.Windows.Markup.XamlReader.LoadBaml(System.IO.Stream, System.Windows.Markup.ParserContext, System.Object, Boolean)
    at System.Windows.Application.LoadBamlStreamWithSyncInfo(System.IO.Stream, System.Windows.Markup.ParserContext)
    at System.Windows.Application.LoadComponent(System.Uri, Boolean)
    at System.Windows.Application.DoStartup()
    at System.Windows.Application.<.ctor>b__1(System.Object)
    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
    at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
    at System.Windows.Threading.DispatcherOperation.InvokeImpl()
    at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
    at System.Threading.ExecutionContext.runTryCode(System.Object)
    at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode, CleanupCode, System.Object)
    at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
    at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
    at System.Windows.Threading.DispatcherOperation.Invoke()
    at System.Windows.Threading.Dispatcher.ProcessQueue()
    at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
    at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
    at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
    at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
    at System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
    at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
    at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
    at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
    at System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
    at System.Windows.Application.RunDispatcher(System.Object)
    at System.Windows.Application.RunInternal(System.Windows.Window)
    at System.Windows.Application.Run(System.Windows.Window)
    at PACCA9_V2.App.Main()
    De ce que je crois comprendre le XAML serait en cause. j'ai donc changé mon XAML et mon code behind de ma fenêtre pour une version plus ancienne qui fonctionnait partout mais pas terminé et la miracle l'application se lance (la dll SQLite est manquante ,mais bon c'est mieux que rien ). le problème viens donc surement du code ajouté entre temps.

  4. #4
    Membre Expert
    Avatar de Pragmateek
    Homme Profil pro
    Formateur expert .Net/C#
    Inscrit en
    Mars 2006
    Messages
    2 635
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 39
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Formateur expert .Net/C#
    Secteur : Conseil

    Informations forums :
    Inscription : Mars 2006
    Messages : 2 635
    Par défaut
    Bon au moins on sait d'où vient le problème et tu as un "workaround".

    Donc maintenant il faudrait que tu nous montres le XAML qui fait planter...

  5. #5
    Membre habitué
    Homme Profil pro
    Étudiant
    Inscrit en
    Mai 2014
    Messages
    10
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Sarthe (Pays de la Loire)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Mai 2014
    Messages : 10
    Par défaut
    Voila le XAML fautif. Avec notepadd++ et le plugin pour comparer 2 fichiers j'ai pu commencer à chercher les différences qui pourrait causer ce genre de problème mais c'est mon 1er projet en C# / WPF donc je manque de pratique

    Code xaml : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    <Window x:Class="PACCA9_V2.MainWindow"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            Title="PACCA9_V2" WindowStartupLocation="CenterScreen" 
            Activated="Window_Activated" KeyDown="Window_KeyDown" Closing="Window_Closing" Closed="Window_Closed" FontFamily="Bauhaus 93" Width="{StaticResource {x:Static SystemParameters.FullPrimaryScreenWidthKey}}" Height="{StaticResource {x:Static SystemParameters.FullPrimaryScreenHeightKey}}" MinHeight="780" MinWidth="1090">
        <!-- Grille principale de la fenêtre-->
        <Grid>
            <Grid.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="Black" Offset="1" />
                    <GradientStop Color="#E317355D" Offset="0.767" />
                </LinearGradientBrush>
            </Grid.Background>
            <Grid.ColumnDefinitions> <!-- définition des colonnes de la grille (3 colonnes)-->
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
     
        <!-- Partie 
            Importation-->
            <ScrollViewer VerticalScrollBarVisibility="Auto">
                <Grid Grid.Column="0" Name="gridImport" HorizontalAlignment="Stretch">
                    <Grid.RowDefinitions> <!-- Définition des lignes de la grille pour partie importation (7 lignes)-->
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>
                    <Label Grid.Row="0" Content="Importation des Fichiers" HorizontalAlignment="Stretch" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="{StaticResource {x:Static SystemParameters.WindowCaptionHeightKey}}" FontFamily="Bauhaus 93" BorderBrush="Black" BorderThickness="0,0,0,5">
                        <Label.Background>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFF78137" Offset="0" />
                                <GradientStop Color="#EBF59D37" Offset="1" />
                            </LinearGradientBrush>
                        </Label.Background>
                    </Label>
                    <!-- Sélection des faces-->
                    <DockPanel Grid.Row="1" Grid.Column="0">
                        <DockPanel.Background>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFF78137" Offset="0" />
                                <GradientStop Color="#EBF59D37" Offset="1" />
                            </LinearGradientBrush>
                        </DockPanel.Background>
                        <TextBlock Text="sélection des faces à importer : " TextAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Center" FontFamily="Bauhaus 93" FontSize="18" Padding="5,0,5,0" Margin="0,10,0,0" TextWrapping="Wrap" DockPanel.Dock="Top" />
                        <CheckBox Name="checkBoxTop" Content="TOP" VerticalAlignment="Center" HorizontalAlignment="Left" Checked="checkBoxTop_Checked" Unchecked="checkBoxTop_Unchecked" Padding="2,0,0,0" FontFamily="Bauhaus 93" FontSize="18" HorizontalContentAlignment="Center" FlowDirection="LeftToRight" Focusable="True" Margin="100,0,0,0" />
                        <CheckBox Name="checkBoxBot" Content="BOT" VerticalAlignment="Center" HorizontalAlignment="Right" Checked="checkBoxBot_Checked" Unchecked="checkBoxBot_Unchecked" Padding="2,0,0,0" FontFamily="Bauhaus 93" FontSize="18" HorizontalContentAlignment="Center" Margin="0,0,100,0" />
                    </DockPanel>
     
                    <!-- Face Top -->
                    <Expander Grid.Row="2" Grid.Column="0" Name="expanderTop" Header="TOP" IsExpanded="True" IsEnabled="False" Foreground="Black">
                        <StackPanel Background="#EBF59D37">
                            <DockPanel VerticalAlignment="Center" HorizontalAlignment="Stretch" Margin="10" >
                                <Button Name="ButtonCA9" Content="CA9 run 2" Padding="5,1,5,1" Click="CA9TOP_Button_Click" />
                                <TextBox Name="cheminCA9TOP" Text=""/>
                            </DockPanel>
                            <DockPanel VerticalAlignment="Center" HorizontalAlignment="Stretch" Margin="10" >
                                <Button Name="ButtonATD" Content="ATD run 1" Padding="5,1,5,1" Click="ATDTOP_Button_Click" />
                                <TextBox Name="cheminATDTOP" Text=""/>
                            </DockPanel>
                        </StackPanel>
                    </Expander>
                    <!-- Face Bot-->
                    <Expander Grid.Row="3" Grid.Column="0" Name="expanderBot" Header="BOT" IsExpanded="True" IsEnabled="False" Foreground="Black" >
                    <StackPanel Background="#EBF59D37">
                        <DockPanel VerticalAlignment="Top" HorizontalAlignment="Stretch" Margin="10">
                            <Button Name="ButtonCA9Bot" Content="CA9 run 2" Padding="5,1,5,1" Click="CA9BOT_Button_Click"/>
                            <TextBox Name="cheminCA9BOT" Text=""/>
                        </DockPanel>
                        <DockPanel VerticalAlignment="Bottom" HorizontalAlignment="Stretch" Margin="10" >
                            <Button Name="ButtonATDBot" Content="ATD run 1" Padding="5,1,5,1" Click="ATDBOT_Button_Click" />
                            <TextBox Name="cheminATDBOT" Text="" />
                        </DockPanel>
                    </StackPanel>
                </Expander>
     
                    <!-- Nomenclature -->
                    <Expander Grid.Row="4" Grid.Column="0" Name="expanderBOM" Header="Nomenclature" IsExpanded="True" Foreground="Black">
                        <StackPanel Background="#EBF59D37">
                            <DockPanel VerticalAlignment="Top" HorizontalAlignment="Stretch" Margin="10" >
                                <Button Name="ButtonBOM" Content="BOM run 2" Padding="3,1" Click="ButtonBOM_Click" />
                                <TextBox Name="cheminBOM" Text=""/>
                            </DockPanel>
                            <DockPanel VerticalAlignment="Bottom" HorizontalAlignment="Stretch" Margin="10" >
                                <Button Name="ButtonBOMOld" Content="BOM run 1" Padding="5,1,5,1" Click="ButtonBOMOld_Click" />
                                <TextBox Name="cheminBOMOld" Text=""/>
                            </DockPanel>
                        </StackPanel>
                    </Expander>
     
                    <!-- Net List -->
                    <Expander Grid.Row="5" Grid.Column="0" Name="expanderNET" Header="NetList" IsExpanded="True" >
                        <StackPanel Background="#EBF59D37" Margin="0">
                            <DockPanel VerticalAlignment="Top" HorizontalAlignment="Stretch" Margin="10,10,10,10" >
                                <Button Name="ButtonNET" Content="NetList run 2" Padding="5,1,5,1" Click="ButtonNET_Click"/>
                                <TextBox Name="cheminNET" Text="" />
                            </DockPanel>
                            <DockPanel VerticalAlignment="Bottom" HorizontalAlignment="Stretch" Margin="10" >
                                <Button Name="ButtonNETOld" Content="NetList run 1" Padding="5,1,5,1" Click="ButtonNETOld_Click" />
                                <TextBox Name="cheminNETOld" Text=""/>
                            </DockPanel>
                        </StackPanel>
                    </Expander>
     
                    <!-- Nails -->
                    <Expander Grid.Row="6" Grid.Column="0" Name="expanderNAILS" Header="Nails" IsExpanded="True" Foreground="Black">
                        <StackPanel Background="#EBF59D37">
                            <StackPanel VerticalAlignment="Top" HorizontalAlignment="Stretch" Orientation="Horizontal">
                                <RadioButton Name="RButtonFab" Content="FabMaster" FontFamily="Arial" FontWeight="Black" Padding="5,1,5,1" Margin="15,5" VerticalAlignment="Center" HorizontalAlignment="Left" Checked="RButton_Checked"/>
                                <RadioButton Name="RButtonTestWay" Content="TestWay" FontFamily="Arial" FontWeight="Black" Padding="5,1,5,1" Margin="15,5" VerticalAlignment="Center" HorizontalAlignment="Right" Checked="RButton_Checked" />
                            </StackPanel>
                            <DockPanel Name="NailsPannel1" VerticalAlignment="Center" HorizontalAlignment="Stretch" IsEnabled="False" Margin="10">
                                <Button Name="ButtonNAILS" Content="Nails run 2" Padding="5,1,5,1" Click="ButtonNAILS_Click" VerticalAlignment="Center" />
                                <TextBox Name="cheminNAILS" Text="" VerticalAlignment="Center" />
                            </DockPanel>
                            <DockPanel Name="NailsPannel2" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" IsEnabled="False" Margin="10" >
                                <Button Name="ButtonNAILSOld" Content="Nails run 1" Padding="5,1,5,1" Click="ButtonNAILSOld_Click" VerticalAlignment="Center" />
                                <TextBox Name="cheminNAILSOld" Text="" VerticalAlignment="Center" />
                            </DockPanel>
                        </StackPanel>
                    </Expander>
                </Grid>
            </ScrollViewer>
     
            <!-- Partie
            Centrale -->
            <Grid Grid.Column="1" Name="gridMid" HorizontalAlignment="Stretch" ShowGridLines="False">
                <Grid.RowDefinitions>
                    <!-- Définition des lignes de la grille pour partie importation (6 lignes)-->
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <Label Grid.Row="0" Name="etapeSuivante" Content="En Attente de sélection de / des faces" Padding="10,10,10,10" Height="Auto" Width="Auto" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="Bauhaus 93" FontSize="16" FontStretch="Normal" Foreground="White" FontStyle="Normal" FontWeight="ExtraLight" Background="{Binding}" />
                <Button Grid.Row="1" Name="importButton" Content="Importer les Fichiers" Click="importButton_Click" IsEnabled="False" HorizontalAlignment="Center" VerticalAlignment="Top" Height="50" Width="auto" Padding="10" Margin="20" />
                <Image Name="logo" Grid.Row="2" Grid.RowSpan="2" Source="Ressources/LOGO_PACCA9.png" ImageFailed="Image_ImageFailed" />
                <ProgressBar Grid.Row="4" Name="importProgress" Minimum="0" Maximum="100"  HorizontalAlignment="Center" VerticalAlignment="Bottom" Height="30" Width="300"  AllowDrop="False"  BorderBrush="Black" Margin="0,0,0,30" />
                <StackPanel Grid.Row="5" Name="boutonPannel" VerticalAlignment="Center" HorizontalAlignment="Center" Orientation="Horizontal" Width="auto" Background="{Binding}">
                    <Button Grid.Row="5" Name="stopButton" Content="Stop" Click="stopButton_Click"  MaxHeight="90" Padding="10,10,10,10" HorizontalAlignment="Center" Margin="20"/>
                    <Button Grid.Row="5" Name="quitButton" Content= "Quitter PACCA9" Click="quitButton_Click" MaxHeight="90" Padding="10,10,10,10" HorizontalAlignment="Center" Margin="20" />
                </StackPanel>
            </Grid>
            <!-- partie 
             de droite -->
            <TabControl Grid.Column="2" Name="gestionnaireOnglet" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" TabStripPlacement="Left" FlowDirection="LeftToRight" VerticalContentAlignment="Center" Padding="0">
                <TabControl.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFF78137" Offset="0" />
                        <GradientStop Color="#EBF59D37" Offset="1" />
                    </LinearGradientBrush>
                </TabControl.Background>
                <TabItem Header="Progression" Name="progressionTab" FlowDirection="LeftToRight" Padding="12,2">
                    <Grid>
                        <Grid.RowDefinitions>
                            <!-- Définition des lignes de la grille pour partie Sauvegarde (7 lignes)-->
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Label Grid.Row="0" Content="Traitements" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="{StaticResource {x:Static SystemParameters.WindowCaptionHeightKey}}" FontFamily="Bauhaus 93" FontWeight="Normal" BorderBrush="Black" BorderThickness="0,0,0,5"/>
                        <DockPanel Grid.Row="3" Name="traitChoixPannel" Width="auto" HorizontalAlignment="Stretch">
                            <TextBlock Text="sélection des faces à traiter : (si différent du choix initiale)" TextAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Center" FontFamily="Bauhaus 93" FontSize="18" Margin="0,10,0,0" FontWeight="Normal" TextWrapping="Wrap" DockPanel.Dock="Top" />
                            <CheckBox Name="checkBoxTopTrait" Content="TOP" VerticalAlignment="Center" HorizontalAlignment="Left" HorizontalContentAlignment="Center"  Margin="30,0,0,0" Padding="5,0,0,0" FontFamily="Bauhaus 93" FontSize="18" FontWeight="Normal" />
                            <CheckBox Name="checkBoxBotTrait" Content="BOT" VerticalAlignment="Center" HorizontalAlignment="Right" HorizontalContentAlignment="Center" Margin="0,0,30,0" Padding="5,0,0,0" FontFamily="Bauhaus 93" FontSize="18" FontWeight="Normal" />
                        </DockPanel>
                        <StackPanel Grid.Row="4">
                            <TextBlock Name="txtEstimation" Text="Temps restant : X minutes" TextAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Center" FontFamily="Bauhaus 93" FontSize="18" Margin="0,10,0,0" FontWeight="Normal" TextWrapping="Wrap" />
                            <ProgressBar Name="traitementProgress" Minimum="0" Maximum="3420"  HorizontalAlignment="Center" VerticalAlignment="Center" Height="30" MinWidth="230" Width="auto" AllowDrop="False" Margin="10" />
                        </StackPanel>
                        <Button Grid.Row="5" Name="traitementButton" Content="Lancer PACCA9 V2" Click="traitementButton_Click" IsEnabled="True" HorizontalAlignment="Center" VerticalAlignment="Top" Height="auto" Width="auto" Padding="10" />
                    </Grid>
                </TabItem>
                <TabItem Header="Résultats" Name="resultatsTab">
                    <Grid>
                        <Grid.RowDefinitions>
                            <!-- Définition des lignes de la grille pour partie Sauvegarde (10 lignes)-->
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Label Grid.Row="0" Content="Résultats PACCA9" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="{StaticResource {x:Static SystemParameters.WindowCaptionHeightKey}}" FontFamily="Bauhaus 93" FontWeight="Normal" BorderBrush="Black" BorderThickness="0,0,0,5"/>
                        <TextBlock Grid.Row="2" Grid.RowSpan="2" Name="SauvegardeInstruction" TextWrapping="Wrap" Width="auto" Text="Choisissez le nom de fichier pour les CA9 de sortie, un suffixe BOT ou TOP sera ajouté au fichier correspondant." TextAlignment="Center" FontSize="13" Margin="10" />
                        <TextBox Grid.Row="3" Name="cheminSaveCA9" HorizontalAlignment="Center" VerticalAlignment="Center" MinHeight="25" Height="auto" Width="auto"  MinWidth="225" />
                        <Button Grid.Row="4" Name="saveCA9" Content="Sauvegarder CA9" Click="saveCA9_Click" IsEnabled="True" HorizontalAlignment="Center" VerticalAlignment="Center" Height="35" />
                        <DockPanel Grid.Row="5" HorizontalAlignment="Stretch" FlowDirection="LeftToRight">
                            <Image Source="Ressources/jump.png" Height="48" Width="48" Margin="10" VerticalAlignment="Center"/>
                            <TextBlock Name="jumptTextBox" Text="Nombre de lignes en jump lors du run 1 : " FontSize="12" VerticalAlignment="Center" Margin="10" Height="auto" TextWrapping="Wrap" />
                        </DockPanel>
                        <DockPanel Grid.Row="6" HorizontalAlignment="Stretch">
                            <Image Source="Ressources/Circle_Red.png" Height="48" Width="48" Margin="10" />
                            <TextBlock Name= "rougeTextBlock" Text="Nombre de ligne avec un feu Rouge : " FontSize="12" Margin="10" Height="auto" VerticalAlignment="Center" TextTrimming="None" TextWrapping="Wrap" />
                        </DockPanel>
                        <DockPanel Grid.Row="7" HorizontalAlignment="Stretch">
                            <Image Source="Ressources/Circle_Orange.png" Height="48" Width="48" Margin="10" />
                            <TextBlock Name= "orangeTextBlock" Text="Nombre de ligne avec un feu Orange : " FontSize="12" Margin="10" Height="auto" VerticalAlignment="Center" TextTrimming="None" TextWrapping="Wrap" />
                        </DockPanel>
                        <DockPanel Grid.Row="8" HorizontalAlignment="Stretch" FlowDirection="LeftToRight">
                            <Image Source="Ressources/Circle_Green.png" Height="48" Width="48" Margin="10" VerticalAlignment="Center"/>
                            <TextBlock Name="greenTextBlock" Text="Nombre de ligne avec un feu Vert : " FontSize="12" VerticalAlignment="Center" Margin="10" Height="auto" TextWrapping="Wrap" />
                        </DockPanel>
                    </Grid>
                </TabItem>
            </TabControl>
            <Grid />
        </Grid>
    </Window>

    MaJ : J'ai résolue le preoblème venait du style pour un label que j'avais mis dans App.xaml, merci pour ton aide

  6. #6
    Membre Expert
    Avatar de Pragmateek
    Homme Profil pro
    Formateur expert .Net/C#
    Inscrit en
    Mars 2006
    Messages
    2 635
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 39
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Formateur expert .Net/C#
    Secteur : Conseil

    Informations forums :
    Inscription : Mars 2006
    Messages : 2 635
    Par défaut
    Rien de particulièrement suspect, si ce n'est peut être la police non présente "Bauhaus 93" mais je ne pense pas que ça provoque des crashs, au pire ça devrait utiliser une police par défaut.

    Donc procède par dichotomie :
    - déjà vire tout ce qui est au sein de l'élément Window, i.e. toute la Grid et vérifie si ça crash toujours,
    - si oui le souci est surement dans une des propriétés de Window
    - si non élimine la moitié du code à l'intérieur et de proche en proche identifie le code coupable.

  7. #7
    Membre habitué
    Homme Profil pro
    Étudiant
    Inscrit en
    Mai 2014
    Messages
    10
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Sarthe (Pays de la Loire)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Mai 2014
    Messages : 10
    Par défaut evolution du problème
    Merci pour tes conseils j'ai pu déboguer mon interface, il me reste un problème. Les machine qui n'arrivait pas à charger l'interface n'arrive pas à lancer la dll SQLite qui ce trouve pourtant à côté de l’exécutable. J'ai vérifié les autres machines n'ont pas la dll installée de base et prennent bien celle à côté.

  8. #8
    Membre Expert
    Avatar de Pragmateek
    Homme Profil pro
    Formateur expert .Net/C#
    Inscrit en
    Mars 2006
    Messages
    2 635
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 39
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Formateur expert .Net/C#
    Secteur : Conseil

    Informations forums :
    Inscription : Mars 2006
    Messages : 2 635
    Par défaut
    Tu as bien les deux versions de SQLite (x86 et x64) ?

    Active les fusion-logs, tu devrais avoir une erreur détaillée de ce qui ne va pas, indiquant notamment où le CLR a cherché, ce qu'il a trouvé et pourquoi ça ne lui a pas plu.

  9. #9
    Membre habitué
    Homme Profil pro
    Étudiant
    Inscrit en
    Mai 2014
    Messages
    10
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Sarthe (Pays de la Loire)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Mai 2014
    Messages : 10
    Par défaut
    Non, j'ai que la version x86, mais les PC windows 7 en 64bit fonctionnent sans problème et trouvent la dll. Par contre certains PC windows XP en 32 bit ne la trouve pas.

    Pour les fusions Logs, je vois comment les activer sur un PC avec visual studio, mais seul le PC ou je développe à une licence. De plus l'installation de logiciel est restreinte.

  10. #10
    Membre Expert
    Avatar de Pragmateek
    Homme Profil pro
    Formateur expert .Net/C#
    Inscrit en
    Mars 2006
    Messages
    2 635
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 39
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Formateur expert .Net/C#
    Secteur : Conseil

    Informations forums :
    Inscription : Mars 2006
    Messages : 2 635
    Par défaut
    L'activation devrait se faire sans soucis, par contre pour les exploiter facilement il faut en effet disposer du Fusion Log Viewer qui ne sera pas forcément déjà installé.

    Sinon tu peux rechecker les logs Windows qui seront peut être assez bavards.

  11. #11
    Membre habitué
    Homme Profil pro
    Étudiant
    Inscrit en
    Mai 2014
    Messages
    10
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Sarthe (Pays de la Loire)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Mai 2014
    Messages : 10
    Par défaut
    J'ai activé les fusion-logs sur une machine récalcitrantes. J'ai trouvé le problèmes suivants:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    *** Assembly Binder Log Entry  (05/08/2014 @ 16:09:06) ***
     
    The operation failed.
    Bind result: hr = 0x80070002. Le fichier spécifié est introuvable.
     
    Assembly manager loaded from:  C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\clr.dll
    Running under executable  file: /************************\version APPLICATION-V2\release\05-08-14_16-07\PACCA9-V2.exe
    --- A detailed error log follows. 
     
    === Pre-bind state information ===
    LOG: User = *************
    LOG: DisplayName = PresentationFramework.resources, Version=4.0.0.0, Culture=fr-FR, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file: /************************/version APPLICATION-V2/release/05-08-14_16-07/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = APPLICATION-V2.exe
    Calling assembly : PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: file: /************************\version APPLICATION-V2\release\05-08-14_16-07\APPLICATION-V2.exe.Config
    LOG: Using host configuration file: 
    LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: PresentationFramework.resources, Version=4.0.0.0, Culture=fr-FR, PublicKeyToken=31bf3856ad364e35
    LOG: GAC Lookup was unsuccessful.
    LOG: Attempting download of new URL file: /************************/version APPLICATION-V2/release/05-08-14_16-07/fr-FR/PresentationFramework.resources.DLL.
    LOG: Attempting download of new URL file: /************************/version APPLICATION-V2/release/05-08-14_16-07/fr-FR/PresentationFramework.resources/PresentationFramework.resources.DLL.
    LOG: Attempting download of new URL file: /************************/version APPLICATION-V2/release/05-08-14_16-07/fr-FR/PresentationFramework.resources.EXE.
    LOG: Attempting download of new URL file: /************************/version APPLICATION-V2/release/05-08-14_16-07/fr-FR/PresentationFramework.resources/PresentationFramework.resources.EXE.
    LOG: All probing URLs attempted and failed.
    Le plus gros problème est que je n'ai pas de dossier fr-FR dans mon application. Après il essaye avec différents nom de dossier (ex : fr) mais, il échoue à chaque fois pour cette dll.

  12. #12
    Membre Expert
    Avatar de Pragmateek
    Homme Profil pro
    Formateur expert .Net/C#
    Inscrit en
    Mars 2006
    Messages
    2 635
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 39
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Formateur expert .Net/C#
    Secteur : Conseil

    Informations forums :
    Inscription : Mars 2006
    Messages : 2 635
    Par défaut
    Je ne pense pas que ce soit le souci, c'est un faux positif, certains assemblies sont cherchés mais rarement là, comme les assemblies satellites de ressources.

    Tu devrais avoir d'autres échecs de binding, critiques cette fois.

  13. #13
    Membre habitué
    Homme Profil pro
    Étudiant
    Inscrit en
    Mai 2014
    Messages
    10
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Sarthe (Pays de la Loire)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Mai 2014
    Messages : 10
    Par défaut
    Je pense avoir trouvé l'erreur de binding :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    *** Assembly Binder Log Entry  (06/08/2014 @ 11:00:20) ***
     
    The operation failed.
    Bind result: hr = 0x80070002. Le fichier spécifié est introuvable.
     
    Assembly manager loaded from:  C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\clr.dll
    Running under executable  RACINE:\****************************************************\version APPLICATION-V2\release\05-08-14_16-07\APPLICATION-V2.exe
    --- A detailed error log follows. 
     
    LOG: Start binding of native image PACCA9-V2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null, processorArchitecture=x86.
    WRN: No matching native image found.
    LOG: Bind to native image assembly did not succeed. Use IL image.
    LOG: IL assembly loaded from RACINE:\****************************************************\version APPLICATION-V2\release\05-08-14_16-07\PACCA9-V2.exe.

  14. #14
    Membre Expert
    Avatar de Pragmateek
    Homme Profil pro
    Formateur expert .Net/C#
    Inscrit en
    Mars 2006
    Messages
    2 635
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 39
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Formateur expert .Net/C#
    Secteur : Conseil

    Informations forums :
    Inscription : Mars 2006
    Messages : 2 635
    Par défaut
    Je ne pense pas non plus, ça doit être NGen qui cherche des assemblies pré-compilés, normal qu'il n'en trouve pas si tu n'as rien prévu de tel.

  15. #15
    Membre habitué
    Homme Profil pro
    Étudiant
    Inscrit en
    Mai 2014
    Messages
    10
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Sarthe (Pays de la Loire)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Mai 2014
    Messages : 10
    Par défaut
    J'ai remarqué que dans les logs que la dll System.Data.SQLite est correctement chargé, mais aucune trace du chargement de la dll System.Data.SQLite.Linq qui est nécessaire aussi.
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    *** Assembly Binder Log Entry  (06/08/2014 @ 11:00:21) ***
     
    The operation was successful.
    Bind result: hr = 0x0. Opération réussie.
     
    Assembly manager loaded from:  C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\clr.dll
    Running under executable  RACINE\****************************************************\version APPLICATION-V2\release\05-08-14_16-07\APPLICATION-V2.exe
    --- A detailed error log follows. 
     
    === Pre-bind state information ===
    LOG: User = *********************
    LOG: DisplayName = System.Data.SQLite, Version=1.0.92.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139
     (Fully-specified)
    LOG: Appbase = file:///RACINE/ ****************************************************/version APPLICATION-V2/release/05-08-14_16-07/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = APPLICATION-V2.exe
    Calling assembly : APPLICATION-V2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: RACINE\****************************************************\version APPLICATION-V2\release\05-08-14_16-07\APPLICATION-V2.exe.Config
    LOG: Using host configuration file: 
    LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: System.Data.SQLite, Version=1.0.92.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139
    LOG: GAC Lookup was unsuccessful.
    LOG: Attempting download of new URL file:///RACINE/****************************************************/version APPLICATION-V2/release/05-08-14_16-07/System.Data.SQLite.DLL.
    LOG: Assembly download was successful. Attempting setup of file: RACINE\****************************************************\version APPLICATION-V2\release\05-08-14_16-07\System.Data.SQLite.dll
    LOG: Entering run-from-source setup phase.
    LOG: Assembly Name is: System.Data.SQLite, Version=1.0.92.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139
    LOG: Binding succeeds. Returns assembly from RACINE\****************************************************\version APPLICATION-V2\release\05-08-14_16-07\System.Data.SQLite.dll.
    LOG: Assembly is loaded in default load context.

    Sinon les seuls échecs sont avec Luna.Resources (Luna seul ne pose pas de problème) qui n'est pas en rapport avec la dll SQLite
    et PresentationFramework.Resources.

  16. #16
    Membre Expert
    Avatar de Pragmateek
    Homme Profil pro
    Formateur expert .Net/C#
    Inscrit en
    Mars 2006
    Messages
    2 635
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 39
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Formateur expert .Net/C#
    Secteur : Conseil

    Informations forums :
    Inscription : Mars 2006
    Messages : 2 635
    Par défaut
    Tu peux ignorer les "problèmes" d'assemblies satellites ".resources" non trouvés.

    Par contre si le souci est au niveau des DLLs natives alors tu peux checker avec Dependency Walker s'il ne manquerait pas par hasard un composant natif sur le système.

  17. #17
    Membre habitué
    Homme Profil pro
    Étudiant
    Inscrit en
    Mai 2014
    Messages
    10
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Sarthe (Pays de la Loire)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Mai 2014
    Messages : 10
    Par défaut
    Après avoir utilisé Dependency Walker les 2 erreurs (sur les PC ou l'appli fonctionne et ou l'appli ne fonctionne pas) sont : WER.dll et IESHIMS.dll qui apparemment sont des dll inexistantes sur XP.
    Le problème doit donc être cantonné à des dll requises par SQLite mais qui ne sont pas des dll natives.

  18. #18
    Membre Expert
    Avatar de Pragmateek
    Homme Profil pro
    Formateur expert .Net/C#
    Inscrit en
    Mars 2006
    Messages
    2 635
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 39
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Formateur expert .Net/C#
    Secteur : Conseil

    Informations forums :
    Inscription : Mars 2006
    Messages : 2 635
    Par défaut
    Pas un souci non plus à priori, regarde du côté du runtime C++ VS : http://channel9.msdn.com/Forums/Tech...WERDLL-missing

    Au fait cet XP est bien à jour SP3 ?

    Jamais eu ce genre de soucis avec SQLite sur des XPs... :/

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Le php ne fonctionne pas sur certaine page ?
    Par dark vador 008 dans le forum Langage
    Réponses: 2
    Dernier message: 01/07/2009, 17h09
  2. Réponses: 1
    Dernier message: 22/06/2009, 09h16
  3. [ZF 1.7] [Zend_Lucene] $doc->addField ne fonctionne pas sur certains serveurs
    Par JeanVcrt dans le forum Autres composants
    Réponses: 1
    Dernier message: 13/02/2009, 12h00
  4. Réponses: 7
    Dernier message: 20/11/2008, 10h27
  5. Programme ne fonctionnant que sur certaines machines
    Par Marekh dans le forum DirectX
    Réponses: 14
    Dernier message: 30/08/2005, 14h09

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo