-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Custom ASP NET MemberShip Provider Mapping
PostPosted: Wed May 16, 2007 5:11 pm 
Newbie

Joined: Wed May 16, 2007 4:57 pm
Posts: 2
NHibernate version: 1.2.0.400

Full stack trace of any exception that occurs: TITLE: Sigel.Web.Communication
------------------------------

Error inesperada en la aplicacion.

------------------------------
ADDITIONAL INFORMATION:

Se produjo una excepción en el inicializador de tipo de 'Nested'. (KESF.Data.NHibernate)

------------------------------

The following types may not be used as proxies:
Sigel.Web.Core.Security.SigelUser: method GetPassword should be virtual
Sigel.Web.Core.Security.SigelUser: method ResetPassword should be virtual
Sigel.Web.Core.Security.SigelUser: method get_IsOnline should be virtual
Sigel.Web.Core.Security.SigelUser: method ChangePassword should be virtual (NHibernate)

------------------------------
BUTTONS:

OK
------------------------------


Name and version of the database you are using: Sql Server 2005 SP2


I have a custom MemberShip provider and a Custom MemberShipUser(SigelUser), the problem is that I can't mark as virtual the following methods:
GetPassword should be virtual
Sigel.Web.Core.Security.SigelUser: method ResetPassword
Sigel.Web.Core.Security.SigelUser: method get_IsOnline
Sigel.Web.Core.Security.SigelUser: method ChangePassword

What should I do ?


Top
 Profile  
 
 Post subject: One Solution
PostPosted: Thu May 17, 2007 1:07 pm 
Newbie

Joined: Wed May 16, 2007 4:57 pm
Posts: 2
After some googling and documentation reading I found a way to fix it......NHibernate has a property that can disable the proxy validation, the property is hibernate.use_proxy_validator.

But I want to know if there is some other way to fix it...

Regards,


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 17, 2007 1:16 pm 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Map those classes with lazy="false".


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.