A
Axel Dahmen
Hi,
I've got the same problem as described below. No answer found yet. Can
someone please help? (I'm using .NET 1.0 on my development machine and 1.1
on my webserver. Like Susanna, I only get the error on my webserver.)
TIA,
Axel Dahmen
--
I used compare validator control "ValueToCompare" in my aspx file like
this:
<asp:comparevalidator id="CompareValidator1" runat="server"
CssClass="image-caption" ValueToCompare="500,000.00"
Operator="LessThanEqual" Type="Currency" ErrorMessage="Tast inn et
tall som ikke er høyere enn 500000!" Display="Dynamic"
ControlToValidate="txtLaneSum" Text=""></asp:comparevalidator>
And it works fine on my development server. but when I have installed
this .NET application to the production server, I can not get the
ASP.NET page to work. I am given an error message as the following:
Server Error in / Application
The value '500,000.00' of the ValueToCompare property of
'CompareValidator1' cannot be converted to type 'Currency'.
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.Web.HttpException: The value '500,000.00' of
the ValueToCompare property of 'CompareValidator1' cannot be converted
to type 'Currency'.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): The value '500,000.00' of the
ValueToCompare property of 'CompareValidator1' cannot be converted to
type 'Currency'.]
System.Web.UI.WebControls.CompareValidator.ControlPropertiesValid()
+415
System.Web.UI.WebControls.BaseValidator.Render(HtmlTextWriter
writer) +85
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter
writer) +44
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output)
+395
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
System.Web.UI.Control.Render(HtmlTextWriter writer) +7
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Page.ProcessRequestMain() +1900
Any ideas/help you can offer would be greatly appreciated.
Thanks
Susanna Chen
I've got the same problem as described below. No answer found yet. Can
someone please help? (I'm using .NET 1.0 on my development machine and 1.1
on my webserver. Like Susanna, I only get the error on my webserver.)
TIA,
Axel Dahmen
--
I used compare validator control "ValueToCompare" in my aspx file like
this:
<asp:comparevalidator id="CompareValidator1" runat="server"
CssClass="image-caption" ValueToCompare="500,000.00"
Operator="LessThanEqual" Type="Currency" ErrorMessage="Tast inn et
tall som ikke er høyere enn 500000!" Display="Dynamic"
ControlToValidate="txtLaneSum" Text=""></asp:comparevalidator>
And it works fine on my development server. but when I have installed
this .NET application to the production server, I can not get the
ASP.NET page to work. I am given an error message as the following:
Server Error in / Application
The value '500,000.00' of the ValueToCompare property of
'CompareValidator1' cannot be converted to type 'Currency'.
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.Web.HttpException: The value '500,000.00' of
the ValueToCompare property of 'CompareValidator1' cannot be converted
to type 'Currency'.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): The value '500,000.00' of the
ValueToCompare property of 'CompareValidator1' cannot be converted to
type 'Currency'.]
System.Web.UI.WebControls.CompareValidator.ControlPropertiesValid()
+415
System.Web.UI.WebControls.BaseValidator.Render(HtmlTextWriter
writer) +85
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter
writer) +44
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output)
+395
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
System.Web.UI.Control.Render(HtmlTextWriter writer) +7
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Page.ProcessRequestMain() +1900
Any ideas/help you can offer would be greatly appreciated.
Thanks
Susanna Chen