I am new to NHibernate and am working on an ASP.NET webforms project that references another assembly that uses NHibernate. I can make calls to methods that use NHibernate on my local copy, but when I publish the project to the test server, I get this:
could not instantiate CacheProvider: NHibernate.Caches.SysCache.SysCacheProvider, NHibernate.Caches.SysCache
I apologize for the vague nature of this question, but, given what little I know about NHibernate at this point, it's all I can really offer. Perhaps a light might come on for some gurus out there who caught on to the fact that it works when debugging locally, but not when published.
If more info is needed on this in order to provide an answer, just let me know what it is.
Have you confirmed that the published project includes NHibernate.Caches.SysCache.dll in the bin folder? If not, try adding that as a reference and republishing. Sounds like it just can't find the dll.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With