无法加载显示名称为“VJSharpCodeProvider”的程序集

我在我的ASP.Net 3.5应用程序中添加了一个AjaxToolkit:AutoCompleteExtender。 Web服务位于同一Web应用程序中。 现在,当我在VS2008中按F5 / Debug时出现此错误,并且到目前为止逐步退出更改尚未显示原因。

我似乎无法摆脱错误。 应用程序启动时,我一旦运行就不会发现任何问题。

BindingFailure was detected Message: The assembly with display name 'VJSharpCodeProvider' failed to load in the 'LoadFrom' binding context of the AppDomain with ID 4. The cause of the failure was: System.IO.FileNotFoundException: Could not load file or assembly 'VJSharpCodeProvider, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. File name: 'VJSharpCodeProvider, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' === Pre-bind state information === LOG: DisplayName = VJSharpCodeProvider, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (Fully-specified) Calling assembly : (Unknown). === LOG: This bind starts in default load context. LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\ v2.0.50727\config\machine.config. LOG: Post-policy reference: VJSharpCodeProvider, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a/VJSharpCodeProvider.DLL. etc 

所以我认为这不是问题。 exception可能一直被抛出,但我在那里的所有类型的Debug / Exceptions中打开了“抛出exception时断开”,以诊断不相关的问题。 由于我取消选中复选框为默认状态,因此我不再看到绑定问题。

我们在这里工作了几次。 这是我们发现的。

如果接受的解决方案不适合您,请尝试安装VJSharp可再发行组件包。

32位: http : //www.microsoft.com/download/en/details.aspx?id = 18084

64位: http : //www.microsoft.com/download/en/confirmation.aspx?id = 15468

当其他解决方案都不起作用时,这让我超越了错误。

在我的机器上发生BSOD后,这发生在我身上。 清除AppData / Local / Temp / Temporary ASP.NET Files /文件夹对我来说,我想临时文件因崩溃而损坏。

在我的情况下,我试图在VS2010中编译一个BizTalk项目,我得到了

无法加载文件或程序集’VJSharpCodeProvider,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a’或其依赖项之一。 发生了与安全性有关的错误。 (HRESULTexception:0x8013150A)

到目前为止发布的其他答案都没有起作用 – 但是对我的BizTalkServices IIS站点的用户这样做了。 这只在我的本地机器上,而不是实际生产。

为用户提供IIS站点管理员权益的智慧当然值得商榷,这将为找到某人的真正问题提供线索。

我得到了同样的错误,但出于不同的原因 – 我引用了一个C ++ / CLI DLL文件。

经过几天我的头撞墙后,我下载并安装了最新的Visual C ++ ,一切正常。

编辑:经过几天的项目工作,我在Fusion日志中再次目睹了这个错误。 看来应用程序中隐藏了一个不同的错误:拒绝访问或类似的东西。 因此,在我修复错误之后,这个错误并没有从日志中消失,但没有破坏任何东西。 所以这个错误可能肯定会产生误导。 获得的经验:在尝试修复此错误之前,请检查应用程序是否存在其他错误。

我也收到了同样的错误,但我的解决方案与上述所有内容完全不同。 在Web配置中,我引用了程序集绑定,使其比我尝试加载的版本更旧,例如。

      

我试图安装4.2.3版本。 我希望这可以帮助别人!