As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [farm-solution]

Farm solutions are packaged as SharePoint solution package (WSP) files that contain assemblies, other non-compiled components, and an XML manifest file. A farm administrator uses Windows PowerShell, the STSADM command-line tool, or the SharePoint Central Administration Web site to install solution packages to the server environment.

Filter by
Sorted by
Tagged with
0 votes
1 answer
11 views

SPWeb.WorkflowTemplates.GetTemplateByName is empty, but WorkflowTemplate is assignable in UI

Here are the Steps I've taken: Create a Workflow (Reusable 2010, Content-Type linked) on any Web, Export it as a .WSP and Deploy it to the Site Collection in question (the Feature is Web Scoped). Due ...
Saik's user avatar
  • 13
0 votes
1 answer
34 views

Creating a Group for a Subsite creates that group for the Parent Site as well

What I'm doing (abstract): A SharePoint List has an EventReceiever at which I'm accessing "ItemAdded" to create a new SPWeb for that new List Item. That subsite needs it's own set of ...
Andy Troschke's user avatar
0 votes
1 answer
18 views

Changing a Web's Url in an EventReceiver via Code

I'm building a SharePoint Farm Solution and want to know if it is possible to change a Web's URL from Code. Imagine I have a Page (http://page), that page has a list (http://page/Lists/projects). ...
Saik's user avatar
  • 13
1 vote
0 answers
18 views

Using unmanaged dlls in sharepoint farm solution

I have a SharePoint 2016 project with several application pages (farm solution). In my code, I use un-managed dlls with DllImport attribute. To use them, I copy these dlls to System32 folder. Is ...
vombat jack's user avatar
0 votes
1 answer
24 views

SP19 - Site Collection Features - shows all features across all collections

We have a new Sp19 installation with 4 different web applications with 1 site collection each. We deployed then some farm solutions to the specific sites. When I open the list of Site Collection ...
Sebastian G.'s user avatar
1 vote
1 answer
41 views

Deploying Event Reciever

I Know that event receiver should be deployed as a sandbox solution. But what if I deploy it as a farm solution. Is there any negative impact or not.
Arwa's user avatar
  • 135
3 votes
1 answer
116 views

How making changes to a third-party solution file.wsp

I have a third-party solution "file.wsp" that I don’t have the source code for it, I want to make a change to it, how can I tell it to tell me articles and examples? Thanks to all.
Mikhail Zhuikov's user avatar
0 votes
1 answer
242 views

SPWeb object properties turn to "null reference exception"

I am currently working a Farm Solution that is supposed to work with SharePoint 2016 and I am facing something that I can't understand. Maybe someone could explain this phenomenon or point what I am ...
Lancelot's user avatar
  • 175
0 votes
1 answer
102 views

SharePoint Version Upgrades - Are these farm solutions still viable?

I'm upgrading our SharePoint environment, and was just going over over the farm solutions. The past administrators simply added solutions from past versions "Just in case" but I can't find what some ...
KGlasier's user avatar
  • 1,745
2 votes
0 answers
235 views

Sharepoint 2016 - Subsite creation - There is no memory

I have a problem with SharePoint 2016 that I am struggling with. I cannot find the reason why, but when I try to create a subsite, I always get the following error: There is no memory on the server ...
Lancelot's user avatar
  • 175
3 votes
1 answer
1k views

Anybody tried Farm solution in SharePoint 2019 on-premise?

It is about SharePoint 2019 Preview (on-premise, server edition, not Online) Internet says that code-based sandboxed solutions are deprecated. But I can't see anything about farm(full-trusted) ...
Gennady G's user avatar
  • 1,613
0 votes
2 answers
766 views

Powershell script to deploy/move a wsp/solution file from local drive to SharePoint 2016

I am new to an On-Prem environment. I am trying to automate the deploying or moving of Farm based solution and wsp packages from a local drive to SharePoint 2016 site collection. I am a newbie to ...
AXA240778's user avatar
  • 489
1 vote
0 answers
101 views

How to find out if a solution is deployad with -FullTrustBinDeployment parameter

I am trying to find a piece of PowerShell script that gives me the list of solutions deployed with FullTrustBinDeployment parameter.
Aslan's user avatar
  • 522
1 vote
0 answers
42 views

Can i convert a .XLSX file to a PDF inside my server side event receiver

I am working on developing an Event Receiver inside my SharePoint farm 2013. now inside my event receiver i am trying to do the following:- to copy a .xlsx file from a document library. add the file ...
John John's user avatar
0 votes
1 answer
182 views

Can i get my Event Receiver source code from a WSP file

I was working on a sharepoint 2013 farm solution to implement an event receiver inside visual studio 2012 professional. now when i try to build/run the project i got an error that there is not space ...
John John's user avatar
-1 votes
1 answer
95 views

How i can get the Label for a managed metadata single value column inside my event receiver

I am working on building a server-side event receiver for SharePoint on-premises 2013. now I have a single value managed metadata column named "OrderCustomerName", and I want to get the term Label, as ...
John John's user avatar
4 votes
4 answers
10k views

EnsureUser() will return the following error "The specified user could not be found. "

I am working on developing a server side event receiver inside sharepoint on-premises farm 2013. Inside the code i have the following, which will retrieve a string from a drop down list column ...
John John's user avatar
1 vote
2 answers
225 views

Unable to copy/paste a file between 2 document libraries using c#. Error "The URL is invalid."

I have the following code inside my Event Receiver, to copy a file from a document library named "Templates" to a sub-folder inside our "Shared documents" library SPDocumentLibrary template = (...
John John's user avatar
-1 votes
1 answer
129 views

Why hidden fields will always be null inside my ItemUpdated Event receiver , if i checked them using properties.AfterProperties

I am working on a SharePoint 2013 on-premises farm. and i have added an ItemUpdated event receiver for my custom list, as follow:- public override void ItemUpdated(SPItemEventProperties properties) ...
John John's user avatar
6 votes
1 answer
775 views

How to resolve "Your search cannot be completed because no Search service is available. Contact your administrator for more information."?

I am working with SP2016 Farm solution. I have configured a Search Service on my farm, customized the result source too. When I use the result source in Content Search WebPart on SharePoint Page, it ...
Aakash Maurya's user avatar
2 votes
1 answer
259 views

SharePoint 2013 solution deployment stuck with Not having access to DB

While installing the solution on production it was stuck there for longer time. When ran the stsadm -o enumdeployments command, it is giving me following error <State>Pending</State>...
Mihir's user avatar
  • 1,546
1 vote
1 answer
189 views

Install new developed features into Sharepoint 2013 production

I've restored a backup from my Intranet production environment into development environment, which I got some errors related to pages layouts. I can ignore this at this time, but my issue is how to ...
Naoufel El ABBASSI's user avatar
0 votes
1 answer
91 views

Problems deploying farm-solution

After doing the solution retract and removed, I ran the command --> Add-SPSolution -LiteralPath 'pathSolution.wsp' However, when I access the 'Manage farm solutions' page, there is no solution for me ...
Xablau Developer's user avatar
1 vote
1 answer
14 views

SharePoint App communcation

Currently in the development of a SharePoint farm solution for my company. I am questioning the decision of a farm solution and I would like some input. A summary of the custom application: Custom ...
Ryan McGuirk's user avatar
2 votes
2 answers
431 views

unable to get all the term sets under a term group inside my event receiver

I am developing an ItemUpdated event receiver inside my on-premises farm 2013. and inside my event receiver i want to get all the term sets under a term group. so i define the following :- using (...
John John's user avatar
1 vote
1 answer
90 views

how i can set the "Allow this site to appear in search results?" for a site to be equal to No inside my event receiver

I am working on an item updated event receiver, and i want to set the "Allow this site to appear in search results?" for a site to No. now using the UI i can set it as follow:- but i am note sure how ...
John John's user avatar
0 votes
1 answer
651 views

How to call external REST queries in SharePoint 2013 farm solution

Is there a way to call external REST api in SharePoint wsp? I am having REST api to particular site from where I have to bring the data. I know that we can call in javascript easily by using SP.Proxy (...
Mihir's user avatar
  • 1,546
2 votes
1 answer
112 views

Feature in SharePoint farm solution not showing web part items

I have created a farm solution and added existing SharePoint items like Columns, CT, Event Receivers, Web parts. While adding items to features(created manually) I can get site columns, CT, Event ...
user27178's user avatar
  • 372
2 votes
1 answer
233 views

Transition to Add-in & SharePoint Framework

Taking the case of a company which works on SharePoint since a while and have engineers trained to develop full-trust solutions. So, they develop full-trust solutions to add functionalities to its ...
Pierre-Louis Ollivier's user avatar
1 vote
2 answers
312 views

Unable to hide a list column inside the list content type inside my event receiver

I have the following ItemUpdated event receiver inside my sharepoint farm 2013. now inside my itemupdated event receiver i am creating a new sub-site, then inside a list titled "Risk & Issue", i ...
John John's user avatar
1 vote
1 answer
1k views

Cannot deploy farm solution retract solution and feature not installed

I'm having some trouble for deploy a farm solution from Visual Studio 2012 Ultimate: The error says: Error occurred in deployment step 'Retract Solution': Object reference not set to an instance ...
Mauricio Arias Olave's user avatar
3 votes
1 answer
110 views

Future of Farm Solutions for Sharepoint

As per the new MS article about phasing out of SandBox solution and moving on to APP only solution, what is the future of Farm solution. As per the below article - https://technet.microsoft.com/en-...
rohansharma19's user avatar
0 votes
1 answer
291 views

Visual Studio 2013 cant connect to sharepoint site, on same server

i have a problem, sorry for my english. I have a virtual server where I have installed SharePoint 2013 Enterprise, SQL Server 2012 R2 and Visual Studio 2013. When opening visual studio 2013 and ...
Ariel Ignacio's user avatar
1 vote
1 answer
821 views

Returning an error message inside my event receiver using "SPEventReceiverStatus.CancelWithError;" will redirect to "Server Error in '/' Application."

I am working on a team site inside my SharePoint server 2013 on-premise. Now I have two lists: one list is based on the built-in "Issue Tracking" list template. the other list is based on the built-...
John John's user avatar
0 votes
0 answers
60 views

Event recevier will fire twice when i create a list based on another list template [duplicate]

I am facing is strange behavior inside my sharepoint 2013 on-premise farm. here is my problem:- i have created a custom list , and i added many site columns to it . i name the list "Projects". i ...
John John's user avatar
0 votes
2 answers
190 views

Can i apply JSLINK to my WebPart inside my Event Receiver

I have an event receiver which get fired when and item is create. the event receiver will create a new sub-site based on a site template. here is part of the code which is responsible for creating the ...
John John's user avatar
0 votes
1 answer
113 views

Error when Deactivating Farm Feature - Failed to load receiver assembly

I have a farm feature that was updated by PowerShell with the following: Update-SPSolution -Identity FILE.wsp -LiteralPath "PATH\TO\FILE.wsp" –GACDeployment I'm trying to deactivate and then ...
NMJohns's user avatar
  • 43
0 votes
1 answer
393 views

Unable to use LocalCustomProperties["_Sys_Nav_TargetUrl"] inside my event receiver . Exception "The given key was not present in the dictionary. "

I am working on an Enterprise wiki site collection inside SharePoint Server 2016. and i wrote the following event receiver which get fired when an item is updated, here is part of my event receiver ...
John John's user avatar
0 votes
2 answers
289 views

If i have an Event Receiver inside my SharePoint 2013 ,, is it suppose to work in sharepoint 2016 as-is

I am created many Event Receivers inside SharePoint server on-premise 2013. using the following technologies: visual studio 2012. the event receivers mainly got executed when list items are updated, ...
John John's user avatar
1 vote
1 answer
526 views

SharePoint Solution Deployment Error: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information

Team, I am using Visual Studio Enterprise (2015) Version-14.0.25420.1, Office Developer Tools latest preview is installed. When I am trying to Build a SharePoint 2016 Empty Project, it Builds ...
John Zachariah's user avatar
2 votes
1 answer
1k views

How to move C# wsp from SharePoint 2010 to SharePoint Online

I want to migrate a SharePoint 2010 .WSP (developed in C#) solution in Farm Basis to SharePoint Online. Please advice how to do this. I know in SP online Site Setting --> Solution we can upload the ...
user3760253's user avatar
3 votes
0 answers
202 views

Why should we set Scope to 'Web Application' in Timer Job?

Though we are activating feature from web application still web(sub site) or site collection comes under the Web Application scope , what is specific reason to select scope as "Web Application" Thanks....
Bhushan Gharat's user avatar
1 vote
1 answer
703 views

Difference between Elements.xml and Schema.xml

Let's say I have following elements in my solution: Site Column: <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <Field ...
LeonidasFett's user avatar
0 votes
1 answer
81 views

Activating Site Template programmatically

I'm deploying a custom Site Template (wsp) through Visual Studio with the code shown below: <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <Module Name="IRBaseTemplate" List="...
Michael Colbs's user avatar
7 votes
1 answer
2k views

Difference between Farm solutions and Provider-hosted Apps

I have been reading quite a lot about SharePoint 2013/2016 lately and I am not sure I am able to see the difference between Farm Solutions and Provider Hosted App. Please correct me if I am wrong: ...
Guigui's user avatar
  • 203
1 vote
0 answers
327 views

SharePoint WSP slow deploy time from Visual Studio

I have a fairly large solution divided on 24 SharePoint projects in order to reduce deploy time during development. However, even with this careful architecture (being careful not to put too many ...
Slaven Semper's user avatar
0 votes
1 answer
208 views

An Event from TaxonomyHiddenList will be fired inside my Item Added Event receiver

I am working on an item added event receiver. the event receiver will fire when an item inside a generic list is added, and it is scoped at the web level. here is the elements.xml file:- <?xml ...
John John's user avatar
3 votes
0 answers
46 views

Changing calender view with month scope sp2013

I want to change the calender view to a week view. I know the default way through the webpart setting. But the week view scope is to big. Is it possible to get just one part of the month view like in ...
narc0's user avatar
  • 31
-1 votes
1 answer
105 views

How i can get the current PublishingSite & PublishingWeb from SPItemEventProperties inside my Event Recevier

I have an publishing site collection using the enterprise wiki site collection template inside my sharepoint server 2013. And inside the root site of my site collection i added a custom list named "...
John John's user avatar
0 votes
1 answer
32 views

incorrect documentation about the SPItemEventProperties.OpenWeb() method inside visual studio 2012

I have the following event receiver which will get fired when a custom list item is created, and the event receiver is scoped at the site level.:- public override void ItemAdded(...
John John's user avatar