Friday, March 9, 2012

PowerGUI Error : Microsoft SharePoint is not supported with version 4.0.30319.1 of the Microsoft .Net Runtime

I’m used to work with PowerGUI script editor for developing Powershell scripts for SharePoint 2010. This time, after updating PowerGUI with version 3.2.0.2237 and running a SharePoint cmdlet, I got this error:

“Microsoft SharePoint is not supported with version 4.0.30319.1 of the Microsoft .Net Runtime."

After investigations, this issue is caused by PowerGUI itself. To fix it, open the ScriptEditor.exe.config file placed in the PowerGUI installation directory. Remove of comment this line:

image

Restart the script editor and everything works again !

3 comments:

  1. It is a great way to creditcardloginfinder to your blog.
    It also encourages people to comment,
    which is something we all want!
    Microsoft SharePoint

    ReplyDelete
  2. Hi Guillaume, That's saved lot of time.

    Surya HDC :)

    ReplyDelete
  3. I havent any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us. SharePoint Intranet

    ReplyDelete