Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [visual-studio-2012]

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

1
vote
1answer
26 views

Programattically Imposing Size and Type Restriction on a List Attachment

I'm using the code below to allow users to upload files as attachments to items in a SharePoint (2010) List. How can I add type and size restrictions to the attachment, for example, if I wanted the ...
2
votes
1answer
307 views

A timeout has occurred while while invoking commands in SharePoint host process

My scenario: i am trying to deploy a SharePoint Addin to SharePoint 2016 but i receive the following error : A timeout has occurred while while invoking commands in SharePoint host process. I had a ...
0
votes
1answer
493 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 ...
1
vote
2answers
224 views

While fetching data from sql server in sharepoint web part getting error as Login failed for user 'NT AUTHORITY\IUSR'

I am trying to get data from SQL server's table in SharePoint custom web part.There I am getting error as "Login failed for user 'NT AUTHORITY\IUSR'". here is my simple code DataTable table = ...
1
vote
0answers
19 views

How to create multiple custom picture libraries from Visual studio 2012?

Here I am creating multiple custom pucture libraries from the visual studio for that I followed many articles. this is one of them. This one is very usefull while creating a single library and I got ...
1
vote
1answer
30 views

Can't find Sharepoint timerjob service among process to attach

I would like to attach Visual Studio to OWSTIMER service to debug the execution of a sharepoint timer job, but the service stopped to appear among services to attach in Visual Studio. Any idea why ? ...
0
votes
2answers
51 views

Compare list items SharePoint Foundation 2010

How can compare one item list with others items list in the meaning of No duplicate values ?? if (item.Title != dp1.Text + tb2.Text) { item["Title"] = ...
0
votes
1answer
272 views

Is there a way to back up/restore SharePoint 2010 Application Pages built with Visual Studio?

I have a few separate Application Pages built for SharePoint 2010 using Visual Studio 2012 and I'd like a way to back up and restore these SharePoint solutions (does not have to be a SharePoint based ...
2
votes
1answer
220 views

Is it possible to develop Event Receivers for sharepoint 2016 using MS Visual Studio Professional 2012

I have installed a new version of visual studio 2012 professional. and inside it i am able to create solutions for sharepoint 2010 only, as follow:- so can anyone adivce what i need to install to be ...
2
votes
1answer
164 views

Webpart stopped working after updating DLL version of VS solution

I have one VS solution in which there are 20 custom web part is there and it is working fine in production environment as well. Now because of some business requirement I have changed DLL version of ...
1
vote
1answer
453 views

why does clicking action of button from SharePoint user control refresh/reload the entire page?

I Am creating a SharePoint user control,in which I have to use buttons and the c# code so I used asp:button but when am deploying control on page to test then and after clicking on button this click ...
0
votes
0answers
35 views

the app.config file is not getting include in sharepoint user controls files

here am creating one sharepoint user control in which I need to use some data which I am putting in app.config file and trying to use that in in ascx.cs file but that is not accessible any how,does ...
0
votes
1answer
109 views

how to use .config file's data in sharepoint user controls .ascx.cs file

here am trying to create one sahrepoint reusable control for which i need to pass some data which suppose to be in .config file, e.g here am sending mail from sharepoint control and i need to pass ...
0
votes
0answers
39 views

Deploying content type from visual studio takes incorrect internal names

I am facing probably the weirdest problem I have ever seen. We are deploying content types using Visual Studio and here is a sample code. <?xml version="1.0" encoding="UTF-8"?> <Elements ...
2
votes
1answer
926 views

How to create custom action for sharepoint online 2013?through visual studio

am trying to create a custom action for document library for sharepoint 2013 online but am unable to get it,can any one help?
3
votes
4answers
981 views

How to generate a .wsp file for my Event Receiver using visual studio to be deployed inside my live environment

I have created an event receiver inside Visual Studio 2012. now i want to generate a .wsp file representing my solution to be deployed inside our live server. now i navigate to the following location ...
2
votes
0answers
147 views

Custom webpart cannot load file or assembly

My visual webpart is under the namespace IAA, and under IAA.ExtendedControls I define a few custom ASP.net Control tags to use on my .ascx page as follows: namespace IAA.ExtendedControls { public ...
0
votes
1answer
636 views

Solution cannot be deserialized because it does not have a public default constructor

I am currently trying to deploy a timer job to my SharePoint site. for the first deployment I forgot to implement a public default constructor for the Timer Job Class. And now I am stuck because I ...
1
vote
1answer
23 views

Cannot copy large activity between solutions

I've been successfully using Visual Studio 2012 to copy/paste workflow activities between workflows in separate solutions. This has worked really great until I ran into an activity which is quite ...
1
vote
0answers
225 views

I am facing $Resources:core,ImportErrorMessage; while adding sharepint2013 webpart

I am getting below error while adding WebPart in webpage $Resources:core,ImportErrorMessage; Please tell me things to do for resolving this error.
2
votes
1answer
79 views

Create a 2010 workflow in Visual Studio 2012 for SharePoint hosted app

Is it possible to create workflow 2010 for SharePoint hosted app 2013 in visual studio 2012. If yes then how we can achieve this. Suggest some help
0
votes
2answers
101 views

How do I resolve SharePoint 2013 connection error in Visual Studio 2012

I am trying to start a new SharePoint 2013 empty project in Visual Studio 2012. When I validate the URL to connect to the server, I get a connection error (see attached) . I am a Farm Administrator, ...
0
votes
2answers
239 views

Error occurred in deployment step. Cannot connect to the SharePoint site:

While creating a new App For Sharepoint, in Sharepoint Site URL Validation Form. When we click the Validate Button the following error is shown: Cannot connect to the SharePoint site:'http://...
0
votes
1answer
286 views

How to create master page in SharePoint 2013

I've designed a web application in ASP.Net/VB.Net in Visual Studio 2012. I want to deploy this in SharePoint 2013. I've read many blogs from Internet, one answer I frequently found is: Open master ...
0
votes
1answer
29 views

What settings need to do in following senario to validate Sharepoint Site url in VS 2012?

Question may be basic, but scenario is not understood. scenario is I am having the SharePoint 2010 installed on Windows Server 8 under Domain1. My Developer machine also under Domain 1. But while ...
0
votes
1answer
397 views

Retrieving List<T> collection from a REST method within a SharePoint 2013 Workflow

Here is the deal.. I have a REST method that returns Generic.List<DTOSupervisor> which has to be retrieved by using a HTTP Send and GetDynamicValueProperties components. My REST method ...
1
vote
1answer
21 views

Visual Studio 2013 Installation Error For SharePoint 2013

I am installing visual studio 2013 for my SharePoint 2013 and I came across this below issue.Can any one help me how can I solve this.
0
votes
1answer
25 views

VS2013 profiler : is it possible to profile a specific method?

I have VS2013 ultimate installed on my SharePoint Dev machine and I have never used VS profile before. Performance testing shows that performance is degraded compared to the before build and I want ...
0
votes
1answer
73 views

CreateLabel throws “insufficient permissions” error but CreateTerm does not

I have an event receiver attached to a list in SharePoint 2010. It is a solution built in C# in Visual Studio 2012. By adding items to the list from the browser, the user can add new Managed Metadata ...
0
votes
1answer
139 views

Unable to get data from SharePoint server

when opening my content type designer I get this message: "Unable to get data from the SharePoint server. The designer will only display data from the local project. You can try to reopen the ...
0
votes
2answers
1k views

Custom Master Page not visible while applying the theme in SharePoint 2013

I have created a custom master page out of seattle master page by renaming it using SharePoint designer(I have also created a master page using visual studio). And then i made some modifications to it....
0
votes
3answers
116 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
2answers
176 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
5answers
1k 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 : C:/users/username/...
0
votes
3answers
28 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?
1
vote
1answer
415 views

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 until all of the users take actions. third ...
1
vote
1answer
429 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
68 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
89 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! }
1
vote
1answer
42 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. ...
3
votes
3answers
4k 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 ...
5
votes
1answer
2k 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() function ...
0
votes
0answers
335 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
69 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
3k 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 "...
1
vote
1answer
24 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 ...
1
vote
0answers
156 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
108 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
32 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 some ...
2
votes
3answers
3k 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'); ...