SharePoint 2013 + Visual Studio 2012: File «.g.cs» dissapeared

Sometimes, when you're developing a visual web part, the designer file (with .g.cs extension) dissapears in front of your eyes. After finding nothing in the internet, we've just discovered why it is happening: You've to add the "Site URL" property in the Project properties. That's beacuse it is a web part for sharepoint, and Visual …

Sigue leyendo SharePoint 2013 + Visual Studio 2012: File «.g.cs» dissapeared

ERROR: Retrieving the COM class factory for component with CLSID {‘XXX…’} failed due to the following error: 80040154

ERROR Retrieving the COM class factory for component with CLSID {'XXX...'} failed due to the following error: 80040154. CAUSE You're trying to build your project in x86 and you've to do it in x64. SOLUTION 1. Go To Your Project Properties. 2. Select 'Build' (Left Tabs). 3. Change the property 'Platform Target' to 'Any CPU' …

Sigue leyendo ERROR: Retrieving the COM class factory for component with CLSID {‘XXX…’} failed due to the following error: 80040154

Crear WebPart para SharePoint en Visual Studio 2010

Para crear un WebPart con código y añadirlo después a una página de SharePoint debemos seguir estos pasos: 1. Creamos un nuevo proyecto en Visual Studio 2010 a partir de la plantilla "Elemento web visual" (Visual WebPart). Cuando nos pregunte sobre el sitio que deseamos usar para la depuración, seleccionamos nuestro Sitio. 2. Dentro del …

Sigue leyendo Crear WebPart para SharePoint en Visual Studio 2010