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

前端之家收集整理的这篇文章主要介绍了asp.net – 无法加载文件或程序集前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
当我在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,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同步算法cofuses谁是正确的,所以它保持两个文件重命名一个到这个名字。

在你的情况下

这发生在您项目的bin目录中,只需使用“冲突复制”部分删除文件,并保留另一个。或者如果您的项目从其他位置引用dll并重新构建解决方案,则删除它们。

猜你在找的asp.Net相关文章