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 ...
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 ...
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 ...
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 ...
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 ...
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.
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 ...
2
votes
Accepted
Can't find Sharepoint timerjob service among process to attach
Check Show processes from all users
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, ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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";
...
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.
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).
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 ...
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/">
</...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
visual-studio-2012 × 2502013 × 92
workflow × 41
sharepoint-enterprise × 36
development × 33
sharepoint-server × 29
2010 × 26
visual-web-part × 22
sharepoint-addin × 14
visual-studio × 14
sharepoint-online × 13
sharepoint-foundation × 13
solution-deployment × 12
workflow-activity × 11
web-part × 10
solution-package × 10
visual-studio-2013 × 10
javascript × 9
deployment × 9
sharepoint-designer × 7
event-receivers × 7
user-controls × 7
permissions × 6
infopath × 6
content-type × 5