Опытный
 
Профиль
Группа: Awaiting Authorisation
Сообщений: 562
Регистрация: 20.9.2007
Репутация: нет Всего: -1
|
от чего такие ошибки могут быть? похоже что то в веб конфиге не дописал. | Код | <?xml version="1.0"?> <configuration> <configSections> <section name="hibernate-configuration" type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate" /> <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/> <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> </sectionGroup> </sectionGroup> </sectionGroup> </configSections>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"> <session-factory> <property name="proxyfactory.factory_class">NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle</property> <property name="connection.provider"> NHibernate.Connection.DriverConnectionProvider </property> <property name="connection.driver_class"> NHibernate.Driver.SqlClientDriver </property> <property name="connection.connection_string"> Data Source=MICROSOF-993CA1\SQLEXPRESS;Initial Catalog=DocsContainer;Persist Security Info=True;User ID=sa;Password=111 </property> <property name="dialect"> NHibernate.Dialect.MsSql2005Dialect </property> <property name="show_sql"> false </property> </session-factory> </hibernate-configuration> <appSettings/> <connectionStrings/> <system.web> ................. .................
|
| Цитата | Unable to load type 'NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle' during configuration of proxy factory class. Possible causes are: - The NHibernate.Bytecode provider assembly was not deployed. - The typeName used to initialize the 'proxyfactory.factory_class' property of the session-factory section is not well formed.
|
| Цитата | Трассировка загрузки сборки: Следующая информация может быть полезна при выяснении причин сбоя при загрузке сборки 'NHibernate.ByteCode.Castle'.
=== Информация о состоянии предварительной привязки === Журнал: User = MICROSOF-993CA1\Admin Журнал: DisplayName = NHibernate.ByteCode.Castle (Partial) Журнал: Appbase = file:///D:/Documents and Settings/Admin/Мои документы/Visual Studio 2008/Projects/WebApplication1/WebApplication1/ Журнал: Initial PrivatePath = D:\Documents and Settings\Admin\Мои документы\Visual Studio 2008\Projects\WebApplication1\WebApplication1\bin Вызов сборки: NHibernate, Version=2.1.2.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4. === Журнал: данная привязка начинается в контексте загрузки default. Журнал: используется файл конфигурации приложения: D:\Documents and Settings\Admin\Мои документы\Visual Studio 2008\Projects\WebApplication1\WebApplication1\web.config. Журнал: используется файл конфигурации компьютера из D:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config. Журнал: политика в данный момент не применяется к ссылке (личная, пользовательская, частичная привязка сборки или привязка по местоположению). Журнал: данная привязка встречалась ранее и закончилась ошибкой hr = 0x80070002.
Трассировка стека:
[FileNotFoundException: Невозможно загрузить файл или сборку "NHibernate.ByteCode.Castle" или один из зависимых от них компонентов. Не удается найти указанный файл.] System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0 System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43 System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127 System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142 System.Reflection.Assembly.Load(String assemblyString) +28 NHibernate.Util.ReflectHelper.TypeFromAssembly(AssemblyQualifiedTypeName name, Boolean throwOnError) +530 NHibernate.Util.ReflectHelper.ClassForName(String name) +64 NHibernate.Bytecode.AbstractBytecodeProvider.SetProxyFactoryFactory(String typeName) +71
[UnableToLoadProxyFactoryFactoryException: Unable to load type 'NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle' during configuration of proxy factory class. Possible causes are: - The NHibernate.Bytecode provider assembly was not deployed. - The typeName used to initialize the 'proxyfactory.factory_class' property of the session-factory section is not well formed.
Solution: Confirm that your deployment folder contains one of the following assemblies: NHibernate.ByteCode.LinFu.dll NHibernate.ByteCode.Castle.dll] NHibernate.Bytecode.AbstractBytecodeProvider.SetProxyFactoryFactory(String typeName) +128 NHibernate.Cfg.Configuration.ConfigureProxyFactoryFactory() +121 NHibernate.Cfg.Configuration.BuildSessionFactory() +35 WebApplication1.documents.OpenSession() in D:\Documents and Settings\Admin\Мои документы\Visual Studio 2008\Projects\WebApplication1\WebApplication1\documents.cs:53 WebApplication1.documents.CreateDocuments() in D:\Documents and Settings\Admin\Мои документы\Visual Studio 2008\Projects\WebApplication1\WebApplication1\documents.cs:34 WebApplication1.docs.Button1_Click(Object sender, EventArgs e) in D:\Documents and Settings\Admin\Мои документы\Visual Studio 2008\Projects\WebApplication1\WebApplication1\docs.aspx.cs:43 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
|
|