locked
Could not load file or assembly 'file:///C:\Users\3D Electronics\AppData\Local\Temp\Temporary ASP.NET Files\vs\f434569b\46cd6e6e\App_global.asax.jftlga3s.dll' or one of its dependencies. The system cannot find the file specified. RRS feed

  • Question

  • User2126967611 posted

    Whenever i try to run any project on Visual Studio 2019 Community version i get this error every time. Here is the full page of error displayed on the screen.

    Could not load file or assembly 'file:///C:\Users\3D Electronics\AppData\Local\Temp\Temporary ASP.NET Files\vs\f434569b\46cd6e6e\App_global.asax.jftlga3s.dll' 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 'file:///C:\Users\3D Electronics\AppData\Local\Temp\Temporary ASP.NET Files\vs\f434569b\46cd6e6e\App_global.asax.jftlga3s.dll' 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 'file:///C:\Users\3D Electronics\AppData\Local\Temp\Temporary ASP.NET Files\vs\f434569b\46cd6e6e\App_global.asax.jftlga3s.dll' could not be loaded.

    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
    


    Stack Trace:

    [FileNotFoundException: Could not load file or assembly 'file:///C:\Users\3D Electronics\AppData\Local\Temp\Temporary ASP.NET Files\vs\f434569b\46cd6e6e\App_global.asax.jftlga3s.dll' or one of its dependencies. The system cannot find the file specified.]
       System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
       System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +37
       System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +159
       System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence assemblySecurity) +35
       System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly() +104
       System.Web.Compilation.BuildProvider.CreateBuildResult(CompilerResults results) +62
       System.Web.Compilation.BuildProvider.GetBuildResult(CompilerResults results) +16
       System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +10113877
       System.Web.Compilation.BuildManager.CompileGlobalAsax() +47
       System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +274
    
    [HttpException (0x80004005): Could not load file or assembly 'file:///C:\Users\3D Electronics\AppData\Local\Temp\Temporary ASP.NET Files\vs\f434569b\46cd6e6e\App_global.asax.jftlga3s.dll' or one of its dependencies. The system cannot find the file specified.]
       System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +65
       System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +458
       System.Web.Compilation.BuildManager.CallAppInitializeMethod() +35
       System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +605
    
    [HttpException (0x80004005): Could not load file or assembly 'file:///C:\Users\3D Electronics\AppData\Local\Temp\Temporary ASP.NET Files\vs\f434569b\46cd6e6e\App_global.asax.jftlga3s.dll' or one of its dependencies. The system cannot find the file specified.]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +10080656
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +99
       System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +263
    

     


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

    Friday, March 27, 2020 7:16 AM

All replies

  • User288213138 posted

    Hi deadstellar,

    Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'file:///C:\Users\3D Electronics\AppData\Local\Temp\Temporary ASP.NET Files\vs\f434569b\46cd6e6e\App_global.asax.jftlga3s.dll' or one of its dependencies. The system cannot find the file specified.

    The typical cause of this error is that the referenced assembly isn't on the file system. There can be multiple causes of this.

    To help you debug this, here are some things to check:

    1.Make sure all the files from the build output are copied to the destination.

    2.Right click the referenced assembly in Visual Studio, click Properties and make sure that Copy Local is set to true.

    Best regards,

    Sam

    Monday, March 30, 2020 2:47 AM