none
Getting Started with ASP.NET 4.5 Web Forms and Visual Studio 2013 server error in '/' application

    Question

  • hello.

    I am a newbie to asp.net and following the "Getting Started With ASP.NET 4.5 Web Forms and Visual Studio 2013".
    I have followed the steps accordingly. I am getting this error when i press F5 at the

    Running the Application and Creating the Database

    on the page

    4.UI and Navigation 

    This is what i'm getting.

    Server Error in '/' Application.

    Index was outside the bounds of the array.

    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.IndexOutOfRangeException: Index was outside the bounds of the array.

    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:
    [IndexOutOfRangeException: Index was outside the bounds of the array.]
       System.String.get_Chars(Int32 index) +0
       Microsoft.Ajax.Utilities.CssParser.Append(Object obj, TokenType tokenType) +402
       Microsoft.Ajax.Utilities.CssParser.AppendCurrent() +74
       Microsoft.Ajax.Utilities.CssParser.ParseElementName() +321
       Microsoft.Ajax.Utilities.CssParser.ParseSimpleSelector() +54
       Microsoft.Ajax.Utilities.CssParser.ParseSelector() +92
       Microsoft.Ajax.Utilities.CssParser.ParseRule() +165
       Microsoft.Ajax.Utilities.CssParser.ParseStylesheet() +186
       Microsoft.Ajax.Utilities.CssParser.Parse(String source) +945
       Microsoft.Ajax.Utilities.Minifier.MinifyStyleSheet(String source, CssSettings settings, CodeSettings scriptSettings) +436
       Microsoft.Ajax.Utilities.Minifier.MinifyStyleSheet(String source, CssSettings settings) +72
       System.Web.Optimization.CssMinify.Process(BundleContext context, BundleResponse response) +300
       System.Web.Optimization.Bundle.ApplyTransforms(BundleContext context, String bundleContent, IEnumerable`1 bundleFiles) +214
       System.Web.Optimization.Bundle.GenerateBundleResponse(BundleContext context) +355
       System.Web.Optimization.Bundle.GetBundleResponse(BundleContext context) +104
       System.Web.Optimization.BundleResolver.GetBundleContents(String virtualPath) +254
       System.Web.Optimization.AssetManager.DeterminePathsToRender(IEnumerable`1 assets) +252
       System.Web.Optimization.AssetManager.RenderExplicit(String tagFormat, String[] paths) +75
       System.Web.Optimization.Styles.RenderFormat(String tagFormat, String[] paths) +292
       System.Web.Optimization.Styles.Render(String[] paths) +51
       Microsoft.AspNet.Web.Optimization.WebForms.BundleReference.RenderControl(HtmlTextWriter writer) +181
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
       System.Web.UI.HtmlControls.HtmlHead.RenderChildren(HtmlTextWriter writer) +21
       System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
       System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
       System.Web.UI.Control.Render(HtmlTextWriter writer) +10
       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
       System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
       System.Web.UI.Page.Render(HtmlTextWriter writer) +29
       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1386
    


    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18408             

    I have followed the steps as identically as i can, and not sure why i am getting this error.
    can anyone help explain please.

    thanks.

    Regards.


    • Moved by litdev Thursday, November 6, 2014 4:43 PM
    Thursday, November 6, 2014 6:43 AM

Answers