{"id":321,"date":"2013-11-19T16:57:17","date_gmt":"2013-11-19T21:57:17","guid":{"rendered":"http:\/\/nukeitmike.com\/blog\/?p=321"},"modified":"2013-11-19T16:57:17","modified_gmt":"2013-11-19T21:57:17","slug":"error-after-upgrading-orchestrator-to-2012-r2","status":"publish","type":"post","link":"https:\/\/blog.nukeitmike.com\/index.php\/2013\/11\/19\/error-after-upgrading-orchestrator-to-2012-r2\/","title":{"rendered":"Error after upgrading Orchestrator to 2012 R2"},"content":{"rendered":"<p>After upgrading from System Center Orchestrator 2012 sp1 to 2012 R2, my Runbooks weren\u2019t running via my scheduled tasks.&#160; After some digging, I figured out that I couldn\u2019t open the Orchestration Console, because I kept getting this error:<\/p>\n<blockquote>\n<p>Error executing the current operation.     <br \/>[HttpWebRequest_WebException_RemoteServer]      <br \/>Arguments: NotFound      <br \/>Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See <a href=\"http:\/\/go.microsoft.com\/fwlink\/?linkid=106663&amp;Version=5.1.20913.0&amp;File=System.Windows.dll&amp;Key=HttpWebRequest_WebException_RemoteServer\">http:\/\/go.microsoft.com\/fwlink\/?linkid=106663&amp;Version=5.1.20913.0&amp;File=System.Windows.dll&amp;Key=HttpWebRequest_WebException_RemoteServer<\/a><\/p>\n<\/blockquote>\n<p>I did some research, but couldn\u2019t figure it out, and there was a particular Runbook that I needed to have run every night.&#160; So I opened a ticket with Microsoft.&#160; In order to save you the trouble, if you come across this issue, here is the solution:<\/p>\n<blockquote>\n<p>1. Enable detailed logging for the connection attempt. <\/p>\n<p>Create a folder to store the log file: C:\\Logs in this sample: <\/p>\n<p>&#160;&#160;&#160; initializeData=&quot;C:\\logs\\SRV_Traces.svclog&quot; \/&gt;<\/p>\n<p>Edit the Web.Config file located in the following default location: <\/p>\n<p>C:\\Program Files (x86)\\Microsoft System Center 2012 R2\\Orchestrator\\Web Service\\Orchestrator2012<\/p>\n<p>======================<\/p>\n<p>Part1 add the following just below section &lt;configuration&gt;<\/p>\n<p>&lt;system.diagnostics&gt;<\/p>\n<p>&#160;&#160;&#160; &lt;sources&gt;<\/p>\n<p>&#160;&#160;&#160;&#160;&#160; &lt;source name=&quot;System.ServiceModel&quot;<\/p>\n<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; switchValue=&quot;Information, ActivityTracing&quot;<\/p>\n<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; propagateActivity=&quot;true&quot; &gt;<\/p>\n<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;listeners&gt;<\/p>\n<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;add name=&quot;xml&quot;\/&gt;<\/p>\n<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;\/listeners&gt;<\/p>\n<p>&#160;&#160;&#160;&#160;&#160; &lt;\/source&gt;<\/p>\n<p>&#160;&#160;&#160;&#160;&#160; &lt;source name=&quot;System.ServiceModel.MessageLogging&quot;&gt;<\/p>\n<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;listeners&gt;<\/p>\n<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;add name=&quot;xml&quot;\/&gt;<\/p>\n<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;\/listeners&gt;<\/p>\n<p>&#160;&#160;&#160;&#160;&#160; &lt;\/source&gt;<\/p>\n<p>&#160;&#160;&#160; &lt;\/sources&gt;<\/p>\n<p>&#160;&#160;&#160; &lt;sharedListeners&gt;<\/p>\n<p>&#160;&#160;&#160;&#160;&#160; &lt;add name=&quot;xml&quot;<\/p>\n<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; type=&quot;System.Diagnostics.XmlWriterTraceListener&quot;<\/p>\n<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; initializeData=&quot;C:\\logs\\SRV_Traces.svclog&quot; \/&gt;<\/p>\n<p>&#160;&#160;&#160; &lt;\/sharedListeners&gt;<\/p>\n<p>&lt;\/system.diagnostics&gt;<\/p>\n<p>==============<\/p>\n<p>Part2 added into the&#160; section: &lt;system.serviceModel&gt;<\/p>\n<p>&lt;diagnostics wmiProviderEnabled=&quot;true&quot;&gt;<\/p>\n<p>&#160;&#160;&#160;&#160;&#160; &lt;messageLogging<\/p>\n<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; logEntireMessage=&quot;true&quot;<\/p>\n<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; logMalformedMessages=&quot;true&quot;<\/p>\n<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; logMessagesAtServiceLevel=&quot;true&quot;<\/p>\n<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; logMessagesAtTransportLevel=&quot;true&quot;<\/p>\n<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; maxMessagesToLog=&quot;3000&quot;<\/p>\n<p>&#160;&#160;&#160;&#160;&#160;&#160; \/&gt;<\/p>\n<p>&lt;\/diagnostics&gt;<\/p>\n<p>2. Perform an IISRestart and test connecting to the Orchestration console to generate the error.<\/p>\n<p>3. Stop the IIS Site and view the resulting log file.<\/p>\n<p>4. Opening the log file using: SvcTraceViewer.exe make it much easier to parse. <\/p>\n<p>You can get it either by installing (a non-express version of) Visual Studio, or by installing the (free) Windows SDKs<\/p>\n<p>(<a href=\"http:\/\/www.microsoft.com\/downloads\/details.aspx?FamilyID=E6E1C3DF-A74F-4207-8586-711EBE331CDC&amp;displaylang=en\">http:\/\/www.microsoft.com\/downloads\/details.aspx?FamilyID=E6E1C3DF-A74F-4207-8586-711EBE331CDC&amp;displaylang=en<\/a>)<\/p>\n<p>5. Drilling into the XML data for the &quot;Handling an Exception&quot; entry and locating the inner exception we found the following: <\/p>\n<p>System.Data.SqlClient.SqlException: The EXECUTE permission was denied on the object &#8216;GetSecurityToken&#8217;, database &#8216;&lt;SCO DB Name&gt;&#8217;, schema &#8216;Microsoft.SystemCenter.Orchestrator&#8217;.<\/p>\n<p>It appears that in uninstalling\/reinstalling the Web Console the needed permissions were not updated in SQL. <\/p>\n<p>6. To address this issue we ran a SQL script that was contained in the following MSI<\/p>\n<p>%localappdata%\\Microsoft System Center 2012\\Orchestrator\\Microsoft.SystemCenter.Orchestrator.ManagementServer.msi&quot;<\/p>\n<p>From the *.SQL located the file:&#160; Microsoft.SystemCenter.Orchestrator.Roles.SQL<\/p>\n<p>Using the text from this file, we created a new query to run&#160; against the Orchestrator database to reapply the permission grant operations. <\/p>\n<\/blockquote>\n<p>The key was step 6.&#160; The security evidently didn\u2019t get setup correctly on the update, and needed to be fixed manually.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After upgrading from System Center Orchestrator 2012 sp1 to 2012 R2, my Runbooks weren\u2019t running via my scheduled tasks.&#160; After some digging, I figured out that I couldn\u2019t open the Orchestration Console, because I kept getting this error: Error executing the current operation. [HttpWebRequest_WebException_RemoteServer] Arguments: NotFound Debugging resource strings are unavailable. Often the key and&hellip; <a class=\"more-link\" href=\"https:\/\/blog.nukeitmike.com\/index.php\/2013\/11\/19\/error-after-upgrading-orchestrator-to-2012-r2\/\">Continue reading <span class=\"screen-reader-text\">Error after upgrading Orchestrator to 2012 R2<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[17,21,33],"tags":[43,120,129,176,185],"class_list":["post-321","post","type-post","status-publish","format-standard","hentry","category-microsoft","category-orchestrator","category-system-center","tag-2012-r2","tag-microsoft","tag-orchestrator","tag-system-center","tag-upgrade","entry"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pcW544-5b","_links":{"self":[{"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/posts\/321","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/comments?post=321"}],"version-history":[{"count":0,"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/posts\/321\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/media?parent=321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/categories?post=321"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/tags?post=321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}