Skip to main content
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

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
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

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

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
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,261
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,980
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,114
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
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
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

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

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