IIS 7 : HTTP 500 Internal Server Error/Machine.Config Files

I recently ran into an issue while assisting my company’s web developers with a site that would not load. The general error was HTTP 500 Internal Server Error.

The site in question, had recently been copied from a staging server to a production server. While it worked in staging, it did not load in production. I logged into the production server to get more detailed information by loading the page in IE. IE threw the following message:

2015-11-12 15_46_03-10.164.1.62 - Remote Desktop Connection

This particular site runs on Server 2008 and the application was built for ASP.net 1.1. After doing some research and thanks to http://www.iis.net I found the answer. It was determined that the machine.config files did match up in staging and production.

Per IIS.net —

ASP.NET v1.1 will throw runtime exceptions out of the box if you have IIS configuration in the web.config files that are read by your ASP.NET v1.1 applications. To make ASP.NET v1.1 ignore IIS configuration sections, open the Framework v1.1 machine.config file (%windir%\Microsoft.NET\Framework\v1.1.4322\config\machine.config) and add the following section entry just above the bottom tag for the element:

<section name=”system.webServer” type=”System.Configuration.IgnoreSectionHandler,
System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089″ />

I added the aforementioned line to my machine.config file (C:\Windows\Microsoft.Net\Framework\v1.1.4322\Config) in production, the site now loads. Lesson learned. Always verify the machine.config files in both locations.

Advertisements

Lync/Skype for Business Certificate Error

File this under tips and tricks:

You are an Office 365 subscriber and trying to launch the Lync or Skype for Business client application. When attempting to login you receive the following error…

This happens due to server authentication failure. But you can set the server settings manually. Go to Tools -> Options -> Personal -> Select Manual Configuration -> Enter: sipdir.online.lync.com:443 -> Click OK -> Click OK on the Options window.

Go back to the login screen and enter your credentials. Usually this is your email address.

Now you should be able to successfully login.

If you still encounter issues, try using the Microsoft Remote Connectivity Analyzer.

https://testconnectivity.microsoft.com/?tabid=o365

Windows 2012R2 – Interactive Services Detection Error: Incorrect Function

Today’s head scratcher? I encountered this error today when trying to restart a service on Windows Server 2012 R2. The service, which controls an application licensing feature, triggered the error:

The Interactive Services Detection service terminated with the following error: Incorrect function.

Huh. The fix? Open the registry. Browse to HKLM -> System -> CurrentControlSet ->Control -> Windows -> NoInteractiveServices. Change the DWORD value for NoInteractiveServices from 1 to 0. Try restarting the service that depends on Interactive Services Detection. You should be successful.

MySQL Error – “The partition with /var/lib/mysql is too full”

Have you encountered this error when trying to start MySQL on your Linux server? Turns out all you need to do is sudo.

Initially, I used this to start MySQL server: /etc/init.d/mysql  start

I encountered the error: “The partition with /var/lib/mysql is too full”

Then I put sudo in from of my statement : sudo /etc/init.d/mysql start

MySQL starts successfully.

Issues installing Windows 8 due to GPT partition style error

We recently received a new Lenovo Carbon X1 Touch to setup for an employee. It arrived with the Home version of Windows 8 installed, so we proceeded to install Windows 8 Enterprise. First of all, if you haven’t seen the new Carbon X1 Touch, it is a beautiful, slim, touchscreen laptop. But it does not have a built in NIC card. You have to attach an ethernet dongle if you want to be hard-wired in to your network. This device does not allow for booting up to our Microsoft Deployment server. There is an additional driver required in order to do this. So, we decided to install the OS via USB. I created a bootable Windows 8 USB stick (Using ISO to USB; http://www.isotousb.com) and booted from the USB.

All seemed well until it came time to choose the partition on which to install Windows. I chose the OS partition and received this error:

“Windows cannot be installed on this disk. The selected disk is part of the GPT partition style.”

I started troubleshooting by choosing to format the OS partition. That did not work as I received the same error message. So what to do but start from scratch. I delete all of the other existing partitions, formatted again and attempted to install the OS. This did not work either: 

I rebooted, chose Repair at the initial install screen, and opened the command prompt. I ran the following diskpart commands: 

 

  1. diskpart
  2. list disk
  3. select disk “x” (this is the disk on which you want to install Windows)
  4. clean
  5. create partition primary
  6. active
  7. format fs = ntfs quick
  8. assign
  9. exit

I rebooted and started the installation again. I chose the partition I needed and was able to install Windows 8. If you run into this error, just perform the diskpart steps above. That should resolve the issue.