Questions tagged [visual-studio]
Visual Studio is an integrated development environment (IDE) from Microsoft.
1,180
questions
5
votes
4
answers
1k
views
Why is Microsoft.SharePoint.Search.dll copied in my project?
When working on a VS project that involves referencing Microsoft.SharePoint.dll, building the project causes Microsoft.SharePoint.Search.dll to be copied to my bin folder. Why is this? Okay, maybe it'...
5
votes
1
answer
516
views
What site do you want to use for debugging?
I'm trying to create a SharePoint project on Visual Studio 2015.
Validate gives this error:
I then updated C:\Windows\System32\drivers\etc(hosts file) with the line:
(IP Address of server) elsanet....
5
votes
1
answer
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
2
answers
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
3
answers
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
2
answers
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
1
answer
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
2
answers
8k
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
1
answer
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
5
answers
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
2
answers
3k
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 ...
5
votes
2
answers
89
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
1
answer
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
2
answers
552
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
3
answers
4k
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
5
answers
21k
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
0
answers
269
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
1
answer
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
2
answers
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
2
answers
19k
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
4
answers
10k
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
1
answer
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
2
answers
349
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
2
answers
4k
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
1
answer
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
1
answer
796
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
2
answers
11k
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
2
answers
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
2
answers
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
2
answers
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
1
answer
1k
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
1
answer
237
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
3
answers
13k
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 "...
4
votes
1
answer
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
2
answers
2k
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
1
answer
375
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
2
answers
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
2
answers
499
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
1
answer
423
views
Sharepoint 2019 visual webpart with SQL database
We are planning implement SharePoint 2019 on-prem to replace existing SP 2010 intranet .
we have few SP visual webparts with SQL data sources that was build using VB.net .
we like to know if it is ...
4
votes
1
answer
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
2
answers
5k
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
1
answer
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
4
answers
820
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
4
answers
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
1
answer
872
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
1
answer
1k
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
1
answer
438
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
3
answers
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
1
answer
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
1
answer
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, ...