Type not found in plugin for 4.00

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Hi,

I'm converting a plugin to nopCommerce 4.00 and have encountered a problem.
When the type of the plugin should be loaded it is not found, Type.GetType() returns null.
In Task.cs in Nop.Services.Tasks


Included image does not seem to work. (https://imgur.com/x8gAlDf)

If I at the breakpoint go to the Immediate window in visual studio I can set the type via the following command.

type = Type.GetType(typeof(Nop.Plugin.Misc.WebServices.Njord.ProcessOutQueueTask).AssemblyQualifiedName)

Am I missing something?

Best regards,
Peter Larsson!
6 years ago
Fixed your image for you -



I reported this bug right after you -

https://www.nopcommerce.com/boards/t/49294/nop-40-beta-bug-scheduled-tasks-inside-plugins-not-working.aspx
6 years ago
What a coincidence :)

I found this a about two weeks ago, but it was just yesterday that I began trying to really find the problem, but then I couldn't find anything wrong. :(
6 years ago
I found it tonight and spent two hours trying to suss it out. The fun of debugging!
6 years ago
Please see my reply in the second topic (in order to avoid duplicated discussions)
6 years ago
Yes, the solutioin was to include the full assemblyname in the [Type] column in the ScheduleTask table.

Nop.Plugin.Misc.WebServices.Njord.ProcessOutQueueTask, Nop.Plugin.Misc.WebServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null
6 years ago
UPDATE: we've found a way to avoid fully qualified names. Please see this commit
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.