c# - SharePoint Workflow Activity doesn't appear in SP Designer. Deployment was successful -


I have developed a SP workflow activity for the SP Designer. The deployment is successful in the webconfig file- authorizedType is inserted correctly:

     

Source Code:

  Public DependencyProperty TestProperty = DependencyProperty.Register ("Test", typeof (string), typeof (TestSite)); [Description ("new site name")] [category ("site")] [browsable (right)] [DesignerSerializationVisible] Public string test {{return (string ((string.getValue) (TestSite.TestProperty)); } Set {base.SetValue (TestSite.TestProperty, value); }} Protected Override ActivityExecutionStatus is executed using {{SPSite siteCollection = New SPSite (URL)} (ActivityExecutionContext executionContext) {{SPWeb web = siteCollection.OpenWeb ()} (using SPWeb testWeb = web.Webs. Add (Test)} {TestWeb.Description = "This is an exam!"; TestWeb.Title = test; }}} Return Activity ExecutionStats Close; }   

This is the .action file:

  & lt; Workflow Info & gt; & Lt; Verb sequential = "then" parallel = "and" & gt; & Lt; Action Name = "Create New Site" className = "TestActivity.TestSite" assembly = "test activity, version = 1.0.0.0, culture = neutral, publicKeyToken = 5c25d241f3e851927" AppliesTo = "all" category = "site" & gt; & Lt; RuleDesign Sentences = "Create Test Site" & gt; & Lt; Fieldbund field = "test" text = "test" designer type = "text box" id = "1" /> & Lt; / RuleDesigner & gt; & Lt; Parameter & gt; & Lt; Name of the parameter = "test" type = "System.String, mscorlib" direction = "in" /> & Lt; / Parameters & gt; & Lt; / Action & gt; & Lt; / Action & gt; & Lt; / WorkflowInfo & gt;   

Can anyone help?

Find the following references: / P>

รข? ¢ Open the configuration file of WebApplication where you have installed the package: C: \ Inetpub \ wwwroot \ wss \ VirtualDirectories [Port Web App] \ web.config

The following two configuration entries that have been resolved in a proper review Installation must be prepared:

  & lt; SafeControl Assembly = "TestActivity.TestSite, Version = 1.0.0.0, Culture = Neutral, PublicKey Tokens = 5c25d241f3e851927" Namespace = "Test Activity. TestSite" TypeNym = "*" Safe = "True" Safe AgenceScript = "Fail" /> ; & Lt; AuthorizedType assembly = "TestActivity.TestSite, version = 1.0.0.0, culture = neutral, publicKeyToken = 5c25d241f3e851927" name = "TestActivity.TestSite" TypeName = "*" official = "true" />   

If you do not manually add them where appropriate.

Then verify that the files in TestActivity.TestSite.A Appropriate Directory:

C: \ Program Files \ Common Files \ Microsoft Share \ Web Server Extensions \ 14 \ Templates \ 1033 \ Workflow \

Comments