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

learn more… | top users | synonyms (1)

22
votes
6answers
4k 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 ...
43
votes
5answers
3k 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, ...
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 ...
7
votes
1answer
1k 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
1answer
143 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
4answers
762 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 ...
16
votes
2answers
4k 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 ...
7
votes
4answers
3k 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 ...
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" ...
3
votes
1answer
574 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 ...
2
votes
2answers
674 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 ...
5
votes
4answers
3k 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 ...
5
votes
4answers
8k 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
7k 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!
2
votes
1answer
126 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
449 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, ...
1
vote
1answer
416 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
224 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
461 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
1k 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 ...
6
votes
3answers
711 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, ...
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
436 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
837 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
829 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

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
2k 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
2answers
224 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
2answers
803 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
4answers
5k 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
748 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
392 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
113 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: ...
1
vote
2answers
229 views

Updating 'Created By' field in SP2010 programatically

I'm trying to import data from an .xml file to a custom list in SP2010(created programmatically). I'm able to create and update all fields except 'Created By' as it says that "Cannot update read only ...
1
vote
2answers
267 views

Reading contents inside PDF file

How can i traverse the contents present inside PDF file. Suppose i have PDF documents inside a document library and I need to read contents inside PDF file to know the type of PDF file whether its a ...
1
vote
2answers
1k views

error while signing sharepoint assembly with certificate

Our company purchased a certificate to sign our assemblies. But if I go the signing tab in project properties and select the certificate there, I'll get the following error: "an attempt was made to ...
1
vote
1answer
794 views

Custom web part throws error when I try to add it to page

I am working on a custom web part, that keeps error out with: A web part or web form control on this page cannot be displayed or imported. the type is not registered as safe any time I ...
1
vote
2answers
2k views

Can't change title field display name

I'm using visual studio to develop custom content type, which uses Element as base content type. I'd like to change title field's display name, by doing so: <FieldRef ...
1
vote
2answers
936 views

MOSS 2007 + Visual Studio 2008 : How to I deploy a Visual Studio 2008 Web Application to SharePoint Server 2007

Q1. How to I deploy a Visual Studio 2008 Web Application to SharePoint Server 2007? I notice that there is not much materials on such deployment except for one which mention Visual Studio 2005 (not ...
1
vote
1answer
1k views

Get related items from a parent list item through lookup

I've got 2 lists: Companies and Employees. In Companies I have a text field called Name and in Employees I have a lookup to Companies based on the company Name. What I'm trying to achieve is to get ...
1
vote
1answer
2k views

WSDL and DISCO file from webservice

Not so long ago, I've tried creating a webservice for sharepoint. I followed this tutorial. In this tutorial you can see that you also need to create a wsdl and disco file. I didn't do this, and ...
1
vote
1answer
956 views

Sharepoint 2010 - wpresources for Bin / web Application Deployment

In SharePoint 2010 , using visual studio 2010 : i have bin / web application deployment. i want to add java script file under Virtual Directories\/wpresources// I cannot use the Resources mapped ...
1
vote
1answer
375 views

Changing directory name of features in SharePoint 14 Hive - Impact on already deployed features?

I'm moving from a WSPBuilder based SharePoint 2010 solution to a Visual Studio 2010 based solution. After porting the WSPBuilder based solution to a plain Visual Studio based solution I tried to ...
0
votes
1answer
206 views

Using custom SPRoleType

Environment: SP2010 Enterprise, VS2012, c# Server-Side, full control of environment I'm trying to assign unique permissions to an SPItem (a folder in a document library) through a console app on the ...
0
votes
1answer
67 views

Templated projects for autohosted or provider apps don't have TokenHelper and aren't set up correctly

When I add new project to my solution, select SharePoint 2013 App, then choose Autohosted or Provider hosted and create it, the created web project is completely empty and the projects are not set up ...
0
votes
3answers
1k views

How can I access Controls in VisualWebPart1.cs from UserControl.ascx

I make a Webpart and want to use the controls from the VisualWebpart1UserControl.ascx in the VisualWebpart1.cs. Is this possible? I wrote following code in the VisualWebpart1.cs: ...
0
votes
2answers
1k views

Cannot edit form in InfoPath when list was created in Visual Studio

I am using SharePoint 2010 Enterprise, InfoPath Designer 2010 and Visual Studio 2012. When I create a list using the SharePoint UI, I can use the "Customize Form" button on the "Customize List" ...
0
votes
2answers
155 views

Is it possible to modify master pages and web parts from a .wsp file?

Is it possible to extract the various projects from a wsp file to work on say the masterpages, web parts and other custom user controls just like I would in Visual Studio 2010?