HangfireIO / HangfireIO/Hangfire
Could not load assembly..
- Dominant language
- C#
- Stars
- 10.1k
- Forks
- 1.8k
- Avg merge
- 1h 19m
- Merged PRs (30d)
- 1
Description
I get this error and not sure why.
The object seems to be serialised fine, proposalData, in the DB. But it cant load this method for some reason. The CRM service is a webservice to MSDynamics. The get function there is also static.
The class is as follows
```
using Web.UI.CRMDiscoveryService;
using Web.UI.CRMService;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Web.UI.Libs.MsDynamicsCrm
{
public class Proposals
{
public static void ConsumerSubmit(new_prop proposalData)
{
CrmService service = CrmHelper.GetService();
service.Create(proposalData);
}
}
}
```
```
System.TypeLoadException
Could not load type 'Web.UI.Libs.MsDynamicsCrm.Proposals' from assembly 'Web.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
System.TypeLoadException: Could not load type 'Web.UI.Libs.MsDynamicsCrm.Proposals' from assembly 'Web.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)
at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
at System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
at Hangfire.Storage.InvocationData.Deserialize()
```
Contributor guide
Research direction
Start with the Web.UI.Libs.MsDynamicsCrm.Proposals class and the Hangfire.Storage.InvocationData.Deserialize entry point shown in the stack trace. Reproduce the TypeLoadException using the supplied job data and determine the concrete cause and verified resolution for loading the type.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100