c# - Getting Error "Could not load file or assembly" for a DLL that I have removed from my solution -
I have no reference anywhere for this assembly that I can get. Any idea why I'm getting this error makes the project ok, but when I run in debug or release mode, I get a runtime exception. I'm running Visual Studio 2013.
Description: An uncontrolled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where the code originated from it. Exception Description: System.BadImageFormatException: One of the files or assemblies 'MyAssembly' or its dependencies could not be loaded. A runtime has been newly created and can not be loaded from this assembly runtime runtime. Source error: An unrestricted exception was encountered during the execution of the current web request. The information about the origin and location of the exception can be identified using the exception stack trace below. Assembly Load Trace: The assembly 'MyAssembly' can not be loaded because the following information can be helpful in detecting. === Pre-Bind Status Info === Log: User = User Log: DisplayName = MyAssembly (partial) LOG: Appbase = file: /// C: / path / copy / project / log: initial privatepath = C: \ Path \ to \ project \ bin calling assembly: (unknown). === LOG: This starts in the default load reference bound. Log: Using the application configuration file: C: \ path \ project \ web.config log: Using the host configuration file: C: \ User \ User \ IISExpress \ config \ aspnet.config Log: C from the machine configuration file Using: \ Windows \ Microsoft.NET \ Framework \ v2.0.50727 \ config \ machine.config Log: This policy is not being applied in context (private, custom, partial, or location-based assembly tie). Log: Try downloading new URL file: /// c: / user / user / appadata / local / temporary / temporary ASP.NET files / platform / 9A483FD2/913DB7F./IASandDLL Log: Try to download new URL file: /// c: / user / user / appadata / local / temporary / temporary asp.NET files / platform / 9a483fd2 / 913db7f0 / myAssembly / MyAssembly.DLL log: download new URL file Try: /// C: / path / to / project / bin / my Assam DLL ERR: Failed to complete assembly installation (HR = 0x8013101b) Finished the investigation
I Have found that still a MyAssembly.dll file is in the bin folder for me project. The file was removed and now it is run.
Comments
Post a Comment