I am having problems initializing my custom user control. I keep getting the following error:
Specified cast is not valid.
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.InvalidCastException: Specified cast is not valid.
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:
[InvalidCastException: Specified cast is not valid.]
WylePricingSystem.HeaderInfo.Page_Load(Object sender, EventArgs e) in \\station5\wwwroot$\WylePricingSystem\NewLaborEst.aspx.vb:105
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()
Ive attached my code. Can someone please help me?
Thanks,
James
Specified cast is not valid.
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.InvalidCastException: Specified cast is not valid.
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:
[InvalidCastException: Specified cast is not valid.]
WylePricingSystem.HeaderInfo.Page_Load(Object sender, EventArgs e) in \\station5\wwwroot$\WylePricingSystem\NewLaborEst.aspx.vb:105
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()
Ive attached my code. Can someone please help me?
Thanks,
James