Unable to get the Correlation logs

May 16, 2015 at 2:57 AM
Edited May 16, 2015 at 2:58 AM
Unable to get the Correlation logs.
  1. Deployed CorrelationIdPage2013.wsp in 15 Hive Folder.
  2. Able to see Query correlation ID under Logging .
But when I try to searcg any logs, getting the error as below,

Error:
The type initializer for 'System.Management.Automation.SessionStateScope' threw an exception.


Fix Suggested in other blogs:

Open the file C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config and set the attribute "enabled" to False in the tag NetFx40_LegacySecurityPolicy.

But Changing Legacy Security will prevent 2010 solutions to work and may create other serious issues.


Please suggest a fix for this issue,

Thanks,
Prawin
May 19, 2015 at 11:33 AM
Hey man, i had the exact same issue.

What i did was i opened up the solution in Visual Studio on the same machine that is hosting Central Admin and deployed it from there and it worked like a charm.
My problem now is that VS is loaded on the machine that does not have Central Admin on so i am having issues deploying it.
Jul 2, 2015 at 7:37 AM
Hey Kirks,

Same here. I do not have VS in my server where I have Central Admin is hosted. Do you have any workaround /fix for this issue??

Thanks,
Prawin.