{"id":383,"date":"2018-01-22T13:53:28","date_gmt":"2018-01-22T12:53:28","guid":{"rendered":"http:\/\/www.juergenholz.de\/?p=383"},"modified":"2018-04-03T13:30:15","modified_gmt":"2018-04-03T12:30:15","slug":"sharepoint-2013-workflows-starten-nicht-mehr-fehler-beim-start","status":"publish","type":"post","link":"https:\/\/www.juergenholz.de\/en\/sharepoint-2013-workflows-starten-nicht-mehr-fehler-beim-start\/","title":{"rendered":"SharePoint 2013 Workflows not starting anymore  &#8220;Error on Startup&#8221;"},"content":{"rendered":"<p id=\"tw-target-text\" class=\"tw-data-text tw-ta tw-text-small\" dir=\"ltr\" data-placeholder=\"\u00dcbersetzung\"><span lang=\"en\">Workflows do not start anymore &#8220;Error at startup&#8221; The error is caused by improperly initialized Performance Counters based on Windows. A look in the log of SharePoint reveals the following error message:<\/span><\/p>\n<blockquote>\n<p class=\"tw-data-text tw-ta tw-text-small\" dir=\"ltr\" data-placeholder=\"\u00dcbersetzung\"><span lang=\"en\">Load Workflow Class: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. &#8212;&gt; System.InvalidOperationException: The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.<br \/>\nat System.Diagnostics.PerformanceCounter.InitializeImpl()<br \/>\nat System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName, Boolean readOnly)<br \/>\nat System.Workflow.Runtime.PerformanceCounterManager.CreateCounters(String name)<br \/>\nat System.Workflow.Runtime.Hosting.ManualWorkflowSchedulerService.OnStarted()<br \/>\nat System.EventHandler`1.Invoke(Object sender, TEventArgs e)<br \/>\nat System.Workflow.Runtime.WorkflowRuntime.StartRuntime()<br \/>\nat Microsoft.SharePoint.Workflow.SPWinOeHostServices..ctor(SPSite site, SPWeb web, SPWorkflowManager manager, SPWorkflowEngine engine) &#8212; End of inner exception stack trace &#8212;<br \/>\nat System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)<br \/>\nat System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)<br \/>\nat System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark&amp; stackMark)<br \/>\nat System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)<br \/>\nat System.Reflection.Assembly.CreateInstance(String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)<br \/>\nat Microsoft.SharePoint.Workflow.SPWorkflowManager.LoadPluggableClass(String classname, String assembly, Object[] parameters)<\/span><\/p>\n<\/blockquote>\n<p dir=\"ltr\" data-placeholder=\"\u00dcbersetzung\">Reinitializing the relevant counter of the Workflow Foundation will solve the problem. Here you have to distinguish whether you have the Foundation 3.0 or 4.0 installed.<\/p>\n<h4>Reset Performance Counter Workflow Foundation:<\/h4>\n<ul>\n<li><strong>C:\\&gt; lodctr &#8216;C:\\Windows\\inf\\Windows Workflow Foundation 3.0.0.0\\PerfCounters.ini&#8217;<\/strong><\/li>\n<li><strong>C:\\&gt; lodctr &#8216;C:\\Windows\\inf\\Windows Workflow Foundation 4.0.0.0\\PerfCounters.ini&#8217;<\/strong><\/li>\n<\/ul>\n<div class=\"juerg-endepost\" style=\"margin-left: auto;margin-right: auto;text-align: center;\" id=\"juerg-506143257\"><div class=\"juerg-adlabel\">Werbung<\/div><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-4708705370860748\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:inline-block;width:728px;height:90px;\" \ndata-ad-client=\"ca-pub-4708705370860748\" \ndata-ad-slot=\"4810788593\"><\/ins> \n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Workflows do not start anymore &#8220;Error at startup&#8221; The error is caused by improperly initialized Performance Counters based on Windows. A look in the log of SharePoint reveals the following error message:<\/p>\n<p>Load Workflow Class: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. &#8212;> System.InvalidOperationException: The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.<\/p>\n","protected":false},"author":1,"featured_media":462,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[60,58,61,59,56,57],"translation":{"provider":"WPGlobus","version":"3.0.0","language":"en","enabled_languages":["de","en"],"languages":{"de":{"title":true,"content":true,"excerpt":true},"en":{"title":true,"content":true,"excerpt":true}}},"_links":{"self":[{"href":"https:\/\/www.juergenholz.de\/en\/wp-json\/wp\/v2\/posts\/383"}],"collection":[{"href":"https:\/\/www.juergenholz.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.juergenholz.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.juergenholz.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.juergenholz.de\/en\/wp-json\/wp\/v2\/comments?post=383"}],"version-history":[{"count":5,"href":"https:\/\/www.juergenholz.de\/en\/wp-json\/wp\/v2\/posts\/383\/revisions"}],"predecessor-version":[{"id":461,"href":"https:\/\/www.juergenholz.de\/en\/wp-json\/wp\/v2\/posts\/383\/revisions\/461"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.juergenholz.de\/en\/wp-json\/wp\/v2\/media\/462"}],"wp:attachment":[{"href":"https:\/\/www.juergenholz.de\/en\/wp-json\/wp\/v2\/media?parent=383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.juergenholz.de\/en\/wp-json\/wp\/v2\/categories?post=383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.juergenholz.de\/en\/wp-json\/wp\/v2\/tags?post=383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}