locked
ASP.NET failed starting up RRS feed

  • Question

  • User-926827098 posted

    Hello all, I've been using webmatrix 3 for last few days. I am a novice and trying to learn asp.net using c#. Everything was working fine till today. now I cant launch the .cshtml pages from webmatrix. it is showing ASP.NET failed starting up see full details for more info. here are the details

    ASP.NET Site failed starting up, see full details for more info

    System.Web.HttpException (0x80004005): The pre-application start initialization method Start on type System.Web.WebPages.Deployment.PreApplicationStartCode threw an exception with the following error message: Could not load file or assembly 'System.Web.Helpers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.. ---> System.InvalidOperationException: The pre-application start initialization method Start on type System.Web.WebPages.Deployment.PreApplicationStartCode threw an exception with the following error message: Could not load file or assembly 'System.Web.Helpers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Web.Helpers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

       --- End of inner exception stack trace ---
       at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
       at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
       at System.Web.WebPages.Deployment.PreApplicationStartCode.LoadAssembly(AssemblyName name)
       at System.Web.WebPages.Deployment.PreApplicationStartCode.<LoadWebPages>b__0(AssemblyName asmName)
       at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
       at System.Web.WebPages.Deployment.PreApplicationStartCode.LoadWebPages()
       at System.Web.WebPages.Deployment.PreApplicationStartCode.StartCore(Version testVersion)
       at System.Web.WebPages.Deployment.PreApplicationStartCode.Start()
       --- End of inner exception stack trace ---
       at System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures)
       at System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods)
       at System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded)
       at System.Web.Compilation.BuildManager.ExecutePreAppStart()
       at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)
       at Microsoft.WebMatrix.Editor.CBMWrapper.HandleExceptionAndReturnEmptyArray(Exception ex, Boolean throwOnHttpException)
       at Microsoft.WebMatrix.Editor.CBMWrapper.GetReferences()
       at Microsoft.WebMatrix.Editor.Roslyn.ProjectSystemImpl.CbmAppDomainStarted(Object sender, EventArgs e)

    Monday, September 14, 2015 1:12 AM

Answers

All replies

  • User379720387 posted

    http://forums.iis.net/1166.aspx/1?WebMatrix

    You will have better luck getting an answer there.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, September 14, 2015 7:36 AM
  • User-735851359 posted

    The error "The system cannot find the file specified."

    I think the BIN folder is missing. Be sure that you have the BIN folder and all required DLL files inside the BIN folder.

    Wednesday, September 16, 2015 6:33 AM