Questions tagged [visual-studio-2012]

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

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

WSP package deployed through Powershell commands not reflecting the changes

There are few custom items like lists,content Types and pages which gets deployed through couple of features. When I directly deploy from visual studio, the custom items are deleted and recreated ...
user38433's user avatar
  • 389
0 votes
1 answer
34 views

Migrating Visual Studio solutions (page.aspx) from SharePoint 2013 to SharePoint Online

I have several visual studio page.aspx solutions that I want to migrate from SharePoint 2013 Onprem to SharePoint Online. How do I go about it?
Fjay's user avatar
  • 27
2 votes
2 answers
216 views

SharePoint Migration from 2013 to SharePoint Online [closed]

Please, can someone help. I need to migrate custom visual studio .wsp solutions from SharePoint 2013 to SharePoint online, how do I go about it.
Fjay's user avatar
  • 27
1 vote
1 answer
36 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 ...
BlueishVelvet's user avatar
2 votes
1 answer
2k 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 ...
Keshav Taurah's user avatar
1 vote
1 answer
1k 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 ...
vanblart's user avatar
  • 687
1 vote
2 answers
505 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 = ...
Madhav's user avatar
  • 1,494
1 vote
0 answers
36 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 ...
Madhav's user avatar
  • 1,494
1 vote
1 answer
43 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 ? ...
Ythio Csi's user avatar
  • 185
0 votes
2 answers
56 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"] = ...
faten's user avatar
  • 1
0 votes
1 answer
471 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 ...
Benjamin Snider's user avatar
2 votes
1 answer
319 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 ...
John John's user avatar
2 votes
1 answer
406 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 ...
Kalpesh Vaghela's user avatar
1 vote
1 answer
624 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 ...
Madhav's user avatar
  • 1,494
0 votes
0 answers
65 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 ...
Madhav's user avatar
  • 1,494
0 votes
1 answer
252 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 ...
Madhav's user avatar
  • 1,494
0 votes
0 answers
48 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 ...
Naveen's user avatar
  • 1,912
2 votes
1 answer
1k 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?
sharepoint2013's user avatar
3 votes
4 answers
2k 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 ...
John John's user avatar
2 votes
0 answers
233 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 ...
wdonahoe's user avatar
  • 121
0 votes
1 answer
1k 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 ...
Snickbrack's user avatar
1 vote
1 answer
26 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 ...
Slaven Semper's user avatar
1 vote
0 answers
373 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.
akj's user avatar
  • 351
2 votes
1 answer
82 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
Mrunal Shidurkar's user avatar
0 votes
2 answers
129 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, ...
BigB2's user avatar
  • 11
0 votes
2 answers
746 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://...
Vignesh amutha's user avatar
0 votes
1 answer
365 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 ...
sai's user avatar
  • 45
0 votes
1 answer
35 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 ...
Red Swan's user avatar
  • 371
0 votes
1 answer
480 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 ...
Muhammedh's user avatar
  • 1,157
1 vote
1 answer
29 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.
MSA's user avatar
  • 1,155
0 votes
1 answer
40 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 ...
Karthikeyan's user avatar
  • 2,548
0 votes
1 answer
91 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 ...
CigarDoug's user avatar
  • 1,063
0 votes
1 answer
269 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 ...
ameliapond's user avatar
0 votes
2 answers
3k 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....
SandeshR's user avatar
  • 1,992
0 votes
3 answers
321 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. ...
Nderon Hyseni's user avatar
0 votes
2 answers
204 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 ...
SandeshR's user avatar
  • 1,992
1 vote
5 answers
3k 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/...
ameliapond's user avatar
0 votes
3 answers
30 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?
Pravin's user avatar
  • 379
1 vote
1 answer
485 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 ...
Revenant_01's user avatar
1 vote
1 answer
611 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 ...
christopher clark's user avatar
2 votes
0 answers
99 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 ...
Nderon Hyseni's user avatar
0 votes
1 answer
107 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! }
Nderon Hyseni's user avatar
1 vote
1 answer
70 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. ...
ethesx's user avatar
  • 143
3 votes
3 answers
5k 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 ...
Nderon Hyseni's user avatar
5 votes
1 answer
3k 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 ...
Nderon Hyseni's user avatar
0 votes
0 answers
351 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 ...
Nderon Hyseni's user avatar
0 votes
0 answers
116 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 ...
CigarDoug's user avatar
  • 1,063
2 votes
1 answer
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 "...
CigarDoug's user avatar
  • 1,063
1 vote
1 answer
30 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 ...
samolpp2's user avatar
  • 3,530
1 vote
0 answers
188 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 ...
user49302's user avatar

1
2 3 4 5