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

learn more… | top users | synonyms

0
votes
3answers
44 views

How can I create a column in SP list which represent current date?

How can I create a column in SharePoint 2013 which represent the current date. For example today is 02/09/2016 tomorrow should be 02/10/2016, 02/10/2016... and so on each day the date must be changed. ...
0
votes
0answers
18 views

Deploying Master Page to Site Collection Level using Feature Receiver Sharepoint 2013

I am getting an access denied error while deploying the custom master page,feature reciever to the Site collection. How ever when scoped to web it works fine.
0
votes
2answers
28 views

Site Master Page Issue in SharePoint 2013

I have a custom master page (that includes top navigation, breadcrumb, etc.) created using Visual Studio 2012 for SharePoint 2013. And I am using it as a site master page. Now I want to use this site ...
1
vote
2answers
29 views

Could not load the Web.config configuration file. The given key was not present in the dictionary.

I'm trying to launch debugging on Visual Studio 2012 and it shows me this error message : By googling a little bit, I read that I should remove the 10 directory located in : ...
16
votes
4answers
6k views

SharePoint project builds but will not package

I have a SharePoint project that references (and includes in its package) a non-SharePoint project. There is a class in my SharePoint project that references the non-SharePoint project, so has a ...
0
votes
1answer
19 views

Changing VS 2012 Ultimate to VS 2012 Professional, is there any impact on SharePoint?

In SharePoint 2013 Uninstalling VS 2012 Ultimate & installing VS 2012 Professional on SharePoint 2013 server, will it impact existing applications development on SharePoint 2013?
5
votes
1answer
1k views

This projects needs to be migrated?

I have a sharepoint 2010 solution. i migrated it to sp 2013, all sharepoint 2010 projects have been migrated without any problems. Office projects (Excel and outlook addins) however have been acting ...
0
votes
1answer
3k views

SharePoint 2013 workflow stuck in started stage

I got the setup recently with workflow client and manager installed(on different servers). I started with developing a simplest of the workflow with just one activity "WriteToHistory". But upon ...
3
votes
3answers
2k views

How to add tooltips to sharepoint 2013 form fields

I am working with a User (sandbox) Solution created in Visual Studio 2012 for SharePoint 2013. I have been asked to add custom tooltips to the default new and edit form fields. I have not been able ...
1
vote
1answer
60 views

sharepoint custom workflow terminates automatically after some time

I have created a state machine workflow in visual studio 2013. - initial stage: it sends an email to some members. - second stage : it should wait for 5 days untill all of the users take actions. - ...
1
vote
1answer
38 views

DoesUserHavePermissions not working

I have tried multiple different ways to get this code to work. I will post both methods of code. Neither ones work. The idea is to get all the "Sites a user can access", and create a hyperlink within ...
2
votes
0answers
25 views

how to show less a text [closed]

I have created a function which duty is to Show more text. But i cannot create a Show less to show less my text i have the following html <div class="item"> Ronaldinho joined Barcelona in ...
0
votes
1answer
267 views

SP 2013 workflow initiation form people picker

Using a WorkflowInitiationForm in an VisualStudio workflow for SharePoint 2013 I wonder how to get the Information from people picker. Adding to the project the form delivers code examples for string, ...
1
vote
1answer
17 views

ObjectDataSource - schema seems cached - unable to refresh

Within a Visual Studio 2012 Visual Web Part, I've created a simple FormView referencing an ObjectDataSource to autogenerate an editable form. Creating this the first time, there was no issue. ...
0
votes
1answer
31 views

c#: how to write JavaScript function inside c# [closed]

How to add JavaScript function window.print()in C# code. C# snippet : private void CTRL3_5_Clicked(object sender, ClickedEventArgs e) { //JavaScript function here! }
2
votes
1answer
35 views

How to make a print button in infopath form?

In infoPath form I have a button which duty is to print the current document, I have been trying this one thisXdocument.PrintOut(); but the following error occurs "The name "thisXdocument" does not ...
4
votes
1answer
191 views

How to show and hide a paragraph in html when a button is clicked?

I have the following query. I have a <pre> tag and it has some text inside but i want to hide <pre> when a button is clicked. Following images shows code: When this addNewTest() ...
0
votes
0answers
27 views

Set a value for all field in desired column? javascript

i have the following solution: in my SP list called QUIZ i have a column named koha i also have a userinterface that is build via XML in my javascript solution the current setting are when you ...
0
votes
0answers
24 views

Set style of new SPView object

I have a SharePoint 2010 solution built in Visual Studio 2012 that creates a new list. I modify the default view to use certain fields. I want to change the style to Newsletter (ID 15). What method of ...
1
vote
1answer
27 views

Turn off auto activation when deploying SharePoint 2010 feature

I am building a SharePoint 2010 solution in Visual Studio 2012. When I deploy the solution, the features are automatically being activated. How do I disable this? Other answers have mentioned the ...
0
votes
1answer
91 views

Could Not Load File or Assembly or One of It's Dependencies

I have been building a SharePoint app in the NAPA Office 365 Development Tools. Recently (due to some weird bugs) I wanted to use Visual Studio's debugger so I opened the code in VS. However, when I ...
1
vote
1answer
12 views

Pre-requisites for installing SharePoint 2010 Project Templates in Visual Studio 2012

I want to start work on SP 2010 with Visual Studio 2012 , but I am unable to see any SharePoint Project Templates for creating a Visual Web Part. What should be installed for getting the ...
4
votes
3answers
18k views

Retrieve list item using CSOM on SharePoint online isn't working

I've been stuck on this problem for couple days, I develop app model on SharePoint online using provider hosted model. From clientwebpart, i want to access sharepoint list item. I can access list ...
1
vote
0answers
23 views

Set InfoPath Repeating table(DropDown List) field value through VSTA code

I have followed below URL to construct repeating table dropdown list in infopath 2013(reference). Here,In my form loading event i have forming 4 rows with dropdown list and its working fine.But when ...
0
votes
1answer
15 views

Microsoft.SharePoint.WorkflowServices System.FormatException: RestrictAssociationToId

When trying to run provider-hosted add-in containing workflow in Visual Studio output window I get this error: Microsoft.SharePoint.WorkflowServices System.FormatException: ...
0
votes
0answers
21 views

How to convert an item that is retrieved from list to a string datatype?

I am having problems with some strings i have the following code in javascript: _result = currentQuizItem.get_fieldValues()["Audience"]; "Audience" is a column in my sharepoint list, and it has ...
4
votes
6answers
8k views

Create visual webpart for SharePoint Online

I want to create a visual webpart for SharePoint 2013 Online but I find that the requirement is to install the SharePoint on the local machine. Another thing, do SharePoint 2013 Foundation support ...
2
votes
3answers
139 views

how to get a value from a Sharepoint list with javascript

I have the following code: window.onload = function () { var setTime = // i dont know what to do here var fiveMinutes = 60 * setTime; display = document.querySelector('#timer2'); ...
1
vote
1answer
39 views

How to store data into list with JavaScript? [duplicate]

I want to store these information into my list called QuizList. I have the following code: var dtm = new Date(); var itemCreateInfo = new SP.ListItemCreationInformation(); var listItem = ...
0
votes
2answers
8k views

Download files from document library using C#

Task: There are some Excel files or documents on SharePoint site that I need to download to my local drive. I'm a newbie to C#, so please give me directions on how to start and complete my task. I ...
0
votes
1answer
44 views

Unable to debug SPListEventReceiver

Running VS and SharePoint on the same server, but I am unable to debug my simple Event Receiver to see why it is not firing. Here is the snipp: public class EventReceiver1 : SPListEventReceiver { ...
-1
votes
1answer
65 views

Can anyone explain me this code in c# for SharePoint

I was wondering if anyone could explain me the following code what it does. SPWebApplication webApp = this.Parent as SPWebApplication; SPList taskList = webApp.Sites[0].RootWeb.Lists["MyList"]; ...
0
votes
1answer
141 views

Visual Studio crashes after publishing

I have a SharePoint project as a part of Visual Studio solution. When trying to publish a project to create WSP, WSP gets created successfully but VS crashes. In event log I see the following record: ...
1
vote
1answer
98 views

How to save selected item from drop down list into choice field

Actually am fetching data from list to my drop down list(ddlseverity). I want to get selected value from drop-down and display the value in choice filed in SharePoint list. after click submit button ...
1
vote
4answers
59 views

Migrating custom solution from 2010 to 2013

I have a custom solution (WSP) for SharePoint 2010, but we are now upgrading to SharePoint 2013. If I upgrade my WSP project in Visual Studio 2012 to the latest version (so all references are .Net ...
0
votes
1answer
113 views

Visual web part, SharePoint 2013 with VS 2012. Gridview with paging , export to excel

Created a visual web part for SharePoint 2013 with VS 2012 template. Web part has gridview with paging enable. On the same I have a button for export to excel. Gridview works perfect , but when I ...
0
votes
0answers
30 views

WaitForCustomEvent Sharepoint 2013 Workflow

I am trying to create a 2013 workflow for SharePoint 2013 in VS2012. Every thing works fine except for my "WaitForCustomEvent". The first thing my workflow does is collecting parameters and call this ...
0
votes
0answers
27 views

Requirements for a Timer Job deployment

I created a timer job to kick off a workflow on all items in a List. I followed this template and converted the code to VB. What do I need to deploy this to my SharePoint site using the command: ...
0
votes
0answers
36 views

SharePoint hosted app submit multiple items to list

I am developing a SharePoint 2013 hosted app and I currently have a 'repeating' table that is being cloned each time a button is clicked. I currently have three tables which all submit to separate ...
0
votes
1answer
282 views

SharePoint 2010 Adding Web Part Error: Object reference not set to an instance of an object

I created a Farm Solution visual web part in a development environment (VM). I've run into issue while attempting to deploy this Visual Web Part in a test environment. I added (Add-SPSolution), ...
0
votes
0answers
243 views

Using Visual Studio 2015 with SharePoint 2013 - WF Projects changing reference version automatically

I have some SharePoint 2013 Visual Studio workflow projects in my solution. Once I opened the solution using Visual Studio 2015, It changed the WF project dll reference as mentioned below. ...
0
votes
2answers
1k views

Calling a WCF web service from a SharePoint 2013 Visual Studio Workflow

I have a scenario where I need to access a WCF web service (locally hosted) from a SharePoint 2013 Visual Studio workflow. Below given is what I have done so far: This is what the workflow does: ...
2
votes
1answer
108 views

SharePoint 2013 Visual Studio Workflow not getting updated (WSP Deployment)

Here's the scenario: I have a SP 2013 Visual studio workflow in my Staging Server. I want to replace the current workflow with the updated version. (Not add as a new version, I want to replace it) ...
0
votes
0answers
19 views

Workflow state shows as 'completed with errors' instead of 'completed'

I have a custom workflow which is developed using visual studio 2012. It works fine with all the functionalities, but only difficulty which i am facing is that if i terminate a project, workflow state ...
0
votes
1answer
577 views

SharePoint 2013 workflow not showing up in the associated list's workflow settings page

I followed the steps mentioned by Prabath See steps here However when I deploy the SP 2013 workflow on the server, I can't see it in the 'Workflow Settings' page of the associated list. The ...
0
votes
1answer
112 views

InfoPath 2010 and Visual Studio 2012

I would like to generate InfoPath forms (2010) with managed code and debug the form template with Visual Studio 2012. I have downloaded and installed the Visual Studio Tools for Applications 2012 plus ...
13
votes
4answers
7k views

Visual Studio 2012. Visual webpart's ascx.g.cs file empty after registering any control

I've discovered a problem when a Visual webpart's g.cs appears to be empty. I'm using Visual Studio 2012 Update 3 and a project for SharePoint 2010. The steps to reproduce the problem: in Visual ...
0
votes
0answers
30 views

Call a PowerShell .ps1 file from Visual Web Part

I want to call a .ps1 file from my visual web part which is part of my wsp. Is this possible? Does it similar to calling a notepad.exe file from a console or web part's .cs file. Customer wants to ...
1
vote
0answers
105 views

Update an existing SharePoint 2013 visual studio workflow

An article gave me the below steps to perform the update: Change the workflow assembly's version number Update the workflow assembly version number in the attribute of the Workflow element in ...
0
votes
0answers
18 views

Visual Studio 2012 SharePoint 2013 Workflow - calling a method during manual workflow termination

I am using a Visual Studio 2012 SharePoint 2013 workflow. I need to perform a task once the workflow is terminated manually. Any idea of how to do that?