Stack trace:

[InvalidProgramException: Common Language Runtime detected an invalid program.]
   MobilePhoneProxy.GetCost(MobileProduct , MobileCampaign , Nullable`1 , 
Decimal& , Decimal& ) +0
   ProductSummary.GetPriceDescription() in ...ProductSummary.ascx.cs:170
   MobilePhones_ProductSummary.DataBind() in ...ProductSummary.ascx.cs:51
   Mobile_Product.Initialise(MobileProduct product, Supplier supplier, 
MobileCampaign campaign, MobilePhone phone, MobileOfferDto offer) in 
...Product.aspx.cs:198
   Mobile_Product.Page_Load(Object sender, EventArgs e) in 
...Product.aspx.cs:158
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, 
EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +92
   System.Web.UI.Adapters.ControlAdapter.OnLoad(EventArgs e) +12
   System.Web.UI.Control.LoadRecursive() +9696438
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, 
Boolean includeStagesAfterAsyncPoint) +772


And the NH config:

  <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
    <session-factory name="MySessionFactory">
      <property 
name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
      <property 
name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
      <property name="connection.connection_string">Initial 
Catalog=MyDB;Data Source=.;Integrated Security=SSPI;</property>
      <property name="default_schema">MyDB.dbo</property>
      <property name="connection.isolation">ReadCommitted</property>
      <property name="show_sql">false</property>
      <property 
name="dialect">NHibernate.Dialect.MsSql2000Dialect</property>
      <property name="query.substitutions">true 1, false 0, yes 'Y', no 
'N'</property>
      <property 
name="cache.provider_class">NHibernate.Caches.SysCache.SysCacheProvider, 
NHibernate.Caches.SysCache</property>
      <property name="cache.use_query_cache">false</property>
      <property name="cache.use_second_level_cache">true</property>
      <property name="cache.default_expiration">3600</property>
      <property name="current_session_context_class">web</property>
      <mapping assembly="MyDomain" />
    </session-factory>
  </hibernate-configuration>


On Wednesday, April 3, 2013 7:49:19 PM UTC+11, PeteA wrote:
>
> Please provide more information, including at a minimum (1) the full stack 
> trace for the exception and (2) the NHibernate configuration (not mappings)
>
>  
>
> /Pete
>
>  
>
> *From:* [email protected] <javascript:> [mailto:
> [email protected] <javascript:>] *On Behalf Of *jason.hill
> *Sent:* 03 April 2013 08:12
> *To:* [email protected] <javascript:>
> *Subject:* [nhusers] Common Language Runtime detected an invalid program 
> when using lazy properties
>
>  
>
> We are using NH 3.2 and have been experimenting with using lazy properties 
> on some of our objects but have been getting the above error on occasion. 
> Everything seems to be configured correctly and the lazy properties are 
> working except for this error that pops up in certain scenarios. Has anyone 
> else experienced this or can point us towards a resolution? 
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "nhusers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> To post to this group, send email to [email protected] <javascript:>
> .
> Visit this group at http://groups.google.com/group/nhusers?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to