Bill Baer

Senior Product Marketing Manager (SharePoint), Microsoft Certified Master for SharePoint, Microsoft Corporation

ULS Viewer and SharePoint 2010

ULS Viewer and SharePoint 2010

  • Comments 1
  • Likes

So you downloaded the ULS Viewer and fired up on your SharePoint 2010 environment only to see something like this?

----

System.TypeInitializationException: The type initializer for 'UlsGump.AboutForm' threw an exception. ---> System.TypeLoadException: Could not load type 'System.Reflection.CustomAttributeExtensions' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

   at UlsGump.AboutForm..cctor()

   --- End of inner exception stack trace ---

   at UlsGump.MainForm.MainForm_Load(Object sender, EventArgs e)

   at System.Windows.Forms.Form.OnLoad(EventArgs e)

   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

   at System.Windows.Forms.Control.CreateControl()

   at System.Windows.Forms.Control.WmShowWindow(Message& m)

   at System.Windows.Forms.Control.WndProc(Message& m)

   at System.Windows.Forms.Form.WndProc(Message& m)

   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

The problem lies in that the ULS Viewer (well mscorlib) is looking for the .NET 4 version of mscorlib.  Installing Microsoft .NET Framework Version 4.5 should resolve the issue.

SharePoint 2010 installs Microsoft .NET Framework Version 3.5 SP1 whereas SharePoint 2013 installs Microsoft .NET Framework Version 4.5.

Comments
  • Hey, thanks for the info. How safe is it to install .Net 4.5? I'm a bit afraid of the impact of installing a new .Net version on my live servers "simply" to have this new ULS viewer. What's your recommendation? Also, I suppose should I decide to install 4.5 on one server (let's say the CA/App server) I'll have to install 4.5 on all servers in my farm.

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment