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

learn more… | top users | synonyms

8
votes
3answers
8k 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 ...
7
votes
3answers
987 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 ...
5
votes
1answer
3k 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
2k 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
3answers
697 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
0answers
211 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 ...
4
votes
2answers
283 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
272 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 ...
4
votes
2answers
3k 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"
3
votes
3answers
3k 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 ...
3
votes
2answers
360 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
212 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
1k 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
71 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
94 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
0answers
42 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
2answers
3k 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 ...
2
votes
2answers
25 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
4k 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
3answers
811 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
1answer
94 views

How to upgrade a SharePoint 2010 Project to SharePoint 2013 (WebParts, MasterPage, App Page, User Controls) in Visual Studio 2012?

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
324 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
219 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
192 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
1answer
730 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
2answers
1k 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
27 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
94 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
98 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
2answers
71 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
1answer
102 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
47 views

visual studio workflow

So I tried to follow the tutorial on the following site: ...
1
vote
2answers
48 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
3answers
225 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
49 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
1answer
90 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
43 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
80 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
385 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
2answers
775 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 ...
1
vote
1answer
744 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
86 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
60 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 ...
1
vote
1answer
602 views

Add a visual web part to the default page of the custom site definition via ONET.xml file

We have created a SharePoint solution with custom site definition and a simple visual Webpart using Visual Studio 2012. The purpose of the solution would be to add the custom visual webpart to the ...
1
vote
1answer
237 views

User profile picture in visual web part

I want to make user upload the profile picture in my web part, I searched over the internet how to accomplish this? I found the this post which describes how to get it. My code is: void ...
1
vote
1answer
669 views

Custom Ribbon button in Calendar event edit form SP2013

I am trying to define a ribbon button that appears in the calendar new event and/or modify event form using Visual Studio. I am perfectly able to have a ribbon button appear in the list view and ...
1
vote
0answers
22 views

Modify SharePoint sandbox manifest.xml

I need to modify the SharePoint sandbox manifest.xml. Can any one help me with how I can do this?
1
vote
0answers
23 views

Change default publish location in Visual Studio

Whenever I want to publish my SharePoint solution, the Target Location is selected as "C:\Users\Administrator\Documents". Is there a way to change the default value for this option?
1
vote
0answers
10 views

“Unselect All” features when importing a site template to Visual Studio 2012?

In Visual Studio 2012 I'm importing a WSP of a site template using the "SharePoint Customization Wizard." The list of features displays with all items selected. I only want to import a couple ...