Could not load file or assembly 'Microsoft.Web.Infrastructure, Version=1.0.0.0 Ask Question
By   Junaid A     19-Apr-2024    2

Problem:

When I try to run project in Visual Studio 2019, I am getting below error.

Error Details:

 

Server Error in '/' Application.


Could not load file or assembly 'Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

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.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

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.

 

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.

=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///E:/www/WF/SCF2022222222222222/kfsbbqsmokehouseDotCom/kfsbbqsmokehouse/360KMall.WebUI/
LOG: Initial PrivatePath = E:\www\WF\SCF2022222222222222\kfsbbqsmokehouseDotCom\kfsbbqsmokehouse\360KMall.WebUI\bin
Calling assembly : System.Web.WebPages, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\www\WF\SCF2022222222222222\kfsbbqsmokehouseDotCom\kfsbbqsmokehouse\360KMal
l.WebUI\web.config
LOG: Using host configuration file: C:\Users\alreyan\Documents\IISExpress\config\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/vs/3cc867ae/11899008/Microsoft.Web.Infrastructure.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/vs/3cc867ae/11899008/Microsoft.Web.Infrastructure/Microsoft.Web.Infrastructure.DLL.
LOG: Attempting download of new URL file:///E:/www/WF/SCF2022222222222222/kfsbbqsmokehouseDotCom/kfsbbqsmokehouse
/360KMall.WebUI/bin/Microsoft.Web
.Infrastructure.DLL.
LOG: Attempting download of new URL file:///E:/www/WF/SCF2022222222222222/kfsbbqsmokehouseDotCom/kfsbbqsmokehouse
/360KMall.WebUI/bin/Microsoft.Web.
Infrastructure/Microsoft.Web.Infrastructure.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/vs/3cc867ae/11899008/Microsoft.Web.Infrastructure.EXE.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/vs/3cc867ae/11899008/Microsoft.Web.Infrastructure/Microsoft.Web.Infrastructure.EXE.
LOG: Attempting download of new URL file:///E:/www/WF/SCF2022222222222222/kfsbbqsmokehouseDotCom/kfsbbqsmokehouse/360KMall.WebUI/bin/Microsoft.Web.Infrastructure.EXE.
LOG: Attempting download of new URL file:///E:/www/WF/SCF2022222222222222/kfsbbqsmokehouseDotCom/kfsbbqsmokehouse/360KMall.WebUI/bin/Microsoft.Web.
Infrastructure/Microsoft.Web.Infrastructure.EXE.


Stack Trace:
 

[FileNotFoundException: Could not load file or assembly 'Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.]
   System.Web.WebPages.PreApplicationStartCode.Start() +0
   System.Web.Mvc.PreApplicationStartCode.Start() +36

[InvalidOperationException: The pre-application start initialization method Start on type System.Web.Mvc.PreApplicationStartCode threw an exception with the following error message: Could not load file or assembly 'Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified..]
   System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures) +617
   System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +138
   System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +163
   System.Web.Compilation.BuildManager.ExecutePreAppStart() +156
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +692

[HttpException (0x80004005): The pre-application start initialization method Start on type System.Web.Mvc.PreApplicationStartCode threw an exception with the following error message: Could not load file or assembly 'Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified..]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +659
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +89
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +189

 


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

Solutions


10342
Copyright Future Minutes © 2015- 2024 All Rights Reserved.   Terms of Service  |   Privacy Policy |  Contact US|  Pages|  Whats new?
Update on: Dec 20 2023 05:10 PM
03
07

New Messages

George Floyd
  • Edit Post Edit This Post within a Hour
  • Hide Chat Hide This Post
  • Delete Chat If inappropriate Post By Mistake
  • Report Inappropriate Chat
  • 4.5kb
  • Hi James! Please remember to buy the food for tomorrow! I’m gonna be handling the gifts and Jake’s gonna get the drinks
  • Hi James! Please remember to buy the food for tomorrow! I’m gonna be handling the gifts and Jake’s gonna get the drinks
  • Hi James! Please remember to buy the food for tomorrow! I’m gonna be handling the gifts and Jake’s gonna get the drinks