Skype for Business – Cannot sign in because the server is temporarily unavailable

An issue was reported to me recently where a user was unable to login to Skype for Business / Lync.

The steps attempted to diagnose this issue were as detailed below.

  • Attempted to login with my Skype for Business user account (fail)
  • Run Skype for Business as my user (success)
  • Run Skype for Business as Administrator (success)
  • Try another computer as that user (fail)

The user was logged into a computer on a domain where AD FS is configured for Office 365 and attempting to authenticate against a different organisations Skype for Business tennant.

After endless troubleshooting, I discovered a blog post with someone having the same issue and documenting a fix.

In my situation, as the user was using Microsoft Office 2016, the resolution was to open regedit and create the following entry.

HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\16.0\Lync

Name: DisableNTCredentials  Type: REGDWORD Value:1

I hope this helps someone somewhere!

WordPress URL Rewrite Issues in IIS

This issue occurs every time I set up WordPress with Permalinks and URL Rewrite. So I am going to post a quick fix.

When images are uploaded to WordPress and an attempt to access the image directly is made, the image does not download and instead returns an error 500.

There are two solutions which I have discovered for this and I shall share with you both.

Solution 1

If you have administrator access to your web server, look for the location of the temp folder in PHP.ini. By default this points to C:\Windows\Temp\. You will need to give your application pool account modify access to this folder. After doing so, you may need to re-upload the images causing you problems.

Solution 2

If you do not have administrator access to your web server, you will need to carry out the following steps

  1. Create a new folder under your WordPress installation directory
  2. Modify the permissions to match your wp-content folder
  3. Add the following line to your wp-config.php file
    • define(‘WP_TEMP_DIR’,‘C:\websites\wordpress\temp\’);
  4. Replace C:\websites\wordpress\temp\ with the full path of the folder you just created.

 

This solution may also apply to Linux servers, however I have not tested it myself.

 

Hello world!

Welcome to my blog. This blog is a mixture of my own personal knowledge base and things I would like to share with the world. Therefore there may be duplicates of things already posted online.

This blog has been through numerous releases and versions over the past 5 years or so and I don’t feel that anything which was previously was worth migrating across to my new server.

Enjoy the read, hopefully you will find something on here that will be relevant to you in some way or another.

Louis