Skip to content

X Posts

Visual Studio 2019 and Sitecore (Troubleshooting) error MSB4036: The “GetReferenceNearestTargetFrameworkTask” task was not found

I have a Sitecore solution built for 2017 but just recently got a fresh computer with only Visual Studio 2019 on it. So I’ve been running through some problems.

This was the error I was getting while running gulp to build the solution. I had installed the VS 2017 build tools earlier. Looks like you need to install the NuGet items as well.

C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\amd64\Microsoft.Common.CurrentVersion.targets(1657,5): error MSB4036: The “GetReferenceNearestTargetFrameworkTask” task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is “public” and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the “C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\amd64” directory

Caddyfile Example (directory listing and basicauth)

 

Disable and Enable SQL Jobs

Quick to disable and enable all SQL jobs on your server

Duplicati on Ubuntu 16.04 – Headless

Install Mono
https://www.mono-project.com/download/stable/#download-lin-ubuntu

sudo apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
sudo apt install apt-transport-https ca-certificates
echo “deb https://download.mono-project.com/repo/ubuntu stable-xenial main” | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update

sudo apt install mono-devel

Install Duplicati
wget https://updates.duplicati.com/beta/duplicati_2.0.5.1-1_all.deb
apt install ./duplicati_2.0.5.1-1_all.deb

To Test
duplicati-server –webservice-interface=any –webservice-port=8200 –webservice-allowed-hostnames=*

Modify the following file, /etc/default/duplicati, to allow access for any IP
DAEMON_OPTS=”–webservice-interface=any –webservice-port=8200 –webservice-allowed-hostnames=*”

Add the following as /etc/systemd/system/duplicati.service
[Unit]
Description=Duplicati web-server
After=network.target

[Service]
EnvironmentFile=-/etc/default/duplicati
ExecStart=/usr/bin/duplicati-server $DAEMON_OPTS

[Install]
WantedBy=multi-user.target

To enable duplicati
systemctl enable duplicati

Check if the service is now running
systemctl status duplicati.service

If its not, try the following then check the status again
systemctl start duplicati.service

WordPress Error – The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

WordPress was installed on a windows machine and recently started getting this error. Seems that the web.config was modified.

To fix the error above I updated the web.config to look like this and it fixed the problem.

Pi-hole static DNS entry

This is more docker related but should be similar to just a plain jane install. You can add your static entries to the /etc/hosts file or you can add it the the dnsmasq.d configuration file.

Create a file under /etc/dnsmasq.d, something like myhosts.conf and add the following. Keep adding entries until your done.

host-record=hostname.com,192.168.1.1

Find your pi-hole dns configuration under /etc/dnsmasq.d. Open the file and add the following line to end of your the configuration file.

conf-file= /etc/dnsmasq.d/ myhosts .conf

Go back to the pi-hole GUI and restart the DNS under settings/system “restart DNS resolver”.

Windows Server 2016 Standard Evaluation – “This Edition Cannot Be Upgraded”

I got this error when trying to enter a product key via the GUI, “This Edition Cannot Be Upgraded”. Not sure why. However, I was able to run the following command via command prompt to activate my product key. It does take about 5 minutes to complete the process then your asked to reboot.

UNRAID – Increase Storage for Windows 10 VM

  1. Go to your UNRAID GUI
  2. Click on VMs
  3. Make sure the VM you want to make the modifications to is stopped
  4. Click the Name of the VM
  5. Disk devices should display
  6. Under capacity there should be links to the drive you want to add space too, click that link and enter the new capacity. Hit Enter.
  7. Start the VM
  8. Now reboot the VM (this is necessary for it to find the new space available – not sure why)
  9. Log in to your Windows VM
  10. Open Computer Management
  11. Go to Disk Management
  12. You can now expand the partition to its capacity

Sitecore Fix – XConnect/Xdb – The certificate was not found

Was getting this error continuly on a setup we had. Somehow the certificate thumbprint was not the same as the XConnect web application thumbprint.

The fix was to verify that the certificate thumbprint matched what the XConnect application was expecting.

To fix the problem

My Setup: Sitecore 9+, Windows 10 Pro

  • Find your XConnect Client certificate
    • Open MMC, click Add/Remove Snap-In
    • Choose Certificates from available snap-ins and click Add
    • In the next window select “Computer Account”, click next
      • If you don’t see “Computer Account”, you might have to open MMC with Administrator privileges
    • Select Local Computer
    • Click Finish, then OK
    • Navigate to Certificates (Local Computer) -> Personal -> Certificates
    • Double click your XConnect Client certificate
    • Click on the “Details” tab in the certificate window
    • Scroll down in the Field list to Thumbprint
  • Verify that XConnect Client certificate Thumbprint with your XConnect AppSettings.config file located under App_Config in your XConnect website location
    • Verify with this field validateCertificateThumbprint. They should match. If it does not, try and update it with the thumbprint from the XConnect Client Certificate.
    • If updating, restart you XConnect web app after you’ve made the changes

Sitecore Fix – XConnect/Xdb Unauthorized Error

Was getting the error above during our SSO process. The solution for me was changing the SSL settings in IIS for the xconnect website from Ignore to Accept.

Unraid 6.7 – Backing up VMs (KVM)

This is short summary of Spaceinvader One’s video and a little more up to date. https://www.youtube.com/watch?v=ntjQphOSPPI

  1. Install Community Applications, if not already installed
    1. Forum with more information –
      https://forums.unraid.net/topic/38582-plug-in-community-applications/
    2. Direct Link to the plugin – https://raw.githubusercontent.com/Squidly271/community.applications/master/plugins/community.applications.plg
  2. Install CA User Scripts from Community Applications
  3. After its installed, click Settings in the top nav bar of UNRAID
  4. Go down to User Utilities, click on User Scripts
  5. Click Add New Script
  6. Call the script whatever you want, i.e. “Backup VMs”. Click ok.
  7. Click the title of the script you just added, you should see a popup.
  8. Edit Description if you’d like
  9. Click Edit Script and paste everything from this page
    https://raw.githubusercontent.com/danioj/unraid-autovmbackup/master/unraid-autovmbackup-0-4.sh to that window
  10. Follow the instructions in the file or in the video to set up the script

I’m using UNRAID 6.7.0, CA User Scripts 2019.06.16

EdgeOSv1.10.6 – EdgeMax (EdgeRouter) no disk space on router

  • SSH into your router
  • run the following commands to display diskspace and diskspace taken by the firmware

  • delete backup images, answer yes to continue

https://help.ubnt.com/hc/en-us/articles/205146110-EdgeRouter-Upgrading-EdgeOS-firmware

EdgeOSv1.10.6 – EdgeMax (EdgeRouter) installing vnstat to record bandwidth usage

I wanted to record how much bandwidth is being used during the month. I found these instructions to install vnstat, a traffic monitor.

  • open a ssh connection to your router
    • the credentials are the same that you use in the web admin portal
  • run the following lines to add the debian repo
  • update cache
    • sudo apt-get update
  • install vnstat
    • sudo apt-get install -y vnstat vnstati
      • vnstati is a tool that creates images off of the data
  • run vnstat
  • run this line to allow vnstat to start after reboot

More info can be found here: