forked from arnoldasgudas/Hangfire.MySqlStorage
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FluentNHibernateStorage giving Event Log Error when used in preload/auto-start #23
Comments
Try installing log4net. It's set up as a dependency, but apparently it's
not loading within your project
…On Tue, Dec 28, 2021, 12:05 PM MedfordChris ***@***.***> wrote:
I have implemented preload/auto-start for Hangfire as per the Hangfire
documentation, and it works when using in-memory storage.
When I change the storage to FluentNHibernateStorage, the Application Pool
stops running and I get the following error in the Event Log:
An error occurred while executing Preload method. Exception:
System.Runtime.Serialization.SerializationException Message: Type is not
resolved for member 'log4net.Util.PropertiesDictionary,log4net,
Version=2.0.13.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a'.
StackTrace: at
System.Web.Hosting.PreloadHost.CreateIProcessHostPreloadClientInstanceAndCallPreload(String
preloadObjTypeName, String[] paramsForStartupObj) at
System.Web.Hosting.ProcessHost.PreloadApplicationIfRequired(String appId,
IApplicationHost appHostParameter, HostingEnvironmentParameters
hostingParameters, LockableAppDomainContext ac)
Using the FluentNHibernateStorage works fine if I don't preload/auto-start
Hangfire.
—
Reply to this email directly, view it on GitHub
<#23>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6QVSSQD53BGZXOVNN2CUTUTH36JANCNFSM5K4RQ7JQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***
com>
|
I have log4net loaded in the project. I confirmed that version 2.0.13.0 of log4net.dll is in the bin folder of the deployed website. |
Does FluentNHibernateStorage extend MarshalByRefObject? I see MarshalByRefObject mentioned several places online as required to avoid the error SerializationException: Type is not resolved for member "..." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have implemented preload/auto-start for Hangfire as per the Hangfire documentation, and it works when using in-memory storage.
When I change the storage to FluentNHibernateStorage, the Application Pool stops running and I get the following error in the Event Log:
An error occurred while executing Preload method. Exception: System.Runtime.Serialization.SerializationException Message: Type is not resolved for member 'log4net.Util.PropertiesDictionary,log4net, Version=2.0.13.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a'. StackTrace: at System.Web.Hosting.PreloadHost.CreateIProcessHostPreloadClientInstanceAndCallPreload(String preloadObjTypeName, String[] paramsForStartupObj) at System.Web.Hosting.ProcessHost.PreloadApplicationIfRequired(String appId, IApplicationHost appHostParameter, HostingEnvironmentParameters hostingParameters, LockableAppDomainContext ac)
Using the FluentNHibernateStorage works fine if I don't preload/auto-start Hangfire.
The text was updated successfully, but these errors were encountered: