Skip to main content


 

Symptoms


"Could not load type " error message
 

Diagnoses


I have a K2 workflow that I built in Visual Studio 2012 and that uses SharePoint Workflow Integration. I selected "Network Share (File System)" for Form Location, and provided Instantiation.aspx, Association.aspx and Task.aspx pages -- as well as the assemblies -- in the Network Settings screens. After I deployed the workflow, I tried to start an instance of the workflow in SharePoint (workflows -andgt Start a New Workflow) and received the following error message on Instantiation.aspx:

Could not load type 'Namespace.Namespace'

I verified that the pages were deployed to the k2blackpearlpages directory, and that the assembly was deployed to the _app_bin directory, and that it is the correct _app_bin directory (wss80_app_bin).
 

Resolution

Customer had created the assembly and forms from a web application. The project needed to be a web site. Some related posts:

http://blogs.msdn.com/b/benjaminperkins/archive/2013/12/02/could-not-load-type-namespace-class-from-assembly-namespace.aspx

http://forums.asp.net/t/1182823.aspx?Could not load type namespace User from assembly assemblyName Version 1 0 0 0 Culture neutral PublicKeyToken null

http://stackoverflow.com/questions/2005747/could-not-load-type-namespace-global-causing-me-grief




 
Be the first to reply!

Reply