Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

469
Views
Método no encontrado: '!!0[] System.Array.Empty()'

Creé una nueva aplicación con VS 2015 RC y la plantilla MVC y sin modificar ninguna línea de código, tengo este error:

 Method not found: '!!0[] System.Array.Empty()'. 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.MissingMethodException: Method not found: '!!0[] System.Array.Empty()'. 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: [MissingMethodException: Method not found: '!!0[] System.Array.Empty()'.] SAASApp.BundleConfig.RegisterBundles(BundleCollection bundles) in C:\Proyectos\SAASApp\SAASApp\App_Start\BundleConfig.cs:29 SAASApp.MvcApplication.Application_Start() in C:\Proyectos\SAASApp\SAASApp\Global.asax.cs:18 [HttpException (0x80004005): Method not found: '!!0[] System.Array.Empty()'.] System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +483 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +176 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +350 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +305 [HttpException (0x80004005): Method not found: '!!0[] System.Array.Empty()'.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +661 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +96 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +189

Primera vez que me pasa, así que estoy atascado en este momento.

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Tuve esta situación en el servidor de producción mientras que en la máquina de desarrollo todo estaba bien.

La instalación de .NET Framework 4.6 en la máquina de destino solucionó el problema.

over 4 years ago · Santiago Trujillo Report

0

Perdón por llegar tarde a la fiesta, pero en caso de que alguien más tenga este problema a través de una compilación de TeamCity, puedo describir lo que tuvimos que hacer.

.NET 4.6 se instaló en nuestro servidor de compilación (pero no en el servidor de aplicaciones), RunnerType era Visual Studio (sln) y la opción de Visual Studio se estableció en 2015.

Esto obligó a la compilación a usar 4.6, y necesitaba cambiar la opción de Visual Studio a 2013 para obligar a la compilación a usar 4.5.2

over 4 years ago · Santiago Trujillo Report

0

Solo para otros que enfrentan esta situación:

si observa el archivo web.config, se dará cuenta de que en la etiqueta <compilation> tiene el valor targetFramework establecido en una versión inferior a 4.6. pero, de hecho, en el momento de la compilación, publicó su aplicación a través de .NET FrameWork 4.6 o superior (corresponde a ASP.NET MVC 4.6 y superior).

Entonces, si cambia el valor de targetFramework a 4.6, el error cambiará de forma a:

El atributo 'targetFramework' actualmente hace referencia a una versión posterior a la versión instalada de .NET Framework.

este es el error real y lo eliminará instalando la versión adecuada de .Net FrameWork en el entorno de producción de su aplicación web.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!