Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more
4 votes

the name 'initializecontrol' does not exist in the current context visual studio 2013

You are probably missing VisualWebpartName.ascx.c.gs file under your VisualWebpartName.ascx. Right click your VisualWebpartName.ascx and select Run Custom Tool . This will recreate .c.gs file and all ...
Ergec's user avatar
  • 485
3 votes

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

The above answer is correct or you can have another option as- Delete the .WSP files from the \bin\Debug folder and rebuild the solution. You can find the current/updated date to the WSP. Or You can ...
Ram's user avatar
  • 2,444
3 votes
Accepted

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

First off, a SharePoint solution package file is actually a cab file with a .wsp extension. If you switch the extension to .cab, you can open the file and extract the contents so you can examine if ...
Erik Perez's user avatar
  • 1,675
3 votes

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

To develop Farm Solutions (which would contain event receivers) for SharePoint 2016 you need a machine with SharePoint 2016, Visual Studio 2015, and the Microsoft Office Developer Tools Preview 2 for ...
Rob Windsor's user avatar
  • 12.7k
3 votes

Feature has already been installed. Use the force attribute to explicitly re-install the feature

I had this same issue and found that it was because of Orphaned Feature. There are chances that whenever you remove wsp from farm and redeploy it, then Feature associated with that wsp might not got ...
Vishal_chorghe's user avatar
2 votes

How to make a print button in infopath form?

If you can use Javascript, there is workaround. You can take out the content wrapper part and create a new window (or use same window) and call window print functionality. Following is the code you ...
ThinkB4Code's user avatar
  • 2,970
2 votes
Accepted

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

Found the solution... Check out the steps below: First retrieve the JSON (shown above) to a DynamicValue (i.e. ResponseDV) through an HttpSend activity. Use an GetDynamicValueProperties activity and ...
Muhammedh's user avatar
  • 1,157
2 votes

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

Delete the old .wsp file from \bin\debug\. Rebuild and Publish the solution You will get latest WSP file.
Ronak Patel's user avatar
  • 3,251
2 votes
Accepted

Can't find Sharepoint timerjob service among process to attach

Check Show processes from all users
Aashirya's user avatar
  • 1,021
1 vote

SharePoint Migration from 2013 to SharePoint Online

There are are two types of solutions (wsp) in SharePoint on-premise: Sandbox and Farm solution We used to deploy the sandbox solution to SharePoint online till the year 2016 now does not support, ...
SP 2022's user avatar
  • 4,074
1 vote
Accepted

SharePoint Migration from 2013 to SharePoint Online

Unfortunately these will have to be rewritten as they are not supported in SharePoint Online. Depending on the solution you can rewrite these as SharePoint Add-Ins or as client side solutions using ...
Rune Sperre's user avatar
  • 2,249
1 vote

Infopath with VS 2017?

One option would be to use "XmlFormView" class to embed the InfoPath form in a custom .aspx page. Then it's possible to access the values in the code behind using VS2017. The XmlFormView object and ...
Prasanna Ruwangana's user avatar
1 vote
Accepted

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

You should be aware of using Integrated Security = SSPI in your connection string will lead to using the Application pool account credentials of your SharePoint web application for authentication! So ...
Mohamed El-Qassas MVP's user avatar
1 vote
Accepted

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

First, to be able to create an Application Page in SharePoint, you should create a SharePoint Solution then add an application page that must be deployed as farm solution only. When you build your ...
Mohamed El-Qassas MVP's user avatar
1 vote

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

When you "Build" your SharePoint project only the DLL file gets updated. To get the WSP file you have to Publish the project from Visual Studio. Right-click the project and select Publish.
Arin Zandbergen's user avatar
1 vote
Accepted

Webpart stopped working after updating DLL version of VS solution

Changing the Assembly version of a DLL containing Web parts/Jobs/Workflows/Event receivers is not a good practice. All these artefacts point to the assembly, including its version number. And you ...
Evariste's user avatar
  • 9,731
1 vote

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

If you're on the page where Minimal Download Strategy (aka MDS, see here for a first definition) is used (default behavior on a Team site), then it means your control is not MDS-compatible. As soon as ...
Evariste's user avatar
  • 9,731
1 vote
Accepted

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

That is not how SharePoint works, web.config and app.config are features of web application and windows/console application respectively. Below is what I can think of as alternative. Create your ...
Siddharth Vaghasia's user avatar
1 vote

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

You can use Client object model csom c# to create custom action. Try below code: public static void AddCustomListAction(ClientContext clientContext) { string title = "Test Ribbon Action"; ...
Gautam Sheth's user avatar
  • 30.9k
1 vote
Accepted

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

Snickbrack, Please try to copy your DLL to GAC directly. You can do this manually or use some VS plugins like CKSDev or Fishbone
Roman's user avatar
  • 1,343
1 vote

How to create master page in SharePoint 2013

There is no any issue of using a different language (VB.NET) master page in SharePoint. The SharePoint Server comes with a Publishing feature as an out of the box component so that you can use its ...
Hardik's user avatar
  • 7,733
1 vote
Accepted

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

To work with server , you can't use another machine to deploy solution. You must need to login to server and develop solution there only.
Rajesh Joshi's user avatar
  • 1,344
1 vote

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

Microsoft Fakes doesn't work on VS Professional. Consider that if you are doing Unit Testing and using SPEmulators you will need to use VS Ultimate/Premium.
klewgenius's user avatar
1 vote

How to make a print button in infopath form?

You cannot use XDocument in InfoPath 2010 or later. Instead, you can use this.Print() method. This will print current page directly to default printer (unfortunately no dialog will pop up).
Etienne Samii's user avatar
1 vote

SharePoint 2013 workflow stuck in started stage

By default, the workflow doesn’t have permissions to access the list where the Workflows generally run at permission level equivalent to write. Also , The user doesn’t have Contribute permission on ...
Jihan's user avatar
  • 136
1 vote

This projects needs to be migrated?

Try to compare properties of smoothly migrated projects with properties of not migrated projects. For this - click on migrated project, right button click than choose Unload project - again right ...
Raf's user avatar
  • 1,038
1 vote

Feature has already been installed. Use the force attribute to explicitly re-install the feature

In Feature.XML add AlwaysForceInstall="TRUE" parameter <?xml version="1.0" encoding="utf-8" ?> <Feature AlwaysForceInstall="TRUE" xmlns="http://schemas.microsoft.com/sharepoint/"> </...
Aniket Gharat's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible