I’m running a website on IIS8.5, but it gives me only a blank page and the following error in the IIS logs: status error 500 and sc-substatus 19
There is not much documentation on this error, the Microsoft website has a list with errors, with only the description: “Configuration data is invalid”. There is more detailed information here, but I didn’t get any Hresult codes.
After searching for clues, I finally found the solution: in IIS Manager, under the Server name → Feature delegation the IP Address and Domain Restrictions was set to readonly. This must be set to read/write in order to be able to get it working in the web.config. The same holds for the Handler Mappings in the web.config.
On Windows Server 2012 the SMTP Server is deprecated, but you can still install it using the Add Roles and Features Wizard in the Server Manager.
Lately we received this error:
System.Net.Mail.SmtpException: Exceeded storage allocation. The server response was: 4.3.1 Session size exceeds fixed maximum session size
at System.Net.Mail.DataStopCommand.CheckResponse(SmtpStatusCode statusCode, String serverResponse)
at System.Net.Mail.DataStopCommand.Send(SmtpConnection conn)
at System.Net.Mail.SmtpConnection.OnClose(Object sender, EventArgs args)
at System.Net.Mail.SmtpClient.Send(MailMessage message)
It turned out the attachment size was to big for the SMTP Server. You can change these settings the same way as in Windows Server 2012. Use the Windows Server 2012 Search charm to find the IIS 6.0 Manager. On the tab “messages” you can change the Limit message size.
In earlier versions of ActivePerl you had to configure IIS yourself. The newer version comes with a “ap-iis-config.bat” file to configure IIS automatically.
To install Perl on a Windows 8.1 machine with IIS8.5:
- Download latest version on: ActiveState.com.
I’ve used the Perl 22.214.171.1240 64-bit version for windows
- Run the installation and use the default C:\Perl64 folder.
- Run Command Prompt (admin) under Windows start (Windows-key + x) and go to: C:\Perl64\bin
- run “ap-iis-config.bat” to make IIS8.5 Perl compatible
- run “iisreset” to reset IIS and Perl is now active.
To make sure Perl is active you can go to IIS and click on the Handler Mappings feature. There you should find the Perl CGI for .pl handler with these settings:
Some users get this error message while running the ap-iis-config.bat file:
Use of uninitialized value $path in -f at ap-iis-config line 358.
The installation still seems to work though.