Error when printing calendar items in calendar view: Processing error. Input string was not in a correct format

This article applies to the following products:
     Messageware OWA Print v1.0a 2009

 

SYMPTOM

 

When printing calendar appointments using the Calendar View style the following error appears in OWA:

 

Processing error.

Input string was not in a correct format.

 

Additionally, the following event error is logged in the Application event log:

 

[mscorlib] Input string was not in a correct format. exception msg:Input string was not in a correct format., stack:    at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)

   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)

   at System.Diagnostics.PerformanceCounterLib.GetStringTable(Boolean isHelp)

   at System.Diagnostics.PerformanceCounterLib.get_NameTable()

   at System.Diagnostics.PerformanceCounterLib.get_CategoryTable()

   at System.Diagnostics.PerformanceCounterLib.GetCategorySample(String category)

   at System.Diagnostics.PerformanceCounterLib.GetCategorySample(String machine, String category)

   at System.Diagnostics.PerformanceCounter.NextSample()

   at System.Diagnostics.PerformanceCounter.NextValue()

   at Messageware.Exchange.Web.UI.Print.MwCalendarPrintWebForm.DoWork4()

   at Messageware.Exchange.Web.UI.Print.MwCalendarPrintWebForm.Render(HtmlTextWriter writer)

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 

CAUSE

 

This cause of this behavior is environment related as it is occurs due to a corruption of the performance counters on the server

 

RESOLUTION  

To correct this behavior, an OWA Print update is available which no longer uses performance counters. To apply this update, follow the steps below.

 

1.      Download and extract the fix from the link below
http://w3.messageware.com/download/support/kb/473_OWAPrint10a_calendarview_fix.zip

2.      On the CAS where OWA Print is installed, navigate to \Program Files\Microsoft\Exchange Server\ClientAccess\Bin

a.          Rename Messageware.Exchange.Web.UI.Print.dll to Messageware.Exchange.Web.UI.Print.old

b.          Copy the updated Messageware.Exchange.Web.UI.Print.dll file to this location

3.      Navigate to \Program Files\Microsoft\Exchange Server\ClientAccess\Owa\forms\basic

a.          Rename MwCalendarPrintGridControl.ascx to MwCalendarPrintGridControl.old

b.          Copy the updated MwCalendarPrintGridControl.ascx file to this location

4.      Navigate to \Program Files\Microsoft\Exchange Server\ClientAccess\Owa\forms\premium

a.          Rename MwCalendarPrintGridControl.ascx to MwCalendarPrintGridControl.old

b.          Copy the updated MwCalendarPrintGridControl.ascx file to this location

5.      Restart the World Wide Web Publishing Services for changes to take effect

 

MORE INFORMATION

 

This update will be included in the next version of OWA Print

 

For additional information regarding corrupt performance counters, see the Microsoft KB article below

 

How to manually rebuild Performance Counter Library values
http://support.microsoft.com/default.aspx?scid=kb;en-us;300956

 

This article applies to the following products:
     Messageware OWA Print v1.0a 2009