06 October 2010

How do I – Resolve the LocalAppData environment variable issue when launching Visual Studio 2010 Ultimate after installing FeatureBuilder.vsix

  1. Once you’ve installed Feature Builder in a Windows XP environment, you may get the following message when launching it.

    image
  2. In order to create the required variable, begin by right clicking on “My Computer”.
  3. On the popup menu, click “Properties”.

    image
  4. On the System Properties window, select the “Advanced” tab.
  5. On the Advanced Tab, click “Environment Variables”.

    image
  6. On the Environment Variables modal window, click “New”.

    image
  7. On the New User Variable modal window, enter the Variable Name as “LOCALAPPDATA”.
  8. Set the Variable Value as “%PROFILE%\Local Settings\Application Data”.
  9. Click “OK”.

    image
  10. The new environment variable should now show in the list.
  11. Click “OK” again.

    image


Cheers
C

04 October 2010

Microsoft MVP yet again

On Friday, I was honored to receive the Microsoft Most Valuable Professional award for SharePoint once again. As always, I’m humbled by the award and inspired to continue my efforts in support of the SharePoint community that we all love and share.

Cheers
C

01 October 2010

How do I – Uninstall PowerPivot for SharePoint 2010

Given how much effort is was to get PowerPivot installed and working in the first place, you may never need this post, but just in case something goes wrong and you have to uninstall it to start over, here’s how to do that:
  1. Launch Programs and Features via Start/Control Panel/Uninstall a Program.
    image_39_340007FF
  2. Locate the “Microsoft SQL Server 2008 R2 (64-bit)” entry and select it with a left click.
  3. The Uninstall/Change button becomes active.  Click it.
    image3_340007FF
  4. Windows may warn you that there are other users that’ll be affected.
  5. Click “Continue” to ignore the warning and proceed.
    image6_340007FF
  6. The SQL Server configuration tool opens.
  7. Click “Remove”.
    image9_340007FF
  8. Setup will load all the support rules.
  9. Once all rules were loaded, click “OK”.
    image12_340007FF
  10. Change the “Instance to remove feature from” dropdown value to “POWERPIVOT”.
  11. Click “Next”.
    image15_340007FF
  12. Ensure that “Analysis Services” and it’s sub categories under POWERPIVOT is checked.
  13. Click “Next”.
    image18_340007FF
  14. Setup runs all the removal rules.
  15. Once the rules have run successfully, click “Next”.
    image21_340007FF
  16. On the Ready to Remove screen, click “Remove”.
    image24_340007FF
  17. Once setup has removed PowerPivot, you’ll be taken to the Complete screen.
  18. The status should indicate that the removal was successful.
  19. Click “Close”.
    image27_340007FF
  20. TROUBLE SHOOTING TIP
    If you have previously removed PowerPivot and am trying to reinstall it again, the installation may fail because the removal didn’t cleanup everything properly.
    If you install PowerPivot and go to the Solution administration page, there’s a .wsp for PowerPivot called “powerpivotfarm.wsp”.  If this solution shows an error with a message of “Some of the files failed to copy during deployment of the solution”, then the uninstaller didn’t cleanup everything successfully.
    image_18_340007FF
    Looking at the error above, the Microsoft.AnalysisServices.SharePoint.Integration.dll assembly didn’t get deployed to the GAC.
    If you browse to the GAC via Windows Explorer, you’ll see this:
    image33_340007FF
    OK, so it is NOT there.  That’s what we expected because that’s what the error indicated.
    Ah… but wait… there’s more…
    Open a command prompt on the server.
    Now manually change directory to the GAC_MSIL folder and do it dir for that DLL.
    And what do we get?…
    image36_340007FF
    It seems that the folder was not cleaned up successfully during a past uninstall.  The installer isn’t smart enough to figure out that’s the right folder to put the DLL and simply throws an error.  It wants to create the folder from scratch.
    Us the RD command to remove the offending folder and then retry your installation.  Odds are it’ll work this time.


    Cheers
    C

24 September 2010

How do I – Install FeatureBuilder for Visual Studio 2010 Ultimate

FeatureBuilder is an awesome addition to Visual Studio.  If you wish to give it a spin (highly recommended by the way), it’s easy to do.
  1. Start by getting the Visual Studio 2010 SDK located here:http://www.microsoft.com/downloads/details.aspx?familyid=47305CF4-2BEA-43C0-91CD-1B853602DCC5&displaylang=en 
  2. Double click the installer.  On the dialog prompt, click “Run”.

    image_23_5E30024C
  3. On the Welcome screen, click “Next”.

    image3_1_5E30024C
  4. On the EULA screen, click the “I accept the terms of the License Agreement” check box and click “Next”.<

    image6_5E30024C
  5. On the Destination page, accept the defaults and click “Next”.

    image9_0C1D5505
  6. Wait while Setup installs the SDK.

    image15_0C1D5505
  7. Once the SDK installation is complete, click “Exit”.image18_3A0AA7BD
  8. Now go ahead and get the FeatureBuilder vsix by downloading it from here:

    ;
  9. After downloading, double click the .vsix file.
  10. When prompted to open with an application, select Visual Studio and click “OK”.

    image21_2519254A
  11. On the Target page, select Visual Studio 2010 as a target for the vsix install.
  12. Click “Install”.

    image24_2519254A
  13. Wait while the extension is installed.

    image27_2519254A
  14. Upon install completion, click “Close”.

    image30_2519254A
Start using and enjoy FeatureBuilder!  In future blog articles, I’ll show you how to use FeatureBuilder.


Cheers
C

22 September 2010

Things that make you go hmmm



I saw this list of the supposed top 50 influencers in the SharePoint world as far as Systems Integrators/Consultants are concerned…

Now I can go into a long outburst over how they picked their criteria etc. for the list, but I won’t. I agree with SOME of the names on this list. My friends Andrew Connell and Scot Hillier absolutely belong on this list, as does long time SharePoint genius Ted Pattison, but some of the people on this list, I don’t even recognize… and I have been in the SharePoint world for almost a decade now… Lots of notable names are not on this list, like Todd Baginski, Gary LaPointe, Robert Bogue, Bil Simser among others… Suffice it to say, I think the list isn’t correct. Now before I get accused of bias, I’ll prove my point simply… riddle me this…

Is ANY list of the Top SharePoint influencers complete or correct without… Joel Oleson???

Cheers
C

03 September 2010

How do I – Resolve the failure to load a module into PowerShell when using the Import-Module cmdlet

If you’ve ventured into the world of PowerShell extensions and modules, and more specifically, that world, targeted at SharePoint, then you have probably run into this error before.
Import-Module : Could not load file or assembly 'file:///C:\cjvandyk.SharePoint.PowerShell.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. At line:1 char:14+ import-module <<<< .\cjvandyk.SharePoint.PowerShell.dll + CategoryInfo: NotSpecified: (:) [Import-Module], BadImageFormatException + FullyQualifiedErrorId : System.BadImageFormatException,Microsoft.PowerShell.Commands.ImportModuleCommand
This error is thrown by PowerShell when you are using the Import-Module cmdlet to import a PowerShell module (redundant, isn’t it?) that was built using the .NET Framework 4.0. The ugly error looks like this:


image_3_5D53F350

If you’re trying to use that module on a SharePoint system, the odds are that the server does NOT have the 4.0 version of the Framework installed. You can easily confirm this by simply checking the sub folders under the C:\Windows\Microsoft.NET\Framework location.


image_9_5D53F350

In the above example, you can see that 1.0, 1.1, 2.0, 3.0, 3.5 and 4.0 are all installed on the server. If you find that 4.0 is NOT installed, you can quickly install it following this guide.
Once it’s installed you only have one more thing left to do. By default, PowerShell will run under the 2.0 Framework. We need to force it to default to the 4.0 Framework and only revert back to 2.0 if it doesn’t find what it’s looking for in 4.0.
That is easily done using a .config file for the PowerShell executable. Browse to the C:\Windows\System32\WindowsPowerShell\v1.0 location.


image_12_5D53F350

You may not have the two .config file on your system. If you don’t, you need to create them manually. Name the files exactly the same as the .exe files, but with a .config extension at the back. Create them as text files, but you will need to show extensions from your Folder Options in Windows Explorer in order to get rid of the .txt extension. The two config files should be named “PowerShell.exe.config” and “PowerShell_ise.exe.config”. The content of the two files is a simple XML snippet that simply points PowerShell to default to 4.0 and fallback to 2.0. Copy and paste the following snippet into the .config files.
Untitled-1
Now when you restart PowerShell, attempting to load your module should yield no errors (if your module is compiled correctly and valid), and you should be able to implement the functionality from the module without any problem.


Cheers
C

Installing the .NET Framework 4.0 on your Windows Server 2008 R2 x64 server with SharePoint 2010

As we all know, SharePoint 2010 is still using the .NET Framework 3.5.  That means that your servers may not have the latest .NET Framework 4.0 installed.  This could cause some issues if you’re trying to use APIs from 4.0, or if you are trying to build some new tools using 4.0, like PowerShell management extensions for example.  The solution is to install 4.0 on your server.  Here’s the quick Step-by-Step for doing this on a Windows Server 2008 R2 x64 system with SharePoint 2010 installed.
  1. Begin by downloading the full version of the Framework from here:
    http://www.microsoft.com/downloads/details.aspx?FamilyID=0a391abd-25c1-4fc0-919f-b21f31ab88b7&displaylang=en
  2. Once downloaded, double click the installer file named “dotnetFx40_Full_x86_x64.exe”.

    image_15_1B631F9C
  3. Windows may require you to confirm that you wish to launch the EXE.  If it does, simply click “Run”.

    image_14_1B631F9C
  4. You’d have to accept the EULA.  Check the “I have read and accept the license terms” check box.
  5. Click the “Install” button to commence the installation.

    image_13_1B631F9C
  6. The installer will crunch away for a while as it installs the Framework.

    image_12_1B631F9C
  7. Once installation complete, click the “Finish” button.

    image_11_1B631F9C
  8. No server restart is needed. ðŸ™‚


Cheers
C

SharePoint Remote Event Receivers are DEAD!!!

 Well, the time has finally come.  It was evident when Microsoft started pushing everyone to WebHooks, but this FAQ and related announcement...