这个问题困扰我已经有一段时间了:
但这并没有帮助,MSDN文章中关于程序集绑定日志查看器的信息也没有用:(http://msdn.microsoft.com/en-us/library/e74a18c4.aspx)。
有人能解决这个问题吗?我猜这是新手错误,但我不知道该去哪里找答案。这可能是IIS 6.0配置问题吗?我的操作系统是Windows XP Professional Edition,使用的是Visual Studio 2008。
在获取程序集绑定监视器后,它会输出类似以下内容:
Could not load file or assembly 'app_code' or one of its dependencies.
The system cannot find the file specified.
我正在使用Visual Studio 2008和IIS6,在某些情况下出现了奇怪的错误。
为什么它会尝试加载'app_code',为什么会失败?
尝试使用异常中的信息来解决/查找更多信息。
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].
但这并没有帮助,MSDN文章中关于程序集绑定日志查看器的信息也没有用:(http://msdn.microsoft.com/en-us/library/e74a18c4.aspx)。
有人能解决这个问题吗?我猜这是新手错误,但我不知道该去哪里找答案。这可能是IIS 6.0配置问题吗?我的操作系统是Windows XP Professional Edition,使用的是Visual Studio 2008。
在获取程序集绑定监视器后,它会输出类似以下内容:
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Projects\NNNNNN\src\Trunc\Web\web.config
LOG: Using machine configuration file from c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Post-policy reference: Microsoft.VisualStudio.Web, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/d94fb3b9/d76068ec/Microsoft.VisualStudio.Web.DLL.
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/d94fb3b9/d76068ec/Microsoft.VisualStudio.Web/Microsoft.VisualStudio.Web.DLL.
LOG: Attempting download of new URL file:///C:/Projects/NNNNNN/src/Trunc/Web/bin/Microsoft.VisualStudio.Web.DLL.
LOG: Attempting download of new URL file:///C:/Projects/NNNNNN/src/Trunc/Web/bin/Microsoft.VisualStudio.Web/Microsoft.VisualStudio.Web.DLL.
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/d94fb3b9/d76068ec/Microsoft.VisualStudio.Web.EXE.
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/d94fb3b9/d76068ec/Microsoft.VisualStudio.Web/Microsoft.VisualStudio.Web.EXE.
LOG: Attempting download of new URL file:///C:/Projects/NNNNNN/src/Trunc/Web/bin/Microsoft.VisualStudio.Web.EXE.
LOG: Attempting download of new URL file:///C:/Projects/NNNNNN/src/Trunc/Web/bin/Microsoft.VisualStudio.Web/Microsoft.VisualStudio.Web.EXE.
LOG: All probing URLs attempted and failed.