Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Input > RadNumericTextBox throws a parser exception on the webserver but not on local development machine
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered RadNumericTextBox throws a parser exception on the webserver but not on local development machine

Feed from this thread
  • saritha78 avatar

    Posted on Apr 19, 2011 (permalink)

    Hi,
    This started happening recently out of the blue... I am not sure why. All the pages that have RadNumericTextBox on it are erroring on the production server with a parser error. I appreciate it if someone can tell me why this happens only  on the web server, but not on my local dev machine in debug mode.
    Thanks,

    Here's the full error from event log:

    Event code: 3006

    Event message: A parser error has occurred.

    Event time: 4/19/2011 9:48:57 AM

    Event time (UTC): 4/19/2011 4:48:57 PM

    Event ID: xyz
    Event sequence: 142

    Event occurrence: 1

    Event detail code: 0

     

    Application information:

    Application domain: /LM/W3SVC/1/ROOT/ISV/FVS-1-129477049968031554

    Trust level: Full

    Application Virtual Path: /ISV/FVS

    Application Path: xyz 
    Machine name: xyz

     

    Process information:

    Process ID: 5676

    Process name: w3wp.exe

    Account name: NT AUTHORITY\NETWORK SERVICE

     

    Exception information:

    Exception type: HttpParseException

    Exception message: Cannot create an object of type 'System.Type' from its string representation 'System.Int64' for the 'DataType' property.

    at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)

    at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath)

    at System.Web.UI.TemplateParser.Parse()

    at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType()

    at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider)

    at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()

    at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()

    at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)

    at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)

    at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)

    at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)

    at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)

    at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)

    at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    Cannot create an object of type 'System.Type' from its string representation 'System.Int64' for the 'DataType' property.

    at System.Web.UI.TemplateParser.ProcessException(Exception ex)

    at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)

    at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)

    Cannot create an object of type 'System.Type' from its string representation 'System.Int64' for the 'DataType' property.

    at System.Web.UI.PropertyConverter.ObjectFromString(Type objType, MemberInfo propertyInfo, String value)

    at System.Web.UI.ControlBuilder.AddProperty(String filter, String name, String value, Boolean mainDirectiveMode)

    at System.Web.UI.ControlBuilder.PreprocessAttributes(ParsedAttributeCollection attribs)

    at System.Web.UI.ControlBuilder.Init(TemplateParser parser, ControlBuilder parentBuilder, Type type, String tagName, String id, IDictionary attribs)

    at System.Web.UI.ControlBuilder.CreateBuilderFromType(TemplateParser parser, ControlBuilder parentBuilder, Type type, String tagName, String id, IDictionary attribs, Int32 line, String sourceFileName)

    at System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty)

    at System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText)

    at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)

     

     

    Request information:

    Request URL: full url here
    Request path: /AccountInfo/ProductPopups/ProductAddon.aspx

    User host address: xyz.xyz.xyz.xyz

    User: xyz
    Is authenticated: True

    Authentication Type: Negotiate

    Thread account name: NT AUTHORITY\NETWORK SERVICE

     

    Thread information:

    Thread ID: 22

    Thread account name: NT AUTHORITY\NETWORK SERVICE

    Is impersonating: True

    Stack trace: at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)

    at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath)

    at System.Web.UI.TemplateParser.Parse()

    at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType()

    at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider)

    at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()

    at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()

    at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)

    at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)

    at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)

    at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)

    at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)

    at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)

    at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

     

     

    Custom event details:

  • Mira Mira admin's avatar

    Posted on Apr 25, 2011 (permalink)

    Hello,

    Based on the supplied information, I assume that the cause of the issue is that the RadNumericTextBox is bound to data which cannot be parsed to any numeric type.

    Please make sure that you bind the RadNumericTextBox to valid numeric values.

    All the best,
    Mira
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  • saritha78 avatar

    Posted on Apr 25, 2011 (permalink)

    Hi Mira,
    That was not the case. I am not binding any data to this numeric text box. The problem was corrupted web.config. I replaced the web.config from an old backup version and it now works fine. I compared the two web.configs and the difference was not anything significant... go figure!
    Anyways, I am not having any issues now.
    Thanks,
    Saritha

  • Mira Mira admin's avatar

    Posted on Apr 28, 2011 (permalink)

    Hello Saritha,

    I am glad the issue is resolved.

    Do not hesitate to contact us if any further questions arise.

    Best wishes,
    Mira
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Input > RadNumericTextBox throws a parser exception on the webserver but not on local development machine