IIS and Web Servers
WAS Service Won't Start
Gravatar is a globally recognized avatar based on your email address. WAS Service Won't Start
  Steve
  All
  Sep 6, 2023 @ 04:49am

Hi All,
I am trying to get back to a WWWC Project. I noticed the Web Services on my Win10 Pro dev box are not running. When I try to start Windows Process Activation Service, I get Error: 13 The data is invalid.

A little digging pointed me to the applicationHost.config file. Every backup of this file gives the same error. It's probably been almost two years since I did anything with web stuff on this dev box and Web Services was working back then. No idea what may have changed.

Is there a way to re-generate applicationHost.config or will I need to uninstall and re-install IIS?

TIA,
Steve

Gravatar is a globally recognized avatar based on your email address. re: WAS Service Won't Start
  Rick Strahl
  Steve
  Sep 6, 2023 @ 06:33am

Do you have IIS installed? WAS is just the Windows Web Hosting services that monitors IIS as well as the core HTTP.sys layer. It's not enough to run a Web site - you also need to IIS installed (World Wide Web Publishing Service).

Best way to install IIS and all the pieces you need with Web Connection is to run the Install-IIS-Features.ps1 Powershell script which will install all the services and dependencies needed for IIS.

For more info see docs here:

FWIW, if you're running on a local dev machine, you may not need IIS at all - you can use the .NET Core based Web Connection Web Server or IIS Express and forego having to deal with running IIS on your machine.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: WAS Service Won't Start
  Steve
  Rick Strahl
  Sep 6, 2023 @ 07:12am

Hi Rick,
Hope you are well. Yes, I do have IIS Installed. When I try to start the World Wide Web Publishing Service, it fails due to a dependency. Then I read where I also need the WAS Service, which I noticed wasn't running either. That's when I discovered the problem with the WAS Service (Error 13, Invalid Data), which I assume is preventing the WWW Publishing Service from starting. I have used this laptop in the past for WWWC Development. Everything was working at one point, but that's been at least a couple of years ago. I'll keep digging and go through the links you sent.

Thanks!
Steve

Gravatar is a globally recognized avatar based on your email address. re: WAS Service Won't Start
  Rick Strahl
  Steve
  Sep 6, 2023 @ 07:38am

I would uninstall IIS from the machine completely, reboot, check and make sure the services are gone, then run the IIS Powershell script.

If you have a configuration problem a fresh install should fix that.

If it's configuration issue in ApplicationHost.config copy and delete - it should create a new one on install. You'll lose your app pools and sites, but you'd know at least you'd know you have a clean install and you can copy the sites and app pool back into with Beyond Compare or similar.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: WAS Service Won't Start
  Steve
  Rick Strahl
  Sep 6, 2023 @ 11:50am

Hi Rick,
I decided to install WWWC on the new laptop that I'm moving to and not worry about the old laptop. Installing WWWC v6.17.0. I followed the video on how to install and how to configure IIS. All seemed to install fine, including IIS and WWWC. However, when I try to hit the demo page, no process request is shown in the WWWC VFP Server window, and nothing is shown in the browser. Just a blank page. No error message, nothing. The settings in IIS seem fine. The first time I unzipped the file, it placed everything into Wonnect. The zipped file had the wrong path. I re-ran it and corrected the path. However, both times I still got the same blank page and never see a process request entry. The WCDemo.ini file looks ok, and the WWWC Server starts with no issue. Just not seeing any requests come through. Very odd.

Also, when I tried to run the Install-IIS-Features.ps1 script on the new laptop (running Win10 Pro) via PowerShell with Admin, it errors and says the script cannot be run because it's not digitally signed.

Any thoughts on why http://localhost/wconnect/default.htm does not hit the WWWC Server? I'm wondering if it's a security issue I've missed? In the past, this has always worked flawlessly.

TIA,
Steve

© 1996-2024