Web Connection
Error "Couldn't create virtual" while setting COM Mode
Gravatar is a globally recognized avatar based on your email address. Error "Couldn't create virtual" while setting COM Mode
  Michele
  All
  Oct 30, 2023 @ 01:08am

This is not the first installation of my app, but in the last when i run myApp.exe CONFIG i have "couldn't create virtual" message and my app is not correctly registered. The steps we use are the same and noted in a document. We use your scripts to configure IIS and install web connection I'm using administrator as user and i compare this server with another that works fine, but i am not able to find differences. What can i check ? What is wrong to have this error ?

Thanks

Gravatar is a globally recognized avatar based on your email address. re: Error "Couldn't create virtual" while setting COM Mode
  Rick Strahl
  Michele
  Oct 31, 2023 @ 12:27pm

Make sure that the site ID in the configuration is pointing at the right site.

It's in your YourApp.ini file:

[ServerConfig]
Virtual=
ScriptMaps=wwt,wc,wcs,wcsx,md
IISPath=IIS://localhost/w3svc/5/root

The IIS Path has the site id (5 above) - make sure it's pointing at the right Web site and that the virtual is correct. You also need to make sure the server is configured with the IIS 6 management tools. If you use the Web Connection IIS configuration that should be installed otherwise you have to manually enable it for automatic configuration.

Gravatar is a globally recognized avatar based on your email address. re: Error "Couldn't create virtual" while setting COM Mode
  Michele
  Rick Strahl
  Nov 1, 2023 @ 03:36am

Myapp.ini is correct

"You also need to make sure the server is configured with the IIS 6 management tools. If you use the Web Connection IIS configuration that should be installed otherwise you have to manually enable it for automatic configuration." What does it mean ? Excuse me i don't understand..

Gravatar is a globally recognized avatar based on your email address. re: Error "Couldn't create virtual" while setting COM Mode
  Rick Strahl
  Michele
  Nov 1, 2023 @ 08:57pm

If you manually installed IIS features, you have to make sure the appropriate dependencies are installed. Specifically the IIS Metabase and IIS 6 configuration compatibility.

If you used the Install-IIS-Features.ps1 to install then it should be automatically installed.

The specific feature is:

Enable-WindowsOptionalFeature -Online -FeatureName IIS-IIS6ManagementCompatibility

More info here:

IIS Configuration for Web Connection - Manually installing IIS Features +++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Error "Couldn't create virtual" while setting COM Mode
  Rick Strahl
  Michele
  Nov 3, 2023 @ 12:48pm

Don't know without looking at the server.

If you couldn't create the virtual then the automated setup was missing some configuration component - most likely those IIS 6 Metabase components or you didn't run as Administrator.

IAC, if the automated setup doesn't work you have to manually do it. There are instructions in the documentation - go through the list and see what was installed and what wasn't.

+++ Rick ---

© 1996-2024