-
Notifications
You must be signed in to change notification settings - Fork 35
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
Re: UseRecurringJob("recurringjob.json") Newtonsoft.Json.JsonSerializationException #5
Comments
Did you find out? I'm getting the same error.... |
No I didn't..was hoping for a response |
@ChristopherTodd |
Since it was urgent to me to fix this... I changed the receiving object definition for the property that gave me this error (from System.Type to string) to avoid this exception. It's a workaround that you may use as well... |
@claudiobottari |
Hi @icsharp thanks for getting in touch! we are using: please see a pic of the error we have recreated and please find the json below: [ |
@ChristopherTodd |
@claudiobottari can you explain how you did perform it? |
Hi there and sorry for the late reply. Since there's clearly an issues on deserializing certain types, I worked around this limitation updating the property which raised the exception to be a simple string... that was enough to make the serialization/deserialization work. At that point I converted by myself the string to the required type. Is is clear? |
Hi Guys.. I was getting this error while setting up a simple project.. The actual recurring job was a new project in the same solution. |
I also encountered this problem. How to solve it? Is there a demo? thank you |
If anyone else runs into this issue, here is what solved it for me: Use the AssemblyQualifiedName property to discover the full name of your class and use that in the job-type property. I added this bit of code in my startup before attempting to do anything with Hangfire: |
@kevinmatspie you're SUUUUUUUPER HEROOOOOOOOOOOOOO, |
Hello,
We are using your excellent hangfire extension.However, we are stuck at trying to get the recurringjob.json method of recurring jobs. we get the following error:
Newtonsoft.json.JsonSerializationException 'Error converting value to type 'System.Type.Path' [0].job-type, line 5, position 69'
Inner exception
ArgumentException: Could not cast or convert from System.String to System.Type.
it would be awesome if we could get some help with this :)
Thanks
The text was updated successfully, but these errors were encountered: