gpt4 book ai didi

asp.net - 无法加载文件或程序集

转载 作者:行者123 更新时间:2023-12-02 06:41:59 25 4
gpt4 key购买 nike

当我尝试在 Visual Studio 2008 中进行调试时,出现以下错误。我已经清理了 ASP.NET 临时文件夹并重新启动了 VS。我还删除了所谓的破坏性引用并将其添加回来。但似乎没有任何作用。有没有人遇到过类似的情况,有解决办法吗?

Could not load file or assembly '"GCS.Common (asif mohammed's conflicted copy 2010-01-29)"' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)

[FileLoadException: Could not load file or assembly '"GCS.Common (asif mohammed's conflicted copy 2010-01-29)"' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)]
System.Reflection.AssemblyName.nInit(Assembly& assembly, Boolean forIntrospection, Boolean raiseResolveEvent) +0
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +114 System.Reflection.Assembly.Load(String assemblyString) +28
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46

[ConfigurationErrorsException: Could not load file or assembly '"GCS.Common (asif mohammed's conflicted copy 2010-01-29)"' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +613 System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +203 System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +105
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +54
System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +8809426
System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +128
System.Web.Compilation.BuildManager.CompileCodeDirectories() +265 System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +320

[HttpException (0x80004005): Could not load file or assembly '"GCS.Common (asif mohammed's conflicted copy 2010-01-29)"' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)]
System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +58 System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +512 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +729

[HttpException (0x80004005): Could not load file or assembly '"GCS.Common (asif mohammed's conflicted copy 2010-01-29)"' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8890735
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +259

最佳答案

" * * * * * * * * 's conflicted copy with #### - ## - ## "

似乎您正在使用 dropbox 来同步文件,如果 2 台计算机离线更改同一个文件,dropbox 就会创建此“冲突副本”文件。当它们在线时,dropbox 同步算法会混淆哪个文件是正确的文件,因此它会保留两个文件并将其中一个文件重命名为此名称模式。

就您而言:

这发生在你的项目的 bin 目录中,只需删除带有“冲突副本”部分的文件并保留另一个。或者如果你的项目从另一个位置引用 dll,则删除这两个文件,然后重新构建解决方案。

关于asp.net - 无法加载文件或程序集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2260744/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com