因此,讓我先說說這個錯誤的奇怪之處在於應用程序正在運行,並且錯誤冒泡到事件日誌,但是它是間歇性的。有時候它會在兩個小時之間發生,有時會持續幾分鐘,有時會持續半小時。似乎沒有直接綁定到請求(並且請求似乎沒有因此而失敗,儘管幾乎所有的請求都應該立即到達NHibernate)。我已經確保dll在bin中,它是暢通無阻的(如果其中任何一個不是這種情況,我會期望它總是失敗,而不僅僅是有時)。ASP.NET應用程序爲NHibernate拋出「無法找到程序集」錯誤
對於應用程序,我使用Nhibernate 2.1.2,castle activerecord 2,ASP.NET MVC 2,並且該應用程序部署在SQL Server 2005 for SQL Server 2005的IIS 7.5上。我在Stack上看到類似的錯誤,但沒有答案,希望有人對此錯誤有所瞭解。
Message: Unable to find assembly 'NHibernate, Version=2.1.2.4000, Culture=neutral,
PublicKeyToken=aa95f207798dfdb4'.
StackTrace: at
System.Runtime.Serialization.Formatters.Binary.BinaryAssemblyInfo.GetAssembly()
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.GetType(BinaryAssemblyInfo
assemblyInfo, String name)
at System.Runtime.Serialization.Formatters.Binary.ObjectMap..ctor(String objectName,
String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[] typeInformationA,
Int32[] memberAssemIds, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo
assemblyInfo, SizedArray assemIdToAssemblyTable)
at
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped record)
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryHeaderEnum binaryHeaderEnum)
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Remoting.Channels.CrossAppDomainSerializer.DeserializeObject(MemoryStream stm)
at System.AppDomain.Deserialize(Byte[] blob)
at System.AppDomain.UnmarshalObject(Byte[] blob)
無法找到哪個組件?你能提供堆棧跟蹤還是更詳細的錯誤信息? – 2010-09-06 14:51:24
Nhibernate。我添加了堆棧跟蹤。 – Paul 2010-09-07 02:24:54