Method not found: ‘!!0[] System.Array.Empty()’. – Error – Resolved

Method not found: ‘!!0[] System.Array.Empty()’.

Server Error in ‘/’ Application.


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()'.]
   BESWeb.BundleConfig.RegisterBundles(BundleCollection bundles) +0
   BESWeb.MvcApplication.Application_Start() +384

[HttpException (0x80004005): Method not found: '!!0[] System.Array.Empty()'.]
   System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +12601645
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +175
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +304
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +404
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475

[HttpException (0x80004005): Method not found: '!!0[] System.Array.Empty()'.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12618692
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12458309

 


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

 

Resolution: Installing .NET Framework 4.6 on the target machine will fix the problem.

 

.NET Framework 4.6 : https://www.microsoft.com/en-us/download/details.aspx?id=48130

 

 

 

 

 

Add Comment