Questions tagged [visual-studio]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
59 views

2010 CSOM - Provision document set after creation

I have a requirement to programmatically create a document set in a library. I've done this successfully using the code below, however when I open the document set I see the yellow bar message '...
2
votes
2answers
384 views

Follow site programatically

In SP 2013 on prem, I am developing a web part using c#. All my functions work except follow/unfollow a site for a user. So I am turning here for some inspiration, looking for some code snippets or ...
1
vote
1answer
80 views

Sharepoint client.PostAsync(“Url”, null) Gets 401 unauthorized error REST API Xamarin.Forms

I am developing a cross mobile app using Xamarin and I am trying to post some items to a SharePoint List. I have created a windows form app just to test the SharePoint Rest API and it is working good,...
2
votes
1answer
1k 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 ...
0
votes
1answer
31 views

Call JavaScript dynamically on Visual Web Part

I currently have a visual web part that displays clocks from different time zones, using the jClocksGMT library as provided here in the .ascx file. However, instead of hardcoding the timezones I want ...
1
vote
1answer
28 views

Send Email After Three Files Uploaded

We're still stuck on SharePoint Server 2010; will hopefully migrate to 2016 in the near future. I could really use some help with this task because I feel like I've spent countless hours, and haven't ...
2
votes
1answer
178 views

Custom Action XML, add Ribbon button to calendar

Can You help to add custom button to Calendar. I have code for Document Library, but have no clue how to do same for Calendar. I see ribbon names in DevTools and tried to change groups and xml ...
1
vote
1answer
247 views

How to add a GridView to a Visual Web Part?

I'm new to SharePoint and am developing a simple World Clock Visual Web Part, following this blogpost from SharePoint Hero. In the blogpost the instructor describes adding a GridView to the Web Part, ...
0
votes
1answer
106 views

How to get all Folders tree of a specific user with all the folders( or files ) permissions?

I am new to the SharePoint development. I want to write a C# code that will scan the sharepoint site and return the tree structure of all folders for specific user. It should also show the ...
0
votes
1answer
40 views

Visual Web Part cannot be found or is not registered as safe, and isn't being added to web.config

I'm new to SharePoint development, and I'm making a basic Visual Web Part with Visual Studio 2015, which currently only displays a header. It successfully builds and deploys, however the SharePoint ...
1
vote
1answer
78 views

Cannot initialize SharePoint project item whenever a project is reopened

I'm developing a SharePoint Visual Web Part for SharePoint 2016 with Visual Studio 2015. When I create a new web part all the relevant extensions initialize correctly. However, when I close Visual ...
0
votes
1answer
29 views

SharePoint 2013: nativehr0x80070002ativehrnativestackativestack error when documents are uploaded to a document library

I am frequently experiencing an error in my SharePoint 2013 on premise environment when users try to upload a document to a document library. When a user uploads a document, the person is asked to ...
1
vote
3answers
5k views

Programmatically altering approval workflow task in separate workflow

Here is my code to programmatically alter the task at hand, the only problem is that the code doesn't alter the "Outcome" of the approval task. The Outcome field is blank. "Task Status" is Complete, ...
1
vote
2answers
409 views

what version of visual studio is needed for sharepoint 2010

what version of visual studio is needed for sharepoint 2010 besides VS2010? My question is whether or not a sharepoint 2010 server can support newer versions of VS?
2
votes
1answer
316 views

Send email with attachment in visual studio workflow using event reciever

I a have a SharePoint 2013 list. This list has a visual studio sequential workflow. This Form will go to director then if he approved it will go to the approver to approve and then it will reach to ...
0
votes
2answers
25 views

Is it possible to use a SharePoint List to display content dynamically added by JS without saving it to the List?

I want to display a list in SharePoint Online in my Add-In using JavaScript, but if possible use all the features a stock List offers, like sorting and filtering (especially those two). Therfore I ...
0
votes
1answer
17 views

SharePoint Hosted Add-in asking for credential

My scenario : I have created a SharePoint 2016 farm and created a simple hello world SharePoint hosted add-in. I have successfully deployed the add-in via visual studio in one of the site. When i ...
0
votes
1answer
45 views

ConnectionString in SharePoint feature

I have issue with my connectionstring: App.config <?xml version="1.0" encoding="utf-8" ?> <configuration> <connectionStrings> <add name="prod" connectionString="...
0
votes
1answer
27 views

Where to put styles in a VS Project

I'm developing a SharePoint feature, I already know where to put custom layouts and templates, but can't find helps where to put .css styles. I'm not asking how to reference an existing file in any (...
1
vote
0answers
70 views

Cannot debug Provider-Hosted Add-In: VS2017 hangs opening Chrome (resolved)

Update: Resolved (hope so). Maybe this is a bug and upgrade VS2017 to to 15.7.6 helps. I close my Chrome every time before f5 -- Every How-to for beginners in the net say "Hit F5 and voila!" - but ...
0
votes
1answer
78 views

Creating a development environment on Azure

Is it still possible to create a quick development environment on Azure for SharePoint 2013 or 2016? Like it's described in this very old blog post: https://blogs.msdn.microsoft.com/sharepointdev/...
3
votes
2answers
5k views

Event Reciever run with elevated previledges

I created one event receiver and deployed it, but only users who are site collection admins are able to view this web part. I have included the SPSecurity.RunWithElevatedPrivileges but the same thing. ...
4
votes
2answers
107 views

Deploying add-in to SharePoint 2016

I am trying to deploy an add in to SharePoint Server but keep getting this error: "A timeout has occured while invoking commands in Sharepoint host procecss" Note: I am using vs2017 and window ...
2
votes
1answer
562 views

Show Item Level Permissions in Column [C# - SharePoint 2013]

I'm trying to show all Item level Permissions in a SharePoint list Column. I already solved this using PowerShell, however it was so slow to run sequentially, I've decided I need a C# Solution: I ...
1
vote
1answer
57 views

SharePoint plugin development automatization

I use Visual Studio 2017 to build and deploy SharePoint-hosted plugin to dev sharepoint environment. Can I authomatize this process? I want SharePoint plugin to be automatically deployed to dev ...
2
votes
2answers
747 views

Custom XSLT for taxonomy field in xsltlistviewwepbart for SharePoint 2010

I'm trying to modify the out-of-the-box rendering of the xslt list view webpart to collapse the terms, and show (..more) if there are more than 1 term in the field. I already did this for an "Authors" ...
2
votes
1answer
7k 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
1
vote
0answers
42 views

SharePoint Online Workflow With Visual Studio

I'm trying to learn do build workflows for SharePoint online with Visual Studio. I've been following a PluralSight training session and understand the concepts and can make all the various demos work. ...
1
vote
1answer
683 views

Infopath with VS 2017?

I have Visual Studio 2017 and InfoPath 2013 installed currently and was investigating the custom code options for Infopath and it states that I need to install VS 2012. Is it possible to get Infopath ...
0
votes
1answer
43 views

Workflow activity causing errors with type ViewStateNameValue

I am using visual studio 2017 2017 with SharePoint online (a developer site) to create a SharePoint hosted app. I have just been using the workflow designer so haven't touched the XAML. When I click ...
1
vote
0answers
119 views

Cannot debug SharePoint Framework command set extension in Visual Studio Code

As mentioned in this guideline I am able to get debugging in VS Code working for a SharePoint Framework web part: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/debug-in-vscode However command ...
0
votes
1answer
79 views

Office 365 sharepoint List connection in Visual Studio

I am trying to connect Office 365 sharepoint List in Visual Studio. But am not able to connect. Is there any solution for this? Or this is not possible at all? Many Thanks Savita
0
votes
2answers
432 views

Visual Studio Workflow REST API Call

I'm trying to get a user's property using a REST call in a Visual Studio workflow. The rest call: /_api/SP.UserProfiles.PeopleManager/GetUserProfilePropertyFor(accountname='i:0%23.f%7Cmembership%...
1
vote
2answers
6k views

Filling in the predefined Word Document Template from SharePoint Site

I have a requirement which asks for filling the details into a word doc with a predefined template from SharePoint site and then the word doc should be automatically saved when clicked on saved button....
1
vote
0answers
13 views

Cannot update the list item with event receiver [duplicate]

I have a user which has only Adding permissions which means that the user can only add items to a list. But I want to implement some logic in Title column with an even receiver. But the problem is ...
0
votes
1answer
30 views

User Change Event in ASP.Net

We have developed a visual web part in asp.net. With using SPContext.Current.Web.CurrentUser.ID property, we control who is current user. In SharePoint, it is possible to change current user and this ...
1
vote
2answers
1k views

SharePoint Designer workflows not working when Visual Studio is installed

I'm unable to open and edit SharePoint workflows in SharePoint Designer 2013. However, when I uninstalled Visual Studio 2015 Enterprise from the machine, I was able to open and edit workflows just ...
0
votes
1answer
61 views

Can i get my Event Receiver source code from a WSP file

I was working on a sharepoint 2013 farm solution to implement an event receiver inside visual studio 2012 professional. now when i try to build/run the project i got an error that there is not space ...
0
votes
1answer
31 views

SP item list join SQL item table in MVC ASP.NET

I'm new in MVC ASP.NET web app develop, I created an MVC WebApp hosted in AZURE App Service that CRUD into my SQL Azure Database. I used Visual Studio 2017 to do it, and it works great, it was ...
1
vote
1answer
6k views

How to solve "Type 'System.Web.UI.UpdatePanel' is not defined?

I'm using an update panel on a form to stop the page jumping and flickering when drop down lists etc are selected, I have enclosed the table which holds this inside of an update panel and a content ...
0
votes
0answers
65 views

Turn On Versioning in SharePoint Online Add-In List

I want to turn on versioning for lists generated via a SharePoint add-in deployed to SharePoint Online. I've added VersioningEnabled = "TRUE" to the Elements.xml of each list, but still get Vision ...
1
vote
2answers
39 views

Develop environment requirement for SharePoint 2016 [closed]

I am just starting on SharePoint and came to know that it is not as easy as another .net project where we just download Visual Studio community edition and start working on an application like web API ...
1
vote
2answers
109 views

Workflow not progressing when a task completes

I have a SharePoint 2013 Workflow deployed through Visual Studio as a farm solution. The workflow is deployed correctly, it starts when asked to and assigns a task to a group. The problem is that ...
1
vote
1answer
349 views

Visual Studio crash during debugging Add-In application

I'm develop provided-hosted app (MVC) in SharePoint Online. I've installed Visual Studio Community 2017. Unfortunately, when I try to debug and install Add-In, Visual Studio freeze and not responding. ...
0
votes
1answer
294 views

SharePoint Online: Why am I getting Error 429 while side-loading Add-in to dev site?

Today, for the first time, I'm continually getting Error occurred in deployment step 'Install SharePoint Add-in': The remote server returned an error: (429) while trying to side-load a Add-in to my ...
2
votes
1answer
63 views

Difference between Activating Feature in Site Features and Programmatically

I have this strange situation, i have a site definition, that has a feature that after provisioning the site has code that runs, and one of the tasks is to activate the Publishing Feature in the newly ...
2
votes
1answer
61 views

Minimum Requirements for Azure SharePoint Development VM

I'm interested in developing SharePoint Visual Web Parts in Visual Studio but don't have an instance of SharePoint Server running anywhere. Visual Studio points me to this page, which suggests a ...
0
votes
2answers
695 views

The required version of Sharepoint foundation or sharepoint server is not installed on this system

I wanted to create a webpart using SharePoint solutions in visual studio 2015. I'm currently using sharepoint foundation 2013. I don't understand why I'm getting this error because it seems that I've ...
1
vote
0answers
79 views

OnClick Submit Button and Populate 2 Lists

I'm new to C#, ASP.Net I am trying to populate 2 SharePoint Lists off 1 submit button. C# code: public partial class Default : System.Web.UI.Page { static Uri _site = new Uri("https:...
2
votes
2answers
72 views

2013 Workflow not starting on “create” after creating item with Visual Studio and impersonating user

SharePoint 2013. I'm using VS to create document sets in SharePoint. When they're created, I'd like to use a workflow to auto-fill a few columns. However, the workflow won't kick off unless I create ...