2 pièce(s) jointe(s)
[.net 2.0] Erreur aléatoire avec le databinding
Salut,
J'ai un site qui fonctionnait parfaitement depuis 3 ans. Je n'ai absolument rien touché au niveau code depuis ce temps. Or depuis février, j'ai une erreur étrange qui apparait de manière totalement aléatoire et sur pratiquement toutes les pages.
L'erreur est la suivante :
Citation:
DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'UserId'
Si je rafraichis la page, tout peut se passer bien , comme avoir le même message d'erreur avec un champ différent à la place de 'UserId'
J'ai mis en place un health monitor pour avoir plus de details et voilà ce que ça donne.
Code:
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
| Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 5/3/2011 7:47:25 PM
Event time (UTC): 5/3/2011 5:47:25 PM
Event ID: b481fc7b86144cb6ab6671f75550018c
Event sequence: 246
Event occurrence: 8
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/124/ROOT-62-129489157440137500
Trust level: Full
Application Virtual Path: /
Application Path: C:\hshome\sigmaspo\sigmasport.ch\
Machine name: DOTNET002
Process information:
Process ID: 4424
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: System.Web.HttpException
Exception message: DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'UserId'.
Request information:
Request URL: http://www.sigmasport.ch/Web/ListeUtilisateurs.aspx
Request path: /Web/ListeUtilisateurs.aspx
User host address: 77.56.121.113
User: bielmann
Is authenticated: True
Authentication Type: Forms
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 27
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName)
at System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding)
at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)
at System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data)
at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)
at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
at System.Web.UI.WebControls.GridView.DataBind()
at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()
at System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) |
J'ai joint le fichier de ma DAL et un exemple de ma couche business telle que je l'utilise dans mon site. Touts les accès se passe de la même manière, en appelant des procédures stockées.
Est-ce que quelqu'un a déjà rencontré ce problème?
Merci d'avance