My Recaptcha settings table has disappeared, how to recreate ? using migration ?

Topics: Customizing Orchard, Troubleshooting
Dec 5, 2012 at 3:15 PM

After discovering that no more recaptach was working in my v1.6, I had a look in the logs and discovered that the recaptchaSettings related table was missing ???

Here is the exception

Orchard.ContentManagement.Drivers.Coordinators.ContentPartDriverCoordinator - GenericADOException thrown from IContentPartDriver by Orchard.AntiSpam.Drivers.ReCaptchaPartDriver
NHibernate.Exceptions.GenericADOException: could not load an entity: [Orchard.AntiSpam.Models.ReCaptchaSettingsPartRecord#5][SQL: SELECT recaptchas0_.Id as Id60_0_, recaptchas0_.PublicKey as PublicKey60_0_, recaptchas0_.PrivateKey as PrivateKey60_0_, recaptchas0_.TrustAuthenticatedUsers as TrustAut4_60_0_ FROM Orchard_AntiSpam_ReCaptchaSettingsPartRecord recaptchas0_ WHERE recaptchas0_.Id=?] ---> System.Data.SqlClient.SqlException: Invalid object name 'Orchard_AntiSpam_ReCaptchaSettingsPartRecord'.

Is there a way to recreate it ?

I tried disabling the Antispam module and re enable it but no success.


Dec 5, 2012 at 4:34 PM

Ok, I recreated tables in SQL....