Visual Studio is an integrated development environment (IDE) from Microsoft.

learn more… | top users | synonyms

13
votes
4answers
12k views

Feature with id already exists - force option

I'm getting that old familiar error when trying to deploy my SharePoint solution via Visual Studio: Error occurred in deployment step 'Add Solution': A feature with ID {Guid} has already been ...
11
votes
3answers
3k views

Visual Studio 2012. Visual webpart's ascx.g.cs file empty after registering any control

I've discovered a problem when a Visual webpart's g.cs appears to be empty. I'm using Visual Studio 2012 Update 3 and a project for SharePoint 2010. The steps to reproduce the problem: in Visual ...
10
votes
0answers
317 views

Invoking an ActivityAction in a SharePoint workflow

In a Visual Studio, SharePoint 2013 workflow, the "IF" Activity provided by Microsoft can take a condition and two activities as parameters: I want to write a custom activity that can similarly ...
7
votes
4answers
10k views

Feature has already been installed. Use the force attribute to explicitly re-install the feature

We have several SharePoint 2010 solutions which we want to deploy to SharePoint 2013 with Visual Studio 2012 running on Windows Server 2012. Site solutions work. But farm solutions just don't. I get ...
7
votes
4answers
2k views

SharePoint project builds but will not package

I have a SharePoint project that references (and includes in its package) a non-SharePoint project. There is a class in my SharePoint project that references the non-SharePoint project, so has a ...
5
votes
1answer
5k views

How to Create Apps for SharePoint 2013 in Visual Studio 2012?

I have just started to use SharePoint 2013 and I want to create a simple app with VS2012. How can I create and deploy an apps in SharePoint 2013 step by step? Can anyone provide a quick start guide? ...
5
votes
1answer
3k views

Upgrade a VS 2012 Sharepoint 2010 project to Sharepoint 2013

I have a SharePoint 2010 Solution that is made in VS 2012. I wanted to try and upgrade the solution to it deploy to our new SharePoint 2013 server. In the Package properties i have set the version to ...
5
votes
2answers
4k views

Error occured in deployment step Install App for SharePoint 2013

I got this error while trying to deploy an App in SharePoint 2013. The full error message is "Error occurred in deployment step 'Install App for SharePoint': Failed to install App for SharePoint"
4
votes
3answers
6k views

Error occurred in deployment step 'Recycle IIS Application Pool': Object reference not set to an instance of an object

I get this error in the deployment step of a share-point farm based project. Most of the suggested solutions on the net are a simple Visual Studio re-start, however, a simple VS restart won't fix ...
4
votes
2answers
3k views

Get a users Name from their ID

As part of my Sharepoint hosted App i am using a list which contains a Person or Group. I am getting the ID of the person by using the following. var ApproverID = ...
4
votes
4answers
636 views

Visual Studio 2012 Breakpoints do not hit

I have developed a simple visual webpart for SharePoint 2013 in Visual Studio 2012. The .apsx page only has one label. Then I say deploy and attach to process w3wp and refresh the webpage where I have ...
3
votes
2answers
847 views

What version of Visual Studio 2012 needed for SP Dev

I have been researching the different versions of VS2012 for use in developing in a SP2010 (Foundation) and possibly SP2013 environment. I asked two separate MS employees about which version of VS I ...
3
votes
1answer
697 views

Unable to find Event Receiver template in Visual Studio 2012

This would probably be right under my nose but I am having a hard time finding it. I am trying to create an event receiver in Visual Studio 2012. From this video in YouTube I gather that in Visual ...
3
votes
3answers
6k views

Retrieve list item using CSOM on SharePoint online isn't working

I've been stuck on this problem for couple days, I develop app model on SharePoint online using provider hosted model. From clientwebpart, i want to access sharepoint list item. I can access list ...
3
votes
1answer
167 views

SharePoint Project does not deploy

I upgraded SP 2010 Solution created using VS 2010 to SP 2013 solution in VS 2012. The Solution has one SharePoint project which references another SharePoint project in the same solution. There are ...
3
votes
1answer
142 views

Open Source SharePoint Project

Goal: Learn real-based SharePoint project based on customization with Visual Studio. I wanna learn the source code, architecture, N-tier etc of a completed SP project. Problem: Is there one or many ...
3
votes
1answer
109 views

This projects needs to be migrated?

I have a sharepoint 2010 solution. i migrated it to sp 2013, all sharepoint 2010 projects have been migrated without any problems. Office projects (Excel and outlook addins) however have been acting ...
2
votes
3answers
176 views

Getting Minor Version, Major Version, TimeCreated, TimeModified of document using CSOM

As a follow up to this post: http://sharepoint.stackexchange.com/a/111685/32419 I have a document that I am downloading from OneDrive library using CSOM. private static void ...
2
votes
2answers
26 views

Controlling which feature a project element is added to

How does visual studio decide which feature to add an element to? My features have a specific order which they need to be enabled (and its set using Feature Dependencies) but I need a simpler method ...
2
votes
3answers
6k views

“The name 'InitializeControl' does not exist in the current context” error when trying to create Visual Web Part with VS 2012 for SP 2010 Foundation

I'm trying to create a blank Visual Web Part project with VS 2012 (on Windows 7) for a site on SP 2010 Foundation. When I build the project, it throws this error "The name 'InitializeControl' does not ...
2
votes
1answer
79 views

download file from OneDrive using Microsoft.SharePoint.Client

I have a winforms application and I need to download files from a SharePoint OneDrive directory. Currently, given my code below, I am able to read the "Title" of the file, but I can't find anything to ...
2
votes
1answer
1k views

Where to put my custom.xsl for my List View's XslLink?

I'm in the process of creating my first App for SharePoint 2013 and after following this tutorial (using Visual Studio 2012), I now wish to create a custom XSLT file and apply it to my ...
2
votes
3answers
1k views

Simultaneous development environment for SP2010 and SP2013 in single OS

I have on my laptop a development environment as win7 with std IIS, SharePoint 2010 Server, SQL 2008 R2 and Visual Studio 2010. I already installed Visual Studio 2012 side by side. But what about ...
2
votes
2answers
1k views

“Web Template” item template is not available in Visual Studio 2012 list of item templates

I am working with visual studio 2012 and want to add sharepoint 2013 "Web Template" item from VS 2012 list of sharepoint 2013 item templates. But I could not find "Web Template" item in SP 2013 item ...
2
votes
2answers
1k views

How Visual Studio checkes that SharePoint has been installed on my local PC?

I want to build wsp file for SharePoint 2013, but it is not installed on my local PC. What should I do to make this thing possible? I guess that I need to tell Visual Studio somehow that SharePoint ...
2
votes
1answer
215 views

How to upgrade a Visual Studio Project from SharePoint 2010 to SharePoint 2013 (VS 2010 to VS 2012) - For WebParts, MasterPage, AppPage, User Controls

We have a SharePoint 2010 project solution which we are trying to uprgade to SharePoint 2013. This includes webparts, application pages, user controls, masterpage, etc. Foll. is the procedure we ...
2
votes
2answers
257 views

I cannot publish (package) a sharepoint solution using Visual Studio 2012

I have received a sharepoint project which has got some visual webparts in it and I would like to create a wsp. I clicked on Publish button, but nothing happens. Nothing happens in the output window ...
2
votes
2answers
855 views

Best way to rename a visual studio 2012 sharepoint solution names, project names, namespaces, assembly names

I have created a Visual Studio 2012 solution for SharePoint 2013. In this solution there are 19 projects. In this solution there is some name from some customer. Now I would like to clone this visual ...
2
votes
1answer
341 views

Visual studio 2012 Workflow 2013 to change file permissions in SharePoint 2013 Document?

Possible to change file level permission on a document (in document library) with Visual studio 2012 workflow for SharePoint Online 2013?
2
votes
1answer
285 views

SharePoint Online 2013 Workflow to change file permission in Document Library?

1.What are my options with SPD 2013 If I want to change file permission in a workflow? 2.Where does SPO host 2013 Workfows? 3.If connecting to SPO Can I use Worklow Manager 1.0? 4.Will I need to ...
2
votes
2answers
2k views

Error occurred in deployment step 'Activate Features': The parent content type specified by content type identifier 0x0101 does not exist

I have created 80 content types. some of them are inherited from some other content types. I have placed all the content types in feature in such an order that parent content types are at top. But ...
2
votes
0answers
47 views

VS2012 won't deploy my SharePoint 2013 Workflow

Well, I have got the same problem as this guy with the equally titled thread. I want to add a SharePoint 2013 Workflow to my App Web. It is a list Workflow. Workflow Manager and Service Bus are ...
2
votes
1answer
451 views

How to add tooltips to sharepoint 2013 form fields

I am working with a User (sandbox) Solution created in Visual Studio 2012 for SharePoint 2013. I have been asked to add custom tooltips to the default new and edit form fields. I have not been able ...
2
votes
2answers
163 views

SPEmailEventReceiver in sharepoint 2013

I'm stuck in use of SPEmailEventReceiver in sharepoint 2013. this my code: public class EREmail : SPEmailEventReceiver // this error because namespace can't found { public override void ...
2
votes
0answers
179 views

Unit Testing Of SharePoint Custom Code with Emulator

I am trying to test my Sharepoint custom code, using Microsoft.SharePoint.Emulator with VS2012 Premium ( because I have MSDN Premium subscription) I know its officially comes with VS Ultimate ...
2
votes
1answer
296 views

How to disable project migration dialogue when opening a SharePoint 2010 project?

We need to develop for SharePoint 2013 and SharePoint 2010 concurrently, so I installed Windows Server 2012 on my machine with a SharePoint 2013 installed, because of the downward compatibility of ...
2
votes
0answers
53 views

visual studio workflow

So I tried to follow the tutorial on the following site: ...
1
vote
1answer
922 views

Error while deploying SP2013 Workflow from VS2012: NullReferenceException

I developed two features, one should deploy a workflow. After hitting F5 in Visual Studio 2012, I get a NullReference-Exception. Here is the output shown: ------ Deploy started: Project: ...
1
vote
2answers
74 views

Visual Studio and Sharepoint development

GIVENS: - We run Sharepoint 2010. - No one here has ever used Visual Studio here to enhance Sharepoint. - They want to stick with SP 2010. QUESTIONS: - Is there any advantage to using Visual Studio ...
1
vote
2answers
308 views

How to get rss feeds programmatically?

I want to get rss feeds from multiple sources and store into the list. Is there anyway to get rss feeds from specified urls and store them in to the list? Please provide reference links or code ...
1
vote
3answers
263 views

Developing in Windows 8 without Sharepoint installed

I'm trying to install a development environment for Sharepoint (update: 2010) in a Windows 8 box without installing Sharepoint localy. I managed to have VS (2012 by the way) creating SP projects - I ...
1
vote
1answer
24 views

Get a specific List in Visual Studio 2012 Workflow (Sharepoint 2013)

designing a visual studio workflow for SP 2013 I wonder how to get values of list items from another list than current list. My workflow is not bound to a list has to access items of another list ...
1
vote
1answer
836 views

The name 'SharePointContextProvider' does not exist in the current context

I have a Basic Provider Hosted App (which is an on premise hosted app). It has been integrated with SP2013 and hello world Page is working fine. But when I wanted to develop the actual part, I have to ...
1
vote
1answer
214 views

How to connect SharePoint 2013 and Visual Studio 2012 to create a simple form?

I am a beginner when it comes to SharePoint so please bear with me, I apologize in advance for my inaccuracies. Here is what I need to do... I need to build a form in C# .NET in VS 2012, deploy it ...
1
vote
2answers
180 views

WritingCustomExceptions to EventViewer using SPDiagnosticsservice

I want to write my customexception to eventviewer , After doing some research I found that I can do that using SPDiagnosticsservice Class. I want to override SPDiagnosticsService and write my ...
1
vote
1answer
506 views

Create document library structure in a Vs2012 project

Is it possible to create a Visual Studio 2012 project containing multiple document libraries with folders and subfolders that can be builded/deployed to a sharepoint site? My need is to deploy the ...
1
vote
1answer
893 views

Developing for SharePoint 2013 using Visual Studio 2012 offline installer

I am behind a corporate firewall and the company I work for has VS 2012 Ultimate. I want to start developing for SharePoint 2013 using VS 2012. I found out later that the default installation does not ...
1
vote
1answer
53 views

Can't use the Google API's in a SharePoint Online Visual Studio project

I'm developing a SharePoint Online app in Visual Studio 2012. I have added a link to the Google API JavaScript file. And as you can see from the screenshot's below taken from Chrome developer tools ...
1
vote
1answer
269 views

using $SPUrl when developing visual web part via visual studio 2013 or 2012 and ascx.g.cs file gets empty!

Im developing a Visual Web part for SharePoint 2010 via Visual Studio 2013. And i want to add css link to visual web part in .ascx file like this: <SharePoint:CssRegistration Name="<% ...
1
vote
1answer
138 views

Custom Workflow Feature not available in Site Features or Site Collection Features

I have a Sequential Workflow created in Visual Studio. In VS I can right click and deploy the package without issue. On the TEST environment I use the command add-spsolution and then deploy it to my ...