1

我正在使用 NHibernate 开发一个网络应用程序,并收到错误

Unable to find assembly 'NHibernate, Version=2.1.2.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4'

奇怪的是它是间歇性的,当 ti 发生时,它会导致 VS 2010 嵌入式 Web 服务器崩溃。但它不会发生在每个请求或任何特定请求上。

我在网上找到了几篇文章,指出了一些不同的可能解决方案,并尝试了它们(包括确保我的 /bin 文件夹有副本,确保 dll 未被阻止,以及为 32 位编译应用程序)。这些解决方案似乎都没有影响它,无论如何,前一对似乎总是会成为问题的问题,而不是间歇性的。

4

1 回答 1

0

I have gotten similar errors and found that the real problem is not being reported. If you are getting these while debugging in Visual Studio, it can help to go to Debug > Exceptions and select the "Thrown" checkboxes (I am using VS 2008). For me, this allowed the error to be reported in Visual Studio instead of my web browser, and provided more detailed and accurate error information.

If you do this, realize that some of these exceptions may have been previously handled but now will disrupt your workflow by breaking at those points. If this happens, you can just turn off the exceptions that you don't need to break on.

于 2012-06-06T14:55:26.170 回答