We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [visual-studio]

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

Filter by
Sorted by
Tagged with
5
votes
1answer
13k views

How do I find the ID for associated content type when adding a page layout?

I'm following the creating a page layout in this example http://blog.beckybertram.com/Lists/Posts/Post.aspx?ID=71 It adds a page layout using this xml, <File Path="masterpage\MyCustomPageLayout....
5
votes
2answers
8k views

How do I create a new document in a document library according to a template in a workflow ?

I have a document library with a DOCX template file. I want to create DOCX file in this library in a workflow but I did not succeed. Before, I created a workflow in Sharepoint Designer to create a ...
5
votes
3answers
3k views

Can you use Visual Studio 2008 to develop for SharePoint 2010?

Can I continue to use Visual Studio 2008 to develop for SharePoint 2010? Or do I need Visual Studio 2010? I understand that VS2010 makes it easier to deploy and debug but other than that what are the ...
5
votes
2answers
7k views

Workflow action SendEmail does not use “From” field

I have a Visual Studio 2010 workflow for a SharePoint 2010 Server. It uses the default workflow action "SendEmail" to send an e-mail. Everything works out perfectly, but the sender of the e-mail is ...
5
votes
1answer
2k views

What is purpose of 'View' with 'BaseViewID' set to '0' in schema.xml of List Definition?

In Visual Studio 2010 when I create a List Definition the schemal.xml file looks something like this: <Views> <View BaseViewID="0" Type="HTML" MobileView="TRUE" TabularView="FALSE"> ...
5
votes
2answers
7k views

troubleshoot a timeout happening while deploying via VS

Hi I am getting timeout error while trying to deploy my sp solution via visual studio 2010. It happens when my a particular feature is trying to activat. The generic error message I get goes something ...
5
votes
1answer
2k views

Programmatically add menus to SPWeb.Navigation.QuickLaunch does not work

I'm trying to add some menus to the "Quick Launch" navigation and it does not work. I'm using the following code: var ql = myWeb.Navigation.QuickLaunch; SPNavigationNode m1 = new SPNavigationNode("...
5
votes
5answers
4k views

How to create a deployment package for a Sharepoint 2010 webpart in Visual Studio 2010

This might be a dumb question, but i really tried to google and didnt find any good answer. I was developing some webparts for SharePoint 2007 in Visual Studio 2008, and when i would build my ...
5
votes
2answers
87 views

Why does SharePoint Workflow Project in VS 2008 get modified every time it's opened?

The same goes for the workflow source files -- every time I open the project or go to the source file, it's indicating (by the asterisk) that the file has been modified. Which means two things: when ...
5
votes
2answers
2k views

Is it possible to attach to a process on a SharePoint server through visual studio?

I had a piece of code that was working perfectly on my dev server, but once I deployed to my test server it stopped. I've dug through the logs and haven't found anything useful. I was wondering if ...
5
votes
1answer
486 views

Building VS 2010 projects for SharePoint 2010 & 2007

I am curious if anybody else out there is trying to development a single SharePoint product that works with both SP2007 and SP2010, and what approach you have taken to structure your Visual Studio ...
5
votes
2answers
523 views

Intellisense in SharePoint User Controls

I have the following (simplified slightly) at the top of my application page in SharePoint: <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft....
5
votes
3answers
3k views

SharePoint Web Serivces Access Denied; Only From VS 2010

After not getting much help on the last question, I decided to blow away the VM and re-create it as I already lost a week on this issue. And of course still issues, btu a little different. I am ...
5
votes
5answers
19k views

Custom web part deployment produces 'Cannot import this webpart' error

I have built an empty SharePoint project in Visual Studio 2010 with some custom web parts in it. When I've tested these on my local development machine they can be added to a page without any trouble. ...
5
votes
0answers
200 views

Office ui fabric react not working with SharePoint hosted app!

I have created SharePoint hosted app using VS2015, and in that i have used Office ui fabric react components. I have installed it and other packages of React and React-dom using npm, App is ...
5
votes
1answer
5k views

Importing a SharePoint 2013 workflow in Visual Studio

I'm creating a simple workflow in Visual Studio: I can deploy it, and it works. I then try to open it with SharePoint designer: However, the steps/activities/stages are missing. How come I'm not ...
4
votes
2answers
3k views

Sharepoint Project automatically retracts Visual studio

I have a Sharepoint project with a workflow and every time I try run it, as it deploys the solution it automatically retracts. This retraction happens 1 second after the deploy. Below is the build ...
4
votes
2answers
18k views

ListData.svc returns Error 400: Bad Request in Visual Studio

I wanted to use the REST Service in an application. So when I add the service reference in Visual Studio I get this error There was an error downloading 'http://myMainSite/sites/subSite/_vti_bin/...
4
votes
4answers
9k views

Page Layout editing in Visual Studio: “Unrecognized tag prefix”

When editing a Page Layout in Visual Studio 2010 the 'asp' prefix is not recognized. For example: <asp:Content contentplaceholderid="PlaceHolderBreadCrumb" runat="server"> Has 'asp' green-...
4
votes
1answer
2k views

Why would “Assembly Deployment Target” be disabled, in a non-sandboxed solution?

I have a visual studio project where I am trying to GAC the dll that is created. My problem is that when I click on the project and look at the "Assembly Deployment Target" property it is disabled (...
4
votes
2answers
339 views

What can be excluded from source control in SPT 2010 solution (VS 2010)?

Besides the usual bin and obj folders, what else can be excluded from source control in the Visual Studio 2010 SharePoint solution I've built? I'm particularly interested in whether the pkg and ...
4
votes
2answers
3k 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 ...
4
votes
1answer
15k views

Error occurred in deployment step 'Activate Features' - When feature stapling to My Sites

I am trying to deploy a feature to My Sites in SharePoint 2010 and nothing seems to be working. I did this perfectly fine on the test environment but can't seem to get it working on the production ...
4
votes
1answer
787 views

Including Description with Page Layout

I'm deploying a couple of custom page layouts as part of a feature for SharePoint 2010, and am having issues including the description with the page layout. I'm looking to include descriptive text as ...
4
votes
2answers
10k views

Add fields to New/Edit form with custom list definition (document library)

I'm using Visual Studio 2010's template "List Definition" to create a new list definition for a document library. Nothing fancy at all - I only want to add a couple of fields to the list and to the ...
4
votes
2answers
2k views

Missing 'Workflow Association Form' from SharePoint 2010 templates in VS2010

I am trying follow a tutorial on creating a Workflow using VS2010: http://msdn.microsoft.com/en-us/library/ee231590.aspx However under the section 'Adding an Association Form to the Workflow', I need ...
4
votes
2answers
1k views

Convert SharePoint 2007 features in VS2010 feature designer

Does anybody have experience moving SharePoint 2007 features from VS2008 to VS2010 using the new feature designer? I currently have a C# class library project that has a "12" folder with a bunch of ...
4
votes
2answers
4k views

How to copy a Managed Metadata Column from one list to another?

I have two lists that are using the same Managed Metadata column. I am attempting to copy this column when I create a new entry in one of the lists. My code looks like this: SPListItem li = ...
4
votes
1answer
800 views

Check whether PeopleEditor control contains more than one user

I have a PeopleEditor control with MultiSelect="false" on a workflow initiation form. If enter 2 names, they both resolve... the workflow just truncates it and keeps only the first entity. I want to ...
4
votes
1answer
215 views

Using Visual Studio, how can I reference a SharePoint 2010 site collection outside of the development machine?

I am creating a custom web service which needs to reference a specific site collection on our SharePoint 2010 farm. The web service is on a development machine not part of the farm (although ...
4
votes
3answers
10k views

Visual Studio cannot connect to sharepoint site

I have spent many hours at this issue and still unable to fix it: I read somewhere that one cannot deploy apps to sharepoint using the "system account", so I: Created a new account "admin1" in ...
4
votes
2answers
1k views

Create Document Library using REST API in C# on Client Machine [Not in SharePoint Server]

I am working on a requirement where I need to create Document Library using REST API using C# code using Visual Studio. The main problem is that I am not having SharePoint Server environment. I am ...
4
votes
6answers
13k views

Error occurred in deployment step 'Recycle IIS Application Pool'

I am trying to build a WebPart project and I am trying to deploy the same into my SharePoint dev site which I created using the SharePoint Central Administration. But the issue which I am facing while ...
4
votes
1answer
3k views

Custom workflow activity shows up but can't be selected?

I have created a custom workflow activity and successfully deployed it. The issue I am running into is that when I try to select it when creating a workflow using SharePoint designer, nothing happens....
4
votes
1answer
363 views

Development environments offered from the cloud

Would cloud based development servers be a valid alternative for local development environments? The cloud based dev environment might consist of a separate physical SQL server, and a SP dev image ...
4
votes
2answers
3k views

How to read a column type SPUser, DateTime, Currency with EcmaScript?

I have a list in SharePoint 2010 with some columns. All are default types. So I have "Single line of text" "Multiple line of text" "Date and Time" "Choice" "Number" "Currency" "Person or Group" ...
4
votes
2answers
441 views

How to “seed” default content into newly provisioned site definitions in SharePoint 2010?

We have a publishing site definition that we have created in Visual Studio 2010. It is working great and provisions the sites just fine. We have a need to have starter content inside the sites. All ...
4
votes
1answer
3k views

Visual Studio 2015 Remote Development

When creating a SharePoint project in Visual Studio on my windows 7 machine I receive this error. The required version of sharepoint foundation or sharepoint server is not installed on this ...
4
votes
2answers
4k views

Error occurred in deployment step 'Activate Features':

I am trying to deploy a SharePoint solution on my local machine.But it is giving me the following error: Error occurred in deployment step 'Activate Features': Failed to load receiver assembly "...
4
votes
1answer
4k views

Remote development to SharePoint 2013 with Visual Studio 2013

Referring to the following question: Visual Studio 2013 remote development I have tried this method to setup my environment for remote development to my on-premises SharePoint server. However, it ...
4
votes
2answers
2k views

Unable to Delete Custom Master Page Programmatically During Feature Deactivation 2013

I currently have a custom master page that is being deployed at the Site scope. Once deployed and the feature is activated it makes the master page available for use. I am able to activate the ...
4
votes
4answers
794 views

Problem with Visual web part

Good day! I have an event handler that, when you add a document to the library redirects the user to a web form with the parameters of the document. In the web form, it displays the current user in ...
4
votes
4answers
5k views

Where is the SharePoint 2013 SDK?

I want to try out SharePoint 2013 with Visual Studio 2012. I'm trying to locate the SharePoint 2013 SDK. Google points me to older posts about Beta SDK releases. Visual Studio 2012 only has ...
4
votes
1answer
230 views

Is there a way to create a new list item with other user using Microsoft.SharePoint.Client namespace

We have a SharePoint list in which each user has permission to view only records created by him. I have a task to write a service that generates list items, list item must be created by another user ...
4
votes
1answer
997 views

Is VS 2010 needed to build a SharePoint 2010 project in Powershell?

Can you build a SharePoint Project without Visual Studio 2010/2012 being installed on the machine you are trying build it on using PowerShell? I have a PowerShell script the is working great. It ...
4
votes
1answer
422 views

Use site URL in build event

I wrote a powershell script that associates a workflow with a site and I want to call it in the post-build event of the workflow project in visual studio. How do I get the "Site URL" field in the ...
4
votes
3answers
6k views

error activate feature list template/instance in site definition

i've created a SiteDefiniton project and a Sharepoint ListDefinition project. In the SiteDefinition I created a listinstance of my template, but in deployment the activation of the ListInstanceFeture ...
4
votes
1answer
1k views

Timeout while deploying VS2010 solution to SP2010

When deploy a solution (no sandbox solution) with many projects, I always get the following error: Error occurred in deployment step 'Recycle IIS Application Pool': The open operation did not ...
4
votes
1answer
1k views

Custom timer job - trying to access a custom User Profile - failing with “Could not load file or assembly” (of UserProfile)

I'd be grateful if anyone could point me towards the right direction for the following problem. Given: Sharepoint 2010 project. FBA Authentication with custom user profile (class called UserProfile, ...
4
votes
3answers
2k views

ASP.NET User Control in SharePoint WebPart

I want to use the Visual Studio designer to make controls for my WebPart... I've been pointed to two approaches that seem ok. First, SmartParts... which I'll look into later. Second was to create an ...