Quantcast
Viewing all articles
Browse latest Browse all 3636

Translated Error Messages

Hi,

    

I have a Web Service which is written in .net using the Crystal .net runtime version 13.0 to preview Crystal Reports. I maintain a logging feature for this and I'm facing an issue because the log information is written in another languages than English in some machines.

 

I do the logging by using a general exception catch “catch(Exception Ex)” and then write the exception information to the log file by using “Ex.Message” , “Ex.InnerException” and “Ex.StackTrace”. The issue I face is that, when the log files are written it writes the log in English in some machines and in some machines it writes them in a different language than English(e.g. Polish). I think that this is changing due to the language setting in the machine and it’s not feasible to change this.

   

Further investigating in to this issue I suspect that it’s caused by the line CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exceptione) when Crystal .net framework throws .net exception. Could this be the reason? Is there a way to get the exception message “only” in English irrespective of the language in the machine.

 

Thank you in  advance,

Chanaka

 

Sample log entries

 

Błąd w pliku o_k_sz_k_lp {C496D8AB-67B3-4FED-9C50-DF76F8D68EE9}.rpt:brak miejsca na dysku.
System.Runtime.InteropServices.COMException (0x80000211):Błąd w pliku o_k_sz_k_lp {C496D8AB-67B3-4FED-9C50-DF76F8D68EE9}.rpt:brak miejsca na dysku.
   at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
   at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
  at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
   at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
   at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
   at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportOptions options)
   at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportFormatType formatType)

 

 

Błąd w pliku lz_bo {4908194F-1ECF-48DD-A36E-22AC9B668045}.rpt:błąd We/Wy pliku.
System.Runtime.InteropServices.COMException (0x80000212):Błąd w pliku lz_bo {4908194F-1ECF-48DD-A36E-22AC9B668045}.rpt:błąd We/Wy pliku.
   at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
   at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
  at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
   at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
   at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
   at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportOptions options)
   at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportFormatType formatType)


Viewing all articles
Browse latest Browse all 3636

Trending Articles