Web Connection
Difficulties using IIS and IISExpress for WWC project
Gravatar is a globally recognized avatar based on your email address. Difficulties using IIS and IISExpress for WWC project
  Alejandro A Sosa
  All
  May 22, 2020 @ 09:47am

Hi Rick,

While shifting my WWC site from IISExpress to full IIS something went wrong and now I get the message "Cannot start service W3SVC on computer" when attempting to start IIS.

IISreset failed when attempting to restart service with this message "The IIS Admin service or the World Wide Web Publishing Service or a service dependent on them failed to start... had error during its startup or may be disabled."

In the Computer Management app I tried to start W3SVC service manually and got this message: "Windows could not start the World Wide Web Pub lishing Service on local computer. Error 1068: The dependency service or group failed to start"

Do you have any suggestions?

Meanwhile, while trying to make the IISExpress alternative work, I opened Visual Studio and went to File > Open > WebSite and in IIS Express Sites > WebSite1 (which is localhost:8080) I created a new virtual site and pointed it at the web folder of my application. However, when the project's main program is run and http://localhost:8080/payportal is entered in the browser, nothing comes back.

I would appreciate guidance on this, please.

TIA,

Alex

Gravatar is a globally recognized avatar based on your email address. re: Difficulties using IIS and IISExpress for WWC project
  Rick Strahl
  Alejandro A Sosa
  May 22, 2020 @ 12:32pm

For IIS Express don't use a virtual folder - it'll run the app out of the root.

For IIS you need the virtual if you set up the app that way, or you can create a new local Web site and access it on another port or via a host header (ie. home.mydomain.com) you can map in your local hosts file.

As to IIS configuration, I recommend you run the IIS configuration Powershell script that Web Connection comes with which makes sure all the right components are installed.

Automate IIS Setup and Features

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Difficulties using IIS and IISExpress for WWC project
  Alejandro A Sosa
  Rick Strahl
  May 25, 2020 @ 06:41am

Thanks for the information.

Ran Install-IIS-Features.ps1 as administrator as you suggested with no success. Tried many other suggestions from the web including reinstalling Windows to no avail (repair mode which doesn't delete data or applications).

I'm giving up on that computer. Since I have two office computers and one at home that's not tragic. Also I will only use full IIS.

Is there a good way to centralize defining the URLs? For example, in SignalRSamples solution there are 8 hard coded references to signalrswf.west-wind.com.

Thank you very much for your time and effort.

Alex

Gravatar is a globally recognized avatar based on your email address. re: Difficulties using IIS and IISExpress for WWC project
  Rick Strahl
  Alejandro A Sosa
  May 25, 2020 @ 12:56pm

If you're having problems with both IIS and IIS Express that almost certainly tells me that issue isn't the Web server but configuration. I have never seen IIS Express not work for example. IIS can run into problems (usually caused by misconfigured or missing installation components) but the script should take care of that on a Windows 10 machine.

As to configuration and URL centralization? No you can't you need to specify the base URLs at least because that's the top level entry point, so each of the sample Web sites, and each of the individually separate demos have to provide that configuration information.

SignalR and distrubuted messaging is not a trivial concept to master. There are a lot of moving parts in this architecture. This is not necessarily difficult but you do have to understand the flow of the communication and the the underlying architecture of the tools. You need to understand how a Web Server works and is configured; the difference between a root Web site and virtual directory based Web site. If you are not comfortable with these underlying concepts, frankly I wouldn't recommend this technology to you because it will be nothing but a struggle otherwise every time you move the application or change servers.

+++ Rick ---

© 1996-2024