I am working on overriding the default behavior of the Activity class by inheriting from it and changing the "pageWorkflowType" in the web.config to my custom class. This is all documented in http://www.sitefinity.com/support/kb/sitefinity-3-x/how-to-notify-roles-that-a-page-has-been-sent-through-workflow.aspx
, but this post places the code in the App_Code folder. I got that working correctly. However, when I move the class outside of my solution into a custom DLL, compile, include the DLL as a reference, replace the pageWorkflowType my new class/assembly name (SiteFinityAddOns.CustomPageWorkflow, SiteFinityAddOns
), then run my project, I get an error that states:
Could not find a type for a name. The type name was 'CustomPageWorkflow, App_Code._33wn8b0, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
I know that the assembly name, and the class name are correct, because if I change them, I get different errors.
Another thing to note is that when the assembly name or the class name are WRONG, i get the error on my %siteroot%/default.aspx page, but when it is right, I only get the error on the %siteroot%/SiteFinity/ page.
Any ideas? Please help. I really don't want to have to put the code back into the project's App_Code folder.