So, the story is the following:
I just joined a team of an existing sharepoint project, sharepoint is installed RTM on all environments, from DEV to production.
But because its 2 companies working for the same project, Me as a member of the 2nd company, my VM has .net framework 4.0 already installed.
So I was in charge of making some changes adding fields, features, etc.
And when I was going to use Enable-SP Feature I had this exception: I have 2 options so far:
Install SP1, and the June CU in all environments. http://support.microsoft.com/kb/2536599
Uninstall .net 4 from my environment.
Here comes, the question, is there another way to solve it?
Update1: by checking the logs I found more info:
A PlatformNotSupportedException occured while trying to acquire the local farm: System.PlatformNotSupportedException: Microsoft SharePoint is not supported with version 4.0.30319.225 of the Microsoft .Net Runtime. at Microsoft.SharePoint.Administration.SPConfigurationDatabase.get_Farm() at Microsoft.SharePoint.Administration.SPFarm.FindLocal(SPFarm& farm, Boolean& isJoined)