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

ASP.NET MVC Discussion :

Function ne s'executant pas avec les valeurs passées par variable [Débutant]


Sujet :

ASP.NET MVC

  1. #1
    Membre actif
    Homme Profil pro
    Autodidacte
    Inscrit en
    Mars 2016
    Messages
    154
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Congo-Brazzaville

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

    Informations forums :
    Inscription : Mars 2016
    Messages : 154
    Points : 268
    Points
    268
    Par défaut Function ne s'executant pas avec les valeurs passées par variable
    Bonjour,
    je fais face à une difficulté que je ne comprend pas; cette function
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    long id = custi.Id;
                double total = session.FacturationData.Total;
                int supplement = session.FacturationData.supplement;
                int payeur = Convert.ToInt16(modele.Payeur);
     
                //var db3 = application.Metier.PlaceOrder(custi.Id, Convert.ToDouble(session.FacturationData.Total), Convert.ToInt16(session.FacturationData.supplement), Convert.ToInt16(modele.Payeur)) as customers_orders;
                var db4 = application.Metier.PlaceOrder(id,total,supplement,payeur);
    ne passe pas dans l'action du controller.

    Mais quand je lui attribue directement des valeurs ainsi :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    var db4 = application.Metier.PlaceOrder(20154, 5000, 2000, 2);
    elle fonctione merveilleusement. j'aimerai bien comprendre où est ce que je faillis.

    Merci bien de votre éclairage.

    Prisson

  2. #2
    Membre éprouvé
    Profil pro
    Inscrit en
    Novembre 2003
    Messages
    777
    Détails du profil
    Informations personnelles :
    Âge : 41
    Localisation : Belgique

    Informations forums :
    Inscription : Novembre 2003
    Messages : 777
    Points : 1 077
    Points
    1 077
    Par défaut
    Quel est la signature de la méthode application.Metier.PlaceOrder ?

  3. #3
    Membre actif
    Homme Profil pro
    Autodidacte
    Inscrit en
    Mars 2016
    Messages
    154
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Congo-Brazzaville

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

    Informations forums :
    Inscription : Mars 2016
    Messages : 154
    Points : 268
    Points
    268
    Par défaut
    voici la signature de la méthode :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    application.Metier.PlaceOrder(long id, double montant, int supplement, int Payeur)
    merci bien pour votre disponibilité

  4. #4
    Expert éminent sénior

    Avatar de François DORIN
    Homme Profil pro
    Consultant informatique
    Inscrit en
    Juillet 2016
    Messages
    2 757
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France, Charente Maritime (Poitou Charente)

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

    Informations forums :
    Inscription : Juillet 2016
    Messages : 2 757
    Points : 10 697
    Points
    10 697
    Billets dans le blog
    21
    Par défaut
    Avez vous fait un déboguage pas à pas ?
    Les 4 premières lignes peuvent aisément générer une exception, ce qui expliquerait que la méthode finale n'est pas appelée :
    • ligne 1, 2, 3 et 4 : Possibilité de NullPointerException ;
    • ligne 4 : Possibilité d'une erreur lors de la conversion en entier.
    François DORIN
    Consultant informatique : conception, modélisation, développement (C#/.Net et SQL Server)
    Site internet | Profils Viadéo & LinkedIn
    ---------
    Page de cours : fdorin.developpez.com
    ---------
    N'oubliez pas de consulter la FAQ C# ainsi que les cours et tutoriels

  5. #5
    Membre actif
    Homme Profil pro
    Autodidacte
    Inscrit en
    Mars 2016
    Messages
    154
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Congo-Brazzaville

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

    Informations forums :
    Inscription : Mars 2016
    Messages : 154
    Points : 268
    Points
    268
    Par défaut
    Bsoir François,
    non j'ai malheureusement pas fait de débogage pas à pas. par contre j'ai d'abord fait des simulations pour voir si les variables définies contenaient bien des données en créant une vue test pour les afficher et les données étaient bien affichées. donc je ne comprend toujours pas comment la méthode ne peut pas les récupérer.

  6. #6
    Expert éminent sénior

    Avatar de François DORIN
    Homme Profil pro
    Consultant informatique
    Inscrit en
    Juillet 2016
    Messages
    2 757
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France, Charente Maritime (Poitou Charente)

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

    Informations forums :
    Inscription : Juillet 2016
    Messages : 2 757
    Points : 10 697
    Points
    10 697
    Billets dans le blog
    21
    Par défaut
    Citation Envoyé par Prisson Voir le message
    non j'ai malheureusement pas fait de débogage pas à pas
    Merci de commencer par ça. Cela donnera énormément d'information à la fois sur ce qui marche et ce qui ne marche pas.
    François DORIN
    Consultant informatique : conception, modélisation, développement (C#/.Net et SQL Server)
    Site internet | Profils Viadéo & LinkedIn
    ---------
    Page de cours : fdorin.developpez.com
    ---------
    N'oubliez pas de consulter la FAQ C# ainsi que les cours et tutoriels

  7. #7
    Membre actif
    Homme Profil pro
    Autodidacte
    Inscrit en
    Mars 2016
    Messages
    154
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Congo-Brazzaville

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

    Informations forums :
    Inscription : Mars 2016
    Messages : 154
    Points : 268
    Points
    268
    Par défaut
    Ok je m'y mets de suite et je te relance.
    Merci bien

  8. #8
    Membre actif
    Homme Profil pro
    Autodidacte
    Inscrit en
    Mars 2016
    Messages
    154
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Congo-Brazzaville

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

    Informations forums :
    Inscription : Mars 2016
    Messages : 154
    Points : 268
    Points
    268
    Par défaut
    bien. voici ce que donne la fenêtre de sortie du deboggeur
    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
    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
    'iisexpress.exe' (CLR v4.0.30319: DefaultDomain)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: DefaultDomain)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: DefaultDomain)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: DefaultDomain)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: DefaultDomain)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: DefaultDomain)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: DefaultDomain)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: Domain 2)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Caching\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.Caching.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: DefaultDomain)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Caching\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.Caching.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: DefaultDomain)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_fr_b77a5c561934e089\mscorlib.resources.dll'. Le module a été généré sans symboles.
    Exception levée*: 'System.UnauthorizedAccessException' dans mscorlib.dll
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Build.Utilities.v4.0\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Utilities.v4.0.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: DefaultDomain)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Build.Utilities.v4.0\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Utilities.v4.0.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    Exception levée*: 'System.Globalization.CultureNotFoundException' dans mscorlib.dll
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.JScript\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.JScript.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Users\PC\AppData\Local\Temp\Temporary ASP.NET Files\root\44242711\fbdc3904\assembly\dl3\03215424\0068887f_07a7d001\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Users\PC\AppData\Local\Temp\Temporary ASP.NET Files\root\44242711\fbdc3904\assembly\dl3\590c253d\00196fd3_a63ad001\System.Web.Mvc.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Users\PC\AppData\Local\Temp\Temporary ASP.NET Files\root\44242711\fbdc3904\assembly\dl3\51cfe0ab\00b31c22_a73ad001\System.Web.WebPages.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Users\PC\AppData\Local\Temp\Temporary ASP.NET Files\root\44242711\fbdc3904\assembly\dl3\fbbeae02\00b31c22_a73ad001\System.Web.WebPages.Razor.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Users\PC\AppData\Local\Temp\Temporary ASP.NET Files\root\44242711\fbdc3904\assembly\dl3\2f70a497\00a6d731_3527cf01\System.Web.Optimization.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Users\PC\AppData\Local\Temp\Temporary ASP.NET Files\root\44242711\fbdc3904\assembly\dl3\f61f0f75\00b31c22_a73ad001\System.Web.WebPages.Deployment.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Web.PageInspector.Loader\v4.0_1.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Web.PageInspector.Loader.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Web.PageInspector.Runtime\v4.0_14.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Web.PageInspector.Runtime.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Users\PC\AppData\Local\Temp\Temporary ASP.NET Files\root\44242711\fbdc3904\assembly\dl3\95ee99d8\005384b8_5c21cd01\Microsoft.Web.Infrastructure.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Users\PC\AppData\Local\Temp\Temporary ASP.NET Files\root\44242711\fbdc3904\App_global.asax.taag_zyh.dll'. 
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Users\PC\AppData\Local\Temp\Temporary ASP.NET Files\root\44242711\fbdc3904\assembly\dl3\d2a1b054\d3704e2f_b175d301\RachetezLeTemps.dll'. Les symboles ont été chargés.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Users\PC\AppData\Local\Temp\Temporary ASP.NET Files\root\44242711\fbdc3904\assembly\dl3\f9a89fd0\00530379_ba76d001\Spring.Core.dll'. Les symboles ont été chargés.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Users\PC\AppData\Local\Temp\Temporary ASP.NET Files\root\44242711\fbdc3904\assembly\dl3\32382d81\ef5c889f_a375d301\easydata_Mmetier.exe'. Les symboles ont été chargés.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.resources\v4.0_4.0.0.0_fr_b03f5f7f11d50a3a\System.Web.resources.dll'. Le module a été généré sans symboles.
    Exception levée*: 'System.Web.HttpException' dans System.Web.dll
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Users\PC\AppData\Local\Temp\Temporary ASP.NET Files\root\44242711\fbdc3904\assembly\dl3\5e4183db\00ab06ff_132dd001\Common.Logging.dll'. Les symboles ont été chargés.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Users\PC\AppData\Local\Temp\Temporary ASP.NET Files\root\44242711\fbdc3904\assembly\dl3\f19265cd\00ab06ff_132dd001\Common.Logging.Core.dll'. Les symboles ont été chargés.
    no configuration section <common/logging> found - suppressing logging output
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Users\PC\AppData\Local\Temp\Temporary ASP.NET Files\root\44242711\fbdc3904\assembly\dl3\fd1d28f6\b8fafe9e_a375d301\easydata_dao.dll'. Les symboles ont été chargés.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Users\PC\AppData\Local\Temp\Temporary ASP.NET Files\root\44242711\fbdc3904\assembly\dl3\cc21389a\90c095f6_9f75d301\e_easydata_ef5_dao_met.dll'. Les symboles ont été chargés.
    Le thread 0x1774 s'est arrêté avec le code 0 (0x0).
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Users\PC\AppData\Local\Temp\Temporary ASP.NET Files\root\44242711\fbdc3904\assembly\dl3\fa7f0d87\008fed96_f84bd301\EntityFramework.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Users\PC\AppData\Local\Temp\Temporary ASP.NET Files\root\44242711\fbdc3904\assembly\dl3\36606f36\00bc1e98_f84bd301\EntityFramework.SqlServer.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'Anonymously Hosted DynamicMethods Assembly'. 
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\System.Transactions.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data.OracleClient\v4.0_4.0.0.0__b77a5c561934e089\System.Data.OracleClient.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.Wrapper.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.resources\v4.0_4.0.0.0_fr_b77a5c561934e089\System.Data.resources.dll'. Le module a été généré sans symboles.
    Exception levée*: 'System.Data.SqlClient.SqlException' dans System.Data.dll
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Users\PC\AppData\Local\Temp\Temporary ASP.NET Files\root\44242711\fbdc3904\assembly\dl3\150c232f\007d526e_c354d001\EntityFramework.resources.dll'. Le module a été généré sans symboles.
    Exception levée*: 'System.Data.SqlClient.SqlException' dans System.Data.dll
    Exception levée*: 'System.Data.SqlClient.SqlException' dans System.Data.dll
    Exception levée*: 'System.Data.SqlClient.SqlException' dans System.Data.dll
    Exception levée*: 'System.Data.SqlClient.SqlException' dans System.Data.dll
    Exception levée*: 'System.Data.Entity.Core.EntityCommandExecutionException' dans EntityFramework.dll
    Exception levée*: 'System.Data.Entity.Core.EntityCommandExecutionException' dans EntityFramework.dll
    Exception levée*: 'System.Data.Entity.Core.EntityCommandExecutionException' dans EntityFramework.dll
    Exception levée*: 'System.Data.Entity.Core.EntityCommandExecutionException' dans EntityFramework.SqlServer.dll
    Exception levée*: 'System.Data.SqlClient.SqlException' dans System.Data.dll
    Exception levée*: 'System.Data.SqlClient.SqlException' dans System.Data.dll
    Exception levée*: 'System.Data.SqlClient.SqlException' dans System.Data.dll
    Exception levée*: 'System.Data.SqlClient.SqlException' dans System.Data.dll
    Exception levée*: 'System.Data.Entity.Core.EntityCommandExecutionException' dans EntityFramework.dll
    Exception levée*: 'System.Data.Entity.Core.EntityCommandExecutionException' dans EntityFramework.dll
    Exception levée*: 'System.Data.Entity.Core.EntityCommandExecutionException' dans EntityFramework.dll
    Exception levée*: 'System.Data.Entity.Core.EntityCommandExecutionException' dans EntityFramework.SqlServer.dll
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'EntityFrameworkDynamicProxies-EntityFramework'. 
    Exception levée*: 'System.Data.SqlClient.SqlException' dans System.Data.dll
    Exception levée*: 'System.Data.SqlClient.SqlException' dans System.Data.dll
    Exception levée*: 'System.Data.SqlClient.SqlException' dans System.Data.dll
    Exception levée*: 'System.Data.SqlClient.SqlException' dans System.Data.dll
    Exception levée*: 'System.Data.Entity.Core.EntityCommandExecutionException' dans EntityFramework.dll
    Exception levée*: 'System.Data.Entity.Core.EntityCommandExecutionException' dans EntityFramework.dll
    Exception levée*: 'System.Data.Entity.Core.EntityCommandExecutionException' dans EntityFramework.dll
    Exception levée*: 'System.Data.Entity.Core.EntityCommandExecutionException' dans EntityFramework.SqlServer.dll
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'EntityFrameworkDynamicProxies-e_easydata_ef5_dao_met'. 
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Data.Linq.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Internals\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Internals.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_fr_b77a5c561934e089\mscorlib.resources.dll'. Le module a été généré sans symboles.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\SMDiagnostics\v4.0_4.0.0.0__b77a5c561934e089\SMDiagnostics.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Web.PageInspector.Tracing\v4.0_14.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Web.PageInspector.Tracing.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    Exception levée*: 'System.Web.HttpException' dans System.Web.dll
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Mobile\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/5/ROOT-1-131578227383944463)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.RegularExpressions\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.RegularExpressions.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    'iisexpress.exe' (CLR v4.0.30319: DefaultDomain)*: Chargé 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.RegularExpressions\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.RegularExpressions.dll'. Impossible de trouver ou d'ouvrir le fichier PDB.
    Le thread 0x6d4 s'est arrêté avec le code 0 (0x0).
    Le thread 0x1680 s'est arrêté avec le code 0 (0x0).
    Le thread 0x278 s'est arrêté avec le code 0 (0x0).
    Le thread 0x140c s'est arrêté avec le code 0 (0x0).
    Le thread 0x1158 s'est arrêté avec le code 0 (0x0).
    Pourrais tu m'expliquer un peu quelle peut être la cause des multiples exceptions lévées dans system.data.entity et comment les repérer avec précision ?

  9. #9
    Expert éminent sénior

    Avatar de François DORIN
    Homme Profil pro
    Consultant informatique
    Inscrit en
    Juillet 2016
    Messages
    2 757
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France, Charente Maritime (Poitou Charente)

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

    Informations forums :
    Inscription : Juillet 2016
    Messages : 2 757
    Points : 10 697
    Points
    10 697
    Billets dans le blog
    21
    Par défaut
    Citation Envoyé par Prisson Voir le message
    bien. voici ce que donne la fenêtre de sortie du deboggeur
    Ce n'est pas ça qui va nous être utile.

    met un point d'arrêt sur la première ligne. Va sur la page qui te pose problème. L'exécution devrait s'arrêter sur la ligne que tu as marquée et tu pourras voir le contenu des variables, exécuter en pas-à-pas (et donc suivre le chemin du programme) et comprendre pourquoi cela ne marche pas.
    François DORIN
    Consultant informatique : conception, modélisation, développement (C#/.Net et SQL Server)
    Site internet | Profils Viadéo & LinkedIn
    ---------
    Page de cours : fdorin.developpez.com
    ---------
    N'oubliez pas de consulter la FAQ C# ainsi que les cours et tutoriels

  10. #10
    Membre actif
    Homme Profil pro
    Autodidacte
    Inscrit en
    Mars 2016
    Messages
    154
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Congo-Brazzaville

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

    Informations forums :
    Inscription : Mars 2016
    Messages : 154
    Points : 268
    Points
    268
    Par défaut
    Merci bien mon cher pour la piste. elle semble très intéressante. je l'explore à fonds avant de revenir à toi éventuellement.

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

Discussions similaires

  1. Réponses: 7
    Dernier message: 14/04/2015, 10h30
  2. Réponses: 4
    Dernier message: 19/03/2007, 17h12
  3. [Excel] Ne pas tracer les valeurs nulles d'un graphe
    Par laloune dans le forum Macros et VBA Excel
    Réponses: 3
    Dernier message: 04/02/2006, 19h00
  4. Problème avec les valeurs par défaut
    Par Steph Ace dans le forum Requêtes
    Réponses: 3
    Dernier message: 12/12/2005, 09h55
  5. [CSS] Bug IE avec height ne marche pas avec les %
    Par El Riiico dans le forum Mise en page CSS
    Réponses: 3
    Dernier message: 23/06/2005, 17h11

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