Debugging feature activation in SP2013 - sharepoint

I have one feature in my solution and when I try to activate the feature using Install-SPFeature, I get following error-
Install-SPFeature : Failed to find the XML file at location
'15\Template\Features\SPFeatureDefinition
Name=FeatureDefinition\15\077954c2-4663-429b-9b27-70afd873b161\feature.xml'
Feature is already deployed at \15\TEMPLATE\FEATURES
Moreover, all the virtual directories points to 14 instead of 15 for SP 2013, and 14 instead of 16 for SP2019.

Related

Issue in Distributed Cache Service in SharePoint 2019

I am having SharePoint 2019 high availability environment wherein Distributed Cache is up & running on WFE1. However, when I am running the Configuration Wizard in WFE2, its failing with the error message - Configuration Wizard failed with error 'CacheHostInfo is null'.
I tried multiple PowerShell commands on WFE2 and referred below articles, however issue still persists.
enter link description here
enter link description here

Missing Dictionaries on Kentico 13

I followed a default process to install kentico 13 ASP.NET CORE locally, selected a new site. Then upgraded to 13.0.5. Everything compiled fine and worked as expected. When I tried to deploy the CMSApp project to azure using visual studio, I got this error.
Error Copying file App_Data\Dictionaries\en-GB.dic to
obj\Release\Package\PackageTmp\App_Data\Dictionaries\en-GB.dic failed.
Could not find file 'App_Data\Dictionaries\en-GB.dic'.
Why there are missing dictionaries, I had to pull the missing files from an old Kentico 11 project but, was it something missing during the installation? or could it be a bug?
Is there a way to ignore it?
App_Data-> Dictionaries just had:
en-US.dic
I am pretty sure by default Kentico Xperience only comes with en-US dictionary included.
This is the default culture.
If you need other cultures (like en-GB) then you need to download them from here and include them in your project.
Did you add a reference to App_Data\Dictionaries\en-GB.dic yourself? If you don't need it you could remove it from CMSApp.csproj.

Azcopy psts getting error 404 attempting to upload

I have been struggling to get pst files uploaded to my azure storage. I have talked with Microsoft support on the phone, at length, and it just feels like guesswork from their end so I thought I would try here.
I have the Office 365 business essentials package. The domain that the current Exchange 2010 Server is on is a .local domain, so I am abandoning it in favor of our new .com domain. I already have O365 configured with the new domain. We only have 15 users so I figured pst files would be the simplest way to do it. This is also my first time using Office 365 and Azure so I have been attempting to follow MS procedures wherever possible.
The issue is whenever I run the azcopy.exe command with my parameters, I get an error 404 not found. Here is the command I am using (I’ve changed a few elements of this command in case I accidentally give away any personal data.):
azcopy.exe /source:C:\psts /Dest:"https://f47hr7hfh74hf4747fh74fh74.blob.core.windows.net/ingestiondata?sv=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
randomnumbersletteretc" /V:c:\365uplog\log1.txt
Here is the resulting error:
Error parsing destination location "https://f47hr7hfh74hf4747fh74fh74.blob.core.windows.net/ingestiondata":
Failed to validate destination: One or more errors occurred. The
remote server returned an error: (404) Not Found. The specified
resource does not exist.
I just had the same issue! I uninstalled the new version and reinstalled from an older version of the AZcopy tool "MicrosoftAzureStorageTools.msi" and it is now working correctly. It looks like an issue with the new client.
Version 5.0.0 works and 5.1.0 looks to be having issues.

Missing server side dependencies

I am getting an alert in Sharepoint Central Admin that The SharePoint Health Analyzer has detected some critical issues.
On checking, I found the alerts like:
[MissingSetupFile] File [Features\xxxx\xxxx\xxx] is referenced 1 times in the database [PROD01_Content_xxxx], but exists only under Microsoft SharePoint Foundation 2010 setup folder. Consider upgrading the feature/solution which contains this file to the latest version. One or more setup files are referenced in the database [PROD01_Content_xxxx], but are not installed on the current farm. Please install any feature or solution which contains these files.
[MissingFeature] Database [PROD01_Content_xxxx] has reference(s) to a missing feature: Id = [f99f774c-6160-4bb6-8519-10e30b02d5b3]. The feature with Id f99f774c-6160-4bb6-8519-10e30b02d5b3 is referenced in the database [PROD01_Content_xxxx], but is not installed on the current farm. The missing feature may cause upgrade to fail. Please install any solution which contains the feature and restart upgrade if necessary.
[MissingWebPart] WebPart class [a9bc1035-cf56-e003-8a4d-fff0bb3da148] (class [Microsoft.Office.Server.Search.WebControls.SearchApplicationSystemStatus] from assembly [Microsoft.Office.Server.Search, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c]) is referenced 1 times in the database [PROD01_SharePoint_AdminContent], but is not installed on the current farm. Please install any feature/solution which contains this web part. One or more web parts are referenced in the database [PROD01_SharePoint_AdminContent], but are not installed on the current farm. Please install any feature or solution which contains these web parts.
I followed the link:
http://get-spscripts.com/2011/06/removing-features-from-content-database.html
But unfortunately, on running the script, it shows the feature does not found.
One thing I would like to mention is: I've deployed the sharepoint 2010 wsp on 2013 version.Is this the reason for getting [MissingSetupFile] error?
What can I do? Any help will be appreciated.
Thanks,
Pay attention to the first message that says "but exists only under Microsoft SharePoint Foundation 2010 setup folder" . This means that you have deployed a 2010 solution into a 2013 farm. But is only installed to 14 hive. for the solution to work properly in the 2013 farm, it needs to be installed to the 15 hive also.
Here is the PowerShell that installs to both 14 and 15 hive.
Install-SPSolution -Identity 'your custom solution.wsp' -GACDeployment -CompatibilityLevel {14,15} -AllWebApplications –force
The link below provides the solution.
Worked for me.
http://sharepointsoldiers.wordpress.com/2013/04/22/sharepoint-2013missing-serverside-dependencies/

Feature Activation Error(Cannot Add Dll to GAC)

we have created a feature ,which have got 2 application pages. one is to activate the user control and the other one is for database configuration,for the database configuration the user have to give the .mdf and .ldf files to restore the database. For the restoration of database we have used microsoft.sqlserver.replication.dll, the feature is working fine, but when we deploy it on any other machine, at the time of activation it gives error, and the error is:
Error: Cannot add the specified assembly to the global assembly cache: Microsoft.SqlServer.Replication.dll.
The feature is working fine with windows server 2008 but its giving the mention error with windows server 2003 .. any idea?
Does anyone know how to solve this?
Thanks
SAAD

Resources