开发者

Castle ActiveRecord - SessionScopeWebModule

Now and again im getting the following error "Seems that the framework isn't configured properly. (isWeb != true and SessionScopeWebModule is in use) Check the documentation for further information"

and my web app crashes

my web.config is so..

<activerecord isweb="true">
    <config>
      <add k开发者_JS百科ey="connection.driver_class" value="NHibernate.Driver.SqlClientDriver" />
      <add key="dialect" value="NHibernate.Dialect.MsSql2005Dialect" />
      <add key="connection.provider" value="NHibernate.Connection.DriverConnectionProvider" />
      <add key="connection.connection_string_name" value="main" />
      <add key="proxyfactory.factory_class" value="NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle"/>

    </config>
  </activerecord>

any ideas, on what I need to change\add? thank you


isWeb is case sensitive.

<activerecord isWeb="true">

From the source:

XmlAttribute isWebAtt = section.Attributes["isWeb"]; 

They aren't being nice about case :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜