eService - error viewing and creating cases

Jan 22, 2009 at 10:07 AM

Hi.

Im getting this error when i try to view service cases from the customer portal, and also when creating cases, it looks like it have something to do with localization with ASP.net but im not sure how to fix it.

 

Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 354:			{
Line 355:				String localResults = results.ToString();
Line 356: foreach (String culture in HttpContext.Current.Request.UserLanguages)Line 357:				{
Line 358:					try

Source File: c:\Program Files\Microsoft Dynamics CRM Customer Portal\App_Code\eService\DynamicEntityUtility.cs    Line: 356

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   DynamicEntityUtility.GetPropertyDisplayValue(Property property) in c:\Program Files\Microsoft Dynamics CRM Customer Portal\App_Code\eService\DynamicEntityUtility.cs:356
   Controls_EntityGrid.ConvertBusinessEntityCollectionToDataTable(BusinessEntityCollection entityCollection) in c:\Program Files\Microsoft Dynamics CRM Customer Portal\Controls\EntityGrid.ascx.cs:256
   Controls_EntityGrid.gridView_DataBinding(Object sender, EventArgs e) in c:\Program Files\Microsoft Dynamics CRM Customer Portal\Controls\EntityGrid.ascx.cs:101
   System.Web.UI.Control.OnDataBinding(EventArgs e) +99
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +47
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70
   System.Web.UI.WebControls.GridView.DataBind() +4
   Controls_EntityGrid.DataBind() in c:\Program Files\Microsoft Dynamics CRM Customer Portal\Controls\EntityGrid.ascx.cs:171
   Controls_CasesGrid.OnLoad(EventArgs e) in c:\Program Files\Microsoft Dynamics CRM Customer Portal\Controls\CasesGrid.ascx.cs:84
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436

 


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

 

Jan 22, 2009 at 1:18 PM
I get this from my local machine, the other was from the server running eService

 

Server Error in '/' Application.

Culture 'da' is a neutral culture. It cannot be used in formatting and parsing and therefore cannot be set as the thread's current culture.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NotSupportedException: Culture 'da' is a neutral culture. It cannot be used in formatting and parsing and therefore cannot be set as the thread's current culture.

Source Error:

Line 358:					try
Line 359:					{
Line 360: localResults = results.ToString(CultureInfo.GetCultureInfoByIetfLanguageTag(culture));Line 361:					}
Line 362:					catch (ArgumentException)

Source File: c:\Program Files\Microsoft Dynamics CRM Customer Portal\App_Code\eService\DynamicEntityUtility.cs    Line: 360

Stack Trace:

[NotSupportedException: Culture 'da' is a neutral culture. It cannot be used in formatting and parsing and therefore cannot be set as the thread's current culture.]
   System.Globalization.CultureInfo.CheckNeutral(CultureInfo culture) +2901639
   System.Globalization.CultureInfo.get_DateTimeFormat() +17
   System.Globalization.DateTimeFormatInfo.GetInstance(IFormatProvider provider) +40
   System.DateTime.ToString(IFormatProvider provider) +13
   DynamicEntityUtility.GetPropertyDisplayValue(Property property) in c:\Program Files\Microsoft Dynamics CRM Customer Portal\App_Code\eService\DynamicEntityUtility.cs:360
   Controls_EntityGrid.ConvertBusinessEntityCollectionToDataTable(BusinessEntityCollection entityCollection) in c:\Program Files\Microsoft Dynamics CRM Customer Portal\Controls\EntityGrid.ascx.cs:256
   Controls_EntityGrid.gridView_DataBinding(Object sender, EventArgs e) in c:\Program Files\Microsoft Dynamics CRM Customer Portal\Controls\EntityGrid.ascx.cs:101
   System.Web.UI.Control.OnDataBinding(EventArgs e) +99
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +47
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70
   System.Web.UI.WebControls.GridView.DataBind() +4
   Controls_EntityGrid.DataBind() in c:\Program Files\Microsoft Dynamics CRM Customer Portal\Controls\EntityGrid.ascx.cs:171
   Controls_CasesGrid.OnLoad(EventArgs e) in c:\Program Files\Microsoft Dynamics CRM Customer Portal\Controls\CasesGrid.ascx.cs:84
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
<!-- [NotSupportedException]: Culture 'da' is a neutral culture. It cannot be used in formatting and parsing and therefore cannot be set as the thread's current culture. at System.Globalization.CultureInfo.CheckNeutral(CultureInfo culture) at System.Globalization.CultureInfo.get_DateTimeFormat() at System.Globalization.DateTimeFormatInfo.GetInstance(IFormatProvider provider) at System.DateTime.ToString(IFormatProvider provider) at DynamicEntityUtility.GetPropertyDisplayValue(Property property) in c:\Program Files\Microsoft Dynamics CRM Customer Portal\App_Code\eService\DynamicEntityUtility.cs:line 360 at Controls_EntityGrid.ConvertBusinessEntityCollectionToDataTable(BusinessEntityCollection entityCollection) in c:\Program Files\Microsoft Dynamics CRM Customer Portal\Controls\EntityGrid.ascx.cs:line 256 at Controls_EntityGrid.gridView_DataBinding(Object sender, EventArgs e) in c:\Program Files\Microsoft Dynamics CRM Customer Portal\Controls\EntityGrid.ascx.cs:line 101 at System.Web.UI.Control.OnDataBinding(EventArgs e) at System.Web.UI.WebControls.DataBoundControl.PerformSelect() at System.Web.UI.WebControls.BaseDataBoundControl.DataBind() at System.Web.UI.WebControls.GridView.DataBind() at Controls_EntityGrid.DataBind() in c:\Program Files\Microsoft Dynamics CRM Customer Portal\Controls\EntityGrid.ascx.cs:line 171 at Controls_CasesGrid.OnLoad(EventArgs e) in c:\Program Files\Microsoft Dynamics CRM Customer Portal\Controls\CasesGrid.ascx.cs:line 84 at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) [HttpUnhandledException]: Exception of type 'System.Web.HttpUnhandledException' was thrown. at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.eservice_viewcases_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\0a61a278\c03e1fcb\App_Web_hepsmzdp.10.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --><!-- This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using <customErrors mode="Off"/>. Consider using <customErrors mode="On"/> or <customErrors mode="RemoteOnly"/> in production environments.-->
Jan 22, 2009 at 2:47 PM
I resoleved the issue.

i had to changed this in the DynamicEntityUtility.cs

localResults = results.ToString(CultureInfo.GetCultureInfoByIetfLanguageTag("en-US"));
May 20, 2009 at 7:04 PM

I try to modify the line in the DynamicEntityUtility.cs by different way. (note pad, visual studio...)

Between all attempt, i stop the IIS service and clear ASP Cache. But it refuse to work !

Could you explain to me how to modify this file ? I'm complety lose, i'm a System/Network Engineer, dev is my nightmare :-)

Hear is the message i have when i "touch" DynamicEntityUtility.cs:

I hope someone could help me... Sorry for my bad english.

-------------

Erreur du serveur dans l'application '/'.

Erreur de compilation

Description : Une erreur s'est produite lors de la compilation d'une ressource requise pour répondre à cette demande. Veuillez consulter ci-dessous les détails relatifs à l'erreur en question, puis modifier votre code source de manière appropriée

Message d'erreur du compilateur: CS0101: L'espace de noms '<espace de noms global>' contient déjà une définition de 'DynamicEntityUtility'

Ligne 21 : public static class DynamicEntityUtility

Fichier source: c:\Program Files\Microsoft Dynamics CRM Customer Portal\App_Code\eService\DynamicEntityUtility.cs    Ligne: 21

Nov 13, 2009 at 12:06 AM

Culture 'da' is a neutral culture. It cannot be used in formatting and parsing and therefore cannot be set as the thread's current culture. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.NotSupportedException: Culture 'da' is a neutral culture. It cannot be used in formatting and parsing and therefore cannot be set as the thread's current culture.

____________________

[color=#4682B4]на днях скачала хорошую [url=http://clientbase.ru]crm программа[/url] для проведения своей рекламной кампании. [/color]