{"id":35,"date":"2007-04-19T16:32:47","date_gmt":"2007-04-19T16:32:47","guid":{"rendered":"http:\/\/www.myfatblog.co.uk\/?p=35"},"modified":"2007-04-19T16:32:47","modified_gmt":"2007-04-19T16:32:47","slug":"workflow-design-in-visual-studio-2005","status":"publish","type":"post","link":"http:\/\/www.myfatblog.co.uk\/index.php\/2007\/04\/workflow-design-in-visual-studio-2005\/","title":{"rendered":"Workflow design in Visual Studio 2005"},"content":{"rendered":"<p>Well that was an interesting few hours this afternoon following Nick&#8217;s article on creating workflow within Visual Studio 2005 for SharePoint. I got as far as creating all the InfoPath structures, and then when I went to edit the workflow.cs in Workflow Designer, I was faced with a Class Script and Nick had a pretty picture?.. hmm what went wrong..<\/p>\n<p>Well the key difference is that Nick is developing his workflows on a Virtual machine that has Visual Studio and SharePoint installed.. I don&#8217;t.. even though I have the .Net 3.0 foundation and everything else loaded, I don&#8217;t have some of the key DLL&#8217;s that are needed..<\/p>\n<p>How does this manifest itself I hear you say.. Well it&#8217;s not that obvious whats wrong, other than the fact that you don&#8217;t get the pretty workflow designer window and the relevant tools. There is however 3 Warnings in the error window stating that <strong>&#8220;The referenced component &#8216;Microsoft.SharePoint&#8217; could not be found&#8221;<\/strong> , this is also joined by entries for Microsoft.SharePoint.WorkflowActions and Microsoft.Office.Workflow.Tasks.<\/p>\n<p>The resolution for this is to copy the relevant files from a server with these assemblies already installed and then registering them in your global assembly cache (GAC).<\/p>\n<p>Firstly, if you don&#8217;t have this created, create the following directory on the machine with Visual Studio 2005 loaded on it..<\/p>\n<p>c:\\Program Files\\Common Files\\Microsoft Shared\\web server extensions\\12\\ISAPI<\/p>\n<p>Now, from the same location in the SharePoint servers 12 Hive, copy the following files into that location:-<\/p>\n<ul>\nMicrosoft.SharePoint.dll<br \/>\nMicrosoft.SharePoint.Security.dll<br \/>\nmicrosoft.sharepoint.WorkflowActions.dll<br \/>\nmicrosoft.office.workflow.tasks.dll<\/ul>\n<p>This resolves the issue with the references and permits the project to open properly without errors, but now, if you double click on the workflow.cs entry you get the following error:-<\/p>\n<p><em>Could not load file or assembly &#8216;Microsoft.SharePoint.WorkflowActions.intl, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&#8217; or one of its dependencies. The system cannot find the file specified.  <\/em><\/p>\n<p>To the same location as before, now copy the following 2 files from the SharePoint server:-<\/p>\n<p>c:\\WINDOWS\\assembly\\GAC_MSIL\\Microsoft.SharePoint.WorkflowActions.intl\\12.0.0<br \/>\n.0__71e9bce111e9429c\\microsoft.sharepoint.WorkflowActions.intl.dll<br \/>\nc:\\WINDOWS\\assembly\\GAC_MSIL\\Microsoft.SharePoint.WorkflowActions.intl.resour<br \/>\nces\\12.0.0.0__71e9bce111e9429c\\microsoft.SharePoint.workflowactions.intl.reso<br \/>\nurces.dll<\/p>\n<p>(You&#8217;ll have to cut and paste the above into notepad and remove the carriage returns as they wouldn&#8217;t paste into the blog properly for some reason..)<\/p>\n<p>Now the last part.. Open an explorer window on your development to the folder you just created, and open a second to c:\\windows\\assembly<\/p>\n<p>Now drag all 6 files from the ISAPI folder and drop them onto the C:\\windows\\assembly folder to register them with the GAC. (Note, the files won&#8217;t copy, it&#8217;ll just create the references you need..)<\/p>\n<p>Now run VS2005 once more and start workflowing to your hearts content..<\/p>\n<p>Many thanks to <a href=\"http:\/\/zgud.spaces.live.com\/\">Gudjon<\/a> who was the key source for that fix..<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Well that was an interesting few hours this afternoon following Nick&#8217;s article on creating workflow within Visual Studio 2005 for SharePoint. I got as far as creating all the InfoPath structures, and then when I went to edit the workflow.cs in Workflow Designer, I was faced with a Class Script and Nick had a pretty &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/www.myfatblog.co.uk\/index.php\/2007\/04\/workflow-design-in-visual-studio-2005\/\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[11,5,12,10],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Workflow design in Visual Studio 2005 - Blog of an overweight SharePoint addict<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.myfatblog.co.uk\/index.php\/2007\/04\/workflow-design-in-visual-studio-2005\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Workflow design in Visual Studio 2005 - Blog of an overweight SharePoint addict\" \/>\n<meta property=\"og:description\" content=\"Well that was an interesting few hours this afternoon following Nick&#8217;s article on creating workflow within Visual Studio 2005 for SharePoint. I got as far as creating all the InfoPath structures, and then when I went to edit the workflow.cs in Workflow Designer, I was faced with a Class Script and Nick had a pretty &hellip; Continue reading\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.myfatblog.co.uk\/index.php\/2007\/04\/workflow-design-in-visual-studio-2005\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog of an overweight SharePoint addict\" \/>\n<meta property=\"article:published_time\" content=\"2007-04-19T16:32:47+00:00\" \/>\n<meta name=\"author\" content=\"Cimares\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@cimares\" \/>\n<meta name=\"twitter:site\" content=\"@cimares\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Cimares\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/index.php\/2007\/04\/workflow-design-in-visual-studio-2005\/\",\"url\":\"http:\/\/www.myfatblog.co.uk\/index.php\/2007\/04\/workflow-design-in-visual-studio-2005\/\",\"name\":\"Workflow design in Visual Studio 2005 - Blog of an overweight SharePoint addict\",\"isPartOf\":{\"@id\":\"http:\/\/www.myfatblog.co.uk\/#website\"},\"datePublished\":\"2007-04-19T16:32:47+00:00\",\"dateModified\":\"2007-04-19T16:32:47+00:00\",\"author\":{\"@id\":\"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.myfatblog.co.uk\/index.php\/2007\/04\/workflow-design-in-visual-studio-2005\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/#website\",\"url\":\"http:\/\/www.myfatblog.co.uk\/\",\"name\":\"Blog of an overweight SharePoint addict\",\"description\":\"The rantings of a (not so) food obsessed IT consultant!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.myfatblog.co.uk\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6\",\"name\":\"Cimares\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg\",\"contentUrl\":\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg\",\"caption\":\"Cimares\"},\"sameAs\":[\"http:\/\/www.myfatblog.co.uk\"],\"url\":\"http:\/\/www.myfatblog.co.uk\/index.php\/author\/reginald\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Workflow design in Visual Studio 2005 - Blog of an overweight SharePoint addict","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.myfatblog.co.uk\/index.php\/2007\/04\/workflow-design-in-visual-studio-2005\/","og_locale":"en_US","og_type":"article","og_title":"Workflow design in Visual Studio 2005 - Blog of an overweight SharePoint addict","og_description":"Well that was an interesting few hours this afternoon following Nick&#8217;s article on creating workflow within Visual Studio 2005 for SharePoint. I got as far as creating all the InfoPath structures, and then when I went to edit the workflow.cs in Workflow Designer, I was faced with a Class Script and Nick had a pretty &hellip; Continue reading","og_url":"http:\/\/www.myfatblog.co.uk\/index.php\/2007\/04\/workflow-design-in-visual-studio-2005\/","og_site_name":"Blog of an overweight SharePoint addict","article_published_time":"2007-04-19T16:32:47+00:00","author":"Cimares","twitter_card":"summary_large_image","twitter_creator":"@cimares","twitter_site":"@cimares","twitter_misc":{"Written by":"Cimares","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/www.myfatblog.co.uk\/index.php\/2007\/04\/workflow-design-in-visual-studio-2005\/","url":"http:\/\/www.myfatblog.co.uk\/index.php\/2007\/04\/workflow-design-in-visual-studio-2005\/","name":"Workflow design in Visual Studio 2005 - Blog of an overweight SharePoint addict","isPartOf":{"@id":"http:\/\/www.myfatblog.co.uk\/#website"},"datePublished":"2007-04-19T16:32:47+00:00","dateModified":"2007-04-19T16:32:47+00:00","author":{"@id":"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.myfatblog.co.uk\/index.php\/2007\/04\/workflow-design-in-visual-studio-2005\/"]}]},{"@type":"WebSite","@id":"http:\/\/www.myfatblog.co.uk\/#website","url":"http:\/\/www.myfatblog.co.uk\/","name":"Blog of an overweight SharePoint addict","description":"The rantings of a (not so) food obsessed IT consultant!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.myfatblog.co.uk\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6","name":"Cimares","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/image\/","url":"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg","contentUrl":"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg","caption":"Cimares"},"sameAs":["http:\/\/www.myfatblog.co.uk"],"url":"http:\/\/www.myfatblog.co.uk\/index.php\/author\/reginald\/"}]}},"_links":{"self":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/35"}],"collection":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=35"}],"version-history":[{"count":0,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/35\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=35"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=35"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=35"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}