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

learn more… | top users | synonyms (1)

48
votes
5answers
4k views

Migrating a solution from 2007 to 2010

Let's say we have a well-established solution in Visual Studio 2008, using WSPBuilder to bundle it up into a package. It has a handful of features and a whole whack of assets to deploy (.webpart, ...
24
votes
7answers
5k views

List of best practices on structuring SharePoint 2010 solutions

I am looking for good guidance on how to structure a SharePoint Solution including: Visual Studio Project Structure Features (how to separate features) Namespaces When to use multiple project ...
3
votes
4answers
11k views

Error message: “A sharepoint server is not installed…”

Im trying to develop a Visual Web Part using Visual Studio 2010 RC. I have not installed SharePoint 2010 locally on my developer box, but I have installed it on my Windows 2008 Server VPC. When I try ...
1
vote
4answers
2k views

How to enable site collection feature by default when deploying a visual webpart from visual studio?

I am making a visual web part in SP 2010 using visual studio 2010. I want it so that when I add and deploy my wsp file, it should by default keep the site collection feature activated for the web ...
8
votes
1answer
2k views

Best practices for creating a shared code library for SharePoint projects

I have several projects for SharePoint 2010 (mostly they are separate solutions built each to separate wsp's) in active development. And I have a similar tasks in these projects (logging, ...
1
vote
2answers
4k views

Change XSLT for Discussion Board, deploy via VS2010

So we are creating a branded web site for a client to deploy internally (kind of an intranet), but 99% of users won't see the ribbon, just a branded information site. They want to use the Discussion ...
2
votes
2answers
760 views

Check if task has already been submitted on opening InfoPath task form and switching view to reflect so

I am trying to make my custom task form (of Visual Studio Sequential Workflow) to switch view to "Submitted" in case someone has already submitted this task before, since this task could be assigned ...
1
vote
2answers
2k views

How to display list on application (aspx) page by visual studio?

I have created list and application page in visual studio for sharepoint.Now I have to show that list on that application page. I have option of using SPServices. But is there anything I can do with ...
1
vote
7answers
2k views

How to avoid WSP deployment globally using Visual Studio 2010?

How can we avoid the Globally Deployment of a WSP using Visual Studio 2010?
2
votes
1answer
151 views

Using solutions and features in creation/branding of SharePoint websites

I am new to SharePoint website creation and branding and I need your advice. For my first SharePoint site I have done the following: 1- Created/edited a master page. 2- Added CSS and JavaScript ...
1
vote
1answer
43 views

Starting Workflow on Button Click

I have added a state machine WF in VS by right clicking my solution and Add -> Add New Item -> then under "Office/SharePoint I added the "State Machine WF (Farm Solution Only). So the WF is now part ...
1
vote
1answer
84 views

How to edit web part from wsp solution

I have wsp files that contain some web parts that I need to change the functionality of. Without the actual solution or project files, using just the wsp, is it possible to edit them? I changed the ...
18
votes
2answers
5k views

Multiple Sharepoint projects in one solution - how to package correctly?

I have multiple Sharepoint projects in a solution: MySolution.WF MySolution.Webparts MySolution.UI I also have some common code in a MySolution.Common project. All of the aboe projects ...
8
votes
4answers
4k views

Files in feature won't update when marked with GhostableInLibrary

Having an issue updating files with a feature. This is for custom branding. here is a sample of the elements.xml file. If I add a new file, it will provision fine, but any changes to existing files ...
6
votes
2answers
12k views

Difference between WebPart & Visual Web Part

I'm not sure how Visual Web Part is different from the actual Web Part in SharePoint 2010. Thanks!
6
votes
4answers
4k views

What SharePoint 2013 Development can be done in Visual Studio 2010?

It looks like the tools for developing SharePoint 2013 customizations are mostly in Visual Studio 2012 and "Napa for Office 365." If you've tried developing solutions for SharePoint 2013 in Visual ...
4
votes
2answers
2k 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
1answer
649 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 ...
3
votes
1answer
485 views

Blog Post Read More

I'm using SharePoint 2013. In our blog post we often use allot of images and text so the current layout just doesn't work. I'm looking for a way to display a link to a read more page.
2
votes
2answers
629 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 ...
1
vote
1answer
719 views

How to customize the XsltListViewWebPart?

I would like to have submission feature on the List List structure would be Mon-Fri is considered as a week, user would be asked to select the current week's Friday from the calendar. It ...
5
votes
4answers
10k views

How to fix “A SharePoint server is not installed on this computer”

To do SharePoint custom development, what is the recommended method? I've read this post, and it appears that if you want to use debugging in VS2010, you'd want to have SharePoint on the same machine ...
4
votes
2answers
4k 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 ...
3
votes
2answers
663 views

SharePoint 2010 — Visual Studio Project Structure

What are your project structures for sharepoint projects. For example my simple structure is: Think of a project named MyPortal MyPortal.sln --MyPortal.Branding (Custom master pages, page layouts, ...
2
votes
1answer
626 views

Visual Studio 2013 - Workflow debugging prerequisites failed to complete

I am experiencing an issue with debugging SharePoint 2013 Workflows in a SharePoint App solution: Has anyone encountered this error?
2
votes
2answers
374 views

How to debug sharepoint webservice?

I've followed Walkthrough: Creating a Custom ASP.NET Web Service and everything works fine. I just want to know how to enable debugging for this web service over network. Could you help me?
2
votes
4answers
10k views

How to read a file from a folder in _Layouts?

I have a file that is in a the mapped folder "Layouts" in my Visual Studio project. I would like to read the contents of this file but I have been having some trouble accessing it. What I have ...
1
vote
1answer
879 views

How to make taxonomy picker required when used in visual web part?

I have created a visual web part in which user has to specify a field's value from taxonomy picker control. I want to make that value mandatory. The control is placed successfully but when I use the ...
1
vote
1answer
704 views

How do I create a Sharepoint hosted app for office 365 in Visual Studio 2013?

I've setup Visual Studio 2013 RC and a Office 365 developer site. I can create an app using Nappa and open it in VS from there. But if I create a Sharepoint hosted app project in VS and point it to ...
1
vote
2answers
753 views

Disable value in dropdown menu after being selected

I have created a library in which i am using the drop down column with some values.These Values will depend on the group to which the user belongs. For Eg. If Drop Values are A, B , C, D, E and ...
1
vote
1answer
2k views

ListAdded Event Receiver not Firing for List Instances

I have a List definition in Visual Studio which is instantiated using a List Instance. This list definition has an event receiver which overrides the ListAdded event. I am able to get the ListAdded ...
0
votes
1answer
136 views

SharePoint Web Part Development - Server Side vs Client Side

I am developing a web part in SharePoint 2010. I consulted with someone well versed in SharePoint development who told me that, beginning with SP2010, server-side code is discouraged. The problem is ...
0
votes
2answers
301 views

How to deploy an EventReceiver which writes to SQL Server correctly

following scenario. I have a client machine on which I have all the permissions for: SQL-databases (db_owner) Full access to a Sharepoint Application. Created a Sql-account (db_owner) and included ...
6
votes
3answers
946 views

SharePoint Web service requests take 30-60 secs initially

When trying to access SharePoint WSS 3.0 server using the web services API, the software service we are developing will hang anywhere between 30-60 seconds when making any call (pick anyone of them, ...
6
votes
3answers
4k views

Deploying EventReceiver project with target of WebApplication from VS fails when activating features

I am trying to deploy an event receivers project with a deployment target of WebApplication as part of my web parts package (also has a target of WebApplication) through Visual Studio and encountering ...
4
votes
1answer
2k views

Why won't my site column deploy from an elements file?

See Can site columns be deployed in sandboxed solutions? for background on this. I've tried to reproduce the sandboxed feature with a site column as built by Hilton Giesenow shown on How Do I: Create ...
4
votes
1answer
534 views

Use Visual Studio 2010 To Create SandBoxed Site with Content

I have a site that was built with the UI: It has a lot of custom .aspx pages with webparts and there are custom site columns, content types, and even a document library with several support files. My ...
3
votes
2answers
3k 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 ...
3
votes
2answers
919 views

DropDownList to display External Content Type?

I am creating a visual web part in Visual Studio 2010 for SharePoint 2010 Server. I would like to use a DropDownList that shows data from an external content type (that is tied to a SQL Database ...
3
votes
1answer
926 views

Can site columns be deployed in sandboxed solutions?

I have created a package in Visual Studio 2010 for SharePoint 2010 which contains a single feature, called "SiteColumns", which link to a single elements file defining a single site column. I have ...
3
votes
2answers
3k views

Error occurred in deployment step 'Add Solution': Sandboxed code execution request failed

Whenever I try to debug (i.e. F5) a SharePoint 2010 Project I get this error. All the SharePoint services are running. Messages in Output window: Add solution Adding solution 'my solution.wsp'... ...
2
votes
0answers
153 views

How to read value from custom user field in Workflow 2013

I have a custom user field (it's used in custom task content type): <Field ID="{d3773326-a0a8-45e2-9c60-82fc7f7ba01c}" Name="IM_Task_ResponsiblePerson" DisplayName="Responsible person" Type="User" ...
2
votes
2answers
1k views

How to set visual webparts to load one after - another sharepoint 2010

I have a webpart page which have 2 custom visual webparts. When i set the debugger point on both the page loads of the webpart the 2nd visual webpart debugger is hit...that makes me think the 2nd ...
2
votes
1answer
5k views

Creating a List Definition in Visual Studio 2012

Dont know if I'm missing something or just blind, but did MS not include the Add new List Definition template to VS2012 ? It was there in VS2010. VS 2010 screenshot VS 2012 screenshot
2
votes
1answer
9k 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 ...
2
votes
4answers
7k views

Content rotator for SharePoint lists

I'd like to build a content rotator web part for SharePoint 2010 to display list information. I'm working with the ever-popular AnythingSlider. A couple of questions: How would I let the page author ...
2
votes
0answers
6k views

How to create the wsp package in visual studio 2010 with following features? [duplicate]

I want to create a wsp package. When I deploy it, it must add features such as two SharePoint lists, one webpart, one image library sequentially. Can I do this in WSPBuilder? I want to deploy this on ...
2
votes
2answers
908 views

Understanding Sharepoint feature scopes

I have read the article about Understanding Scope of SharePoint Features and the MSDN documentation on Feature Scope. So from what I understand you can activate a feature for the following scopes: ...
2
votes
1answer
397 views

Deploying webparts to default.aspx with a SiteDefinition feature dependency

I tried deploying a Site Definition with a custom default.aspx page. Within the <WebFeatures> node of the Site Definition's Onet.xml I tried to reference a Feature which would get a web part ...
1
vote
2answers
438 views

Workflow debugging prerequisites failed to complete - VS2013 Autohosted App

I am creating an auto-hosted app on VS2013. I am working with SharePoint Online and not locally. The problem is that when I try to enable the workflow debugging on my project I receive the error: ...