Dear Support-Team,
Today we find a very strange error - and we couldn't find the origin.
We have a Class "Kostentraeger" in one of our XAF Projects.
This class inherits another Class "Kontakt".
If I want to edit some of this Objects - the Error Attached occures.
If I edit the same object via the Kontakt-List -> everything is fine…
I don't know how to find out where the error comes from.
Do you have any idea?
The Video attached explains it better…
HTMLError ID: 46ea3278-d358-499c-a8a2-9189a28d8108 Date: 26.01.2016 15:26:46 Request details: Url: http://localhost:54459/default.aspx Url referrer: http://localhost:54459/#ViewID=Kostentraeger_ListView&ObjectClassName=TS2S.Medexo.Backoffice.Module.Kostentraeger SessionID: upgjpux5v5cmkq54un3mz1qq Request type: POST User agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; Touch; rv:11.0) like Gecko User IP: ::1 User: TS2S Authenticated user: [no name] ================================================================================ The error occurred: Type: FormatException Message: GUID muss 32 Ziffern mit 4 Bindestrichen enthalten (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). Data: 0 entries Stack trace: bei System.Guid.TryParseGuidWithNoStyle(String guidString, GuidResult& result) bei System.Guid.TryParseGuid(String g, GuidStyles flags, GuidResult& result) bei System.Guid..ctor(String g) bei System.ComponentModel.GuidConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value) bei DevExpress.ExpressApp.Web.Editors.ASPx.ASPxGridViewContextMenu.SelectObject(String objectId) bei DevExpress.ExpressApp.Web.Editors.ASPx.ASPxGridViewContextMenu.ProcessCommand(String args) bei DevExpress.ExpressApp.Web.Editors.ASPx.ASPxGridViewContextMenu.DevExpress.ExpressApp.Web.Templates.IXafCallbackHandler.ProcessAction(String parameter) bei DevExpress.ExpressApp.Web.Templates.XafCallbackManager.ProcessAction(String parameter) bei DevExpress.ExpressApp.Web.Templates.XafCallbackManager.callbackControl_Callback(Object source, CallbackEventArgs e) bei DevExpress.Web.ASPxCallback.OnCallback(CallbackEventArgs e) bei DevExpress.Web.ASPxCallback.RaiseCallbackEvent(String eventArgument) bei DevExpress.Web.ASPxWebControl.System.Web.UI.ICallbackEventHandler.RaiseCallbackEvent(String eventArgument) InnerException is null -------------------------------------------------------------------------------- Loaded assemblies A_219e8aab_ca00_45f3_8c87_1d9a3e9f98b7, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null, Location=InMemory Module Anonymously Hosted DynamicMethods Assembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null, Location=InMemory Module App_global.asax.dscf054u, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null, Location=C:\Users\tobias.stracke\AppData\Local\Temp\Temporary ASP.NET Files\root\6b0ad1c0\6aa9243\App_global.asax.dscf054u.dll App_Web_tu3j54ga, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null, Location=C:\Users\tobias.stracke\AppData\Local\Temp\Temporary ASP.NET Files\root\6b0ad1c0\6aa9243\App_Web_tu3j54ga.dll
Kind Regards
Tobias
Hello Tobias,
This behavior is related to your specific implementation. The key can not be correctly processed in your case. Please, send us a small sample project where this issue is reproducible. We will be happy to help you.
Hej Alexey,
thank you for fast response.
I did see the problem with the key.
But the problem is: I have no idea where it comes from?
Normaly, when we write stupid code, the debbuger can jump into it and shows us the problem.
But here only comes this message - no information on what position or class it occures…
And we are not able to reproduce it in a SMALL project…
Is there any possibility to make the debugger more sensible or something like that?
Kind regards
Tobias
You can try to debug your solution with our source code as described at How can I debug DevExpress .NET source code using PDB files. Note that you need to enable breaking with Common Runtime Language Exceptions in Visual Studio.
This will help you break the debugger in the DevExpressExpressApp.Web.Editors.ASPx.ASPxGridViewContextMenu.SelectObject(String objectId) method to find the cause of the problem with the key.
Dear Dmitry/Alexey,
it cost me some time and I found out, that this error is definitely not an error in our code.
It seems to bee, that the paging mechanism in the grid in xaf - web is broken!
As you see in the video attached i build a little example for you.
The records on the last page of paging can not be open.
Either it opens a different record or it opens nothing and gives an exception.
Please fix it quick!
The sample app is a normal xaf applikation - on start it will post 30 records in the Person Class. -> you must only change the database-string in the web.config (but surely you know it).
And, by the way, I think it is not very kind, that you answer so quick that the error is on our side bevor trying to reproduce it…
Hello Tobias,
Thank you for your sample project. I have created a separate ticket (ASPxGridListEditor - The inline "Edit" action cause an exception after switching grid pages) and passed it to our developers. Please bear with us.
P.S. I have researched your project and found that it works properly with the 15.2.4 version of DevExpress components. Would you please clarify if the problem described in the first message is actual for the 15.2.4 version?