Hello,
I have installed system center 2012 SP1 on Windows server 2012, with SQL server 2012 on the same server.
I noticed in our component status that the SMS_POLICY_PROVIDER was critical... and when I open it up... I see hundreds of the same message ID 620
"Microsoft SQL Server reported SQL message 50000, Severity 16: *** Unknown SQL Error!"
There were not any other messages logged as they had been cleared.
Here is part of the policypv log
~CPolicySource::HandleSiteControlPolicy: ModernDeviceGenericSiteConfig $$<SMS_POLICY_PROVIDER><02-06-2013 15:03:52.441+480><thread=6752 (0x1A60)> *** EXEC sp_UpdResPolicyMap_DefaultPolicy 16777220,16777231 $$<SMS_POLICY_PROVIDER><02-06-2013 15:03:52.457+480><thread=6752 (0x1A60)> *** *** Unknown SQL Error! $$<SMS_POLICY_PROVIDER><02-06-2013 15:03:52.457+480><thread=6752 (0x1A60)> ~CPolicySource::HandleSiteControlPolicy: Failed to update the ResPolicyMap table for resource ID 16777220 $$<SMS_POLICY_PROVIDER><02-06-2013 15:03:52.458+480><thread=6752 (0x1A60)> ~CPolicySource::HandleSiteControlPolicy: DeviceGenericSiteConfig $$<SMS_POLICY_PROVIDER><02-06-2013 15:03:52.459+480><thread=6752 (0x1A60)> *** EXEC sp_UpdResPolicyMap_DefaultPolicy 16777220,16777232 $$<SMS_POLICY_PROVIDER><02-06-2013 15:03:52.467+480><thread=6752 (0x1A60)> *** *** Unknown SQL Error! $$<SMS_POLICY_PROVIDER><02-06-2013 15:03:52.467+480><thread=6752 (0x1A60)> ~CPolicySource::HandleSiteControlPolicy: Failed to update the ResPolicyMap table for resource ID 16777220 $$<SMS_POLICY_PROVIDER><02-06-2013 15:03:52.468+480><thread=6752 (0x1A60)> ~CPolicySource::HandleSiteControlPolicy: DeviceEnrollmentSiteConfig $$<SMS_POLICY_PROVIDER><02-06-2013 15:03:52.469+480><thread=6752 (0x1A60)> ~no change $$<SMS_POLICY_PROVIDER><02-06-2013 15:03:52.469+480><thread=6752 (0x1A60)> ~CPolicySource::HandleSiteControlPolicy: DeviceAPNSCertSiteConfig $$<SMS_POLICY_PROVIDER><02-06-2013 15:03:52.469+480><thread=6752 (0x1A60)> ~no change $$<SMS_POLICY_PROVIDER><02-06-2013 15:03:52.469+480><thread=6752 (0x1A60)> ~CPolicySource::HandleSiteControlPolicy: DeviceAPNSCSRSiteConfig $$<SMS_POLICY_PROVIDER><02-06-2013 15:03:52.470+480><thread=6752 (0x1A60)> ~no change $$<SMS_POLICY_PROVIDER><02-06-2013 15:03:52.470+480><thread=6752 (0x1A60)> ~CPolicySource::HandleSiteControlPolicy: Branding $$<SMS_POLICY_PROVIDER><02-06-2013 15:03:52.470+480><thread=6752 (0x1A60)> ~no change $$<SMS_POLICY_PROVIDER><02-06-2013 15:03:52.470+480><thread=6752 (0x1A60)> ~CPolicySource::HandleSiteControlPolicy: DeviceWP8AppMgmtSiteConfig $$<SMS_POLICY_PROVIDER><02-06-2013 15:03:52.471+480><thread=6752 (0x1A60)> ~CDeviceEnrollmentGenericSCConfig::GenerateDevicePolicyXML: failed to retrieve DTGuid from AppModelname 0 $$<SMS_POLICY_PROVIDER><02-06-2013 15:03:52.473+480><thread=6752 (0x1A60)>
So I tried to run this query in SQL
EXEC sp_UpdResPolicyMap_DefaultPolicy 16777220,16777231
Which gives me this error:
Msg 10314, Level 16, State 11, Procedure DMP_FetchPolicyData, Line 139 An error occurred in the Microsoft .NET Framework while trying to load assembly id 65539. The server may be running out of resources, or the assembly may not be trusted with PERMISSION_SET = EXTERNAL_ACCESS or UNSAFE. Run the query again, or check documentation to see how to solve the assembly trust issues. For more information about this error: System.IO.FileLoadException: Could not load file or assembly 'cryptoutility, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. An error relating to security occurred. (Exception from HRESULT: 0x8013150A) System.IO.FileLoadException: at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) at System.Reflection.Assembly.Load(String assemblyString) Msg 515, Level 16, State 2, Procedure sp_UpdResPolicyMap_DefaultPolicy, Line 64 Cannot insert the value NULL into column 'PolicyID', table 'CM_HQM.dbo.MDMPolicy'; column does not allow nulls. UPDATE fails. The statement has been terminated. Msg 515, Level 16, State 2, Procedure sp_UpdResPolicyMap_DefaultPolicy, Line 84 Cannot insert the value NULL into column 'PolicyID', table 'CM_HQM.dbo.MDMPolicyAssignment'; column does not allow nulls. INSERT fails. The statement has been terminated.
Which leads me to this KB
http://support.microsoft.com/kb/918040
I'm not sure how any permissions got messed up, there was no detaching/reattaching of databases... but at this point I'm stuck...
The thing is.. good or bad, I haven't noticed this have any affect on anything else... but any help would be appreciated