Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/visual-studio-2010/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 2010 VS2010正在尝试加载未引用的程序集_Visual Studio 2010 - Fatal编程技术网

Visual studio 2010 VS2010正在尝试加载未引用的程序集

Visual studio 2010 VS2010正在尝试加载未引用的程序集,visual-studio-2010,Visual Studio 2010,在我解释实际问题之前,在未知的时间长度内,VS2010没有被设置为在CLR异常时中断。直到最近,当我在使用应用程序时发现一个错误时,我才注意到这一点。对我来说,这个选择是如何转变的是一个谜。这可能与以下内容有关,也可能与以下内容无关 现在我已经抛出了CLR异常,下面详细的异常将在以下位置停止VS2010: using (UnitOfWork uow22 = new UnitOfWork()) { bool useWebInt = uow22.Query<MCCommon.W

在我解释实际问题之前,在未知的时间长度内,VS2010没有被设置为在CLR异常时中断。直到最近,当我在使用应用程序时发现一个错误时,我才注意到这一点。对我来说,这个选择是如何转变的是一个谜。这可能与以下内容有关,也可能与以下内容无关

现在我已经抛出了CLR异常,下面详细的异常将在以下位置停止VS2010:

  using (UnitOfWork uow22 = new UnitOfWork())
  {
    bool useWebInt = uow22.Query<MCCommon.Web>().Where(o => o.Enabled == true).Select(o => o.OfflineEnabled).FirstOrDefault(); // <--- causes the exception
    enabled = useWebInt;
  }
现在MyCurtsAdmin(错误中引用的)是一个单独的项目,既不被我的项目引用,也不被MCCommon dll引用。MyCourtsAdmin不引用MCCommon,但没有双边引用

我已经在我的项目的整个目录结构中搜索了字符串“MyCurtsAdmin”,我能找到的唯一参考是在myproject.suo中。我当然不能编辑myproject.suo,我也不认为我应该编辑


我被难住了,希望您能为解决这个问题提供任何/所有的帮助。

我应该补充一点,这个函数运行得很好——或者至少看起来是这样。您误解了该对话框中抛出的复选框的作用。让他们离开是正常的方式。当您打开它时,您将看到所有异常,包括那些通常由您没有编写的代码处理的异常。@Hans Passant我开始认为可能是这种情况。谢谢
System.IO.FileNotFoundException occurred
  Message=Could not load file or assembly 'MyCourtsAdmin' or one of its dependencies. The system cannot find the file specified.
  Source=mscorlib
  FileName=MyCourtsAdmin
  FusionLog==== Pre-bind state information ===
LOG: User = KATOOMBA\Administrator
LOG: DisplayName = MyCourtsAdmin
 (Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: MyCourtsAdmin | Domain ID: 1
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the assembly,
WRN: that consists of the simple name, version, culture, and public key token.
WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
LOG: Appbase = file:///C:/Users/Administrator/Documents/My Projects/MyCourts/bin/Debug/
LOG: Initial PrivatePath = NULL
Calling assembly : DevExpress.Data.v11.2, Version=11.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Users\Administrator\Documents\My Projects\MyCourts\bin\Debug\MyCourts.vshost.exe.Config
LOG: Using host configuration file: 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Users/Administrator/Documents/My Projects/MyCourts/bin/Debug/MyCourtsAdmin.DLL.
LOG: Attempting download of new URL file:///C:/Users/Administrator/Documents/My Projects/MyCourts/bin/Debug/MyCourtsAdmin/MyCourtsAdmin.DLL.
LOG: Attempting download of new URL file:///C:/Users/Administrator/Documents/My Projects/MyCourts/bin/Debug/bin/DLLs/MyCourtsAdmin.DLL.
LOG: Attempting download of new URL file:///C:/Users/Administrator/Documents/My Projects/MyCourts/bin/Debug/bin/DLLs/MyCourtsAdmin/MyCourtsAdmin.DLL.
LOG: Attempting download of new URL file:///C:/Users/Administrator/Documents/My Projects/MyCourts/bin/Debug/MyCourtsAdmin.EXE.
LOG: Attempting download of new URL file:///C:/Users/Administrator/Documents/My Projects/MyCourts/bin/Debug/MyCourtsAdmin/MyCourtsAdmin.EXE.
LOG: Attempting download of new URL file:///C:/Users/Administrator/Documents/My Projects/MyCourts/bin/Debug/bin/DLLs/MyCourtsAdmin.EXE.
LOG: Attempting download of new URL file:///C:/Users/Administrator/Documents/My Projects/MyCourts/bin/Debug/bin/DLLs/MyCourtsAdmin/MyCourtsAdmin.EXE.

  StackTrace:
       at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.LoadWithPartialNameInternal(AssemblyName an, Evidence securityEvidence, StackCrawlMark& stackMark)
  InnerException: