SharePoint Visual Web part not updating

I was busy with a SharePoint 2010 Visual Webpart in Visual Studio 2012. Soon after adding and removing controls the auto generated .ascx.g.cs stopped updating correctly.

If you are experiencing this issue make sure you have updated to the latest update for  Visual Studio 2012.

Currently it is at Update 4, goto the following download link to get your update:

Visual Studio 2012 Update 4

Posted in SharePoint 2010

Setup a SharePoint development environment – Part 1

In this series of  posts we are going to setup a SharePoint 2013 development environment on a  machine running windows 8. We will use Hyper-V to manage the virtual machines. We will be using Windows Server 2012 R2 on both the virtual machines as displayed in the diagram below.

 

Windows 8 hyper-v sharepoint 2013 dev environment

Windows 8 hyper-v sharepoint 2013 dev environment

Part 1 – Enable Hyper-V on Windows 8

To run the various virtual machines we are going to be using Hyper-V

Make sure you have Hyper-V enabled:

  1. Press the windows key and type “add Remove”
  2. Select Settings (if needed)
  3. Choose “Add Remove Programs”
  4. Add remove programs

    Add remove programs

  5. Choose Turn Windows features on or off
  6. Turn windows features on or off

    Turn windows features on or off

  7. Select Hyper-V
  8. hyper-v

    hyper-v

  9. Click “OK”
  10. You may need to reboot your pc
Posted in SharePoint 2013

SharePoint – Create a Sub Site for Your experiments

So learning to do new things require an environment to work in. I prefer to create a new sub site so that I can prototype, play around and delete stuff without having to worry about existing code and features breaking.

Steps:

  1. Open your root SharePoint website, this is not under SharePoint Central Administration!
  2. Site Actions
  3. Site Settings
  4. Under Site Administration click Sites and workspaces
  5. Create / Remove sites here
SharePoint 2010 Create Sub Site

SharePoint 2010 Create Sub Site

 

SharePoint 2010 Sites and Workspaces

SharePoint 2010 Sites and Workspaces

 

 

Posted in SharePoint 2010