Web Connection
re: More on File Mode...
Gravatar is a globally recognized avatar based on your email address. re: More on File Mode...
  Rick Strahl
  Harvey Mushman
  Aug 9, 2022 @ 09:48pm

Assuming things run locally and you have a recently new project, you can re-run the configuration script.

Make sure you properly adjust the IIS WebSite Id in the IIS site string (ie. IIS:// in the youApp.ini so it's updating the appropriate Website

[ServerConfig]
IISPath=IIS://localhost/w3svc/2/root  
Virtual=/
ScriptMaps=wc,wcs,md,tst

This only works though if you have a recent version that was built with the new configuration tooling that embeds the self-configuration into the application itself so you can run:

MyApp.EXE CONFIG

which handles all the configuration automatically.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: More on File Mode...
  Harvey Mushman
  Rick Strahl
  Aug 10, 2022 @ 03:24pm

The CONFIG documentation commented out the DCOM reregistration command. If I uncomment it and move the entire project onto the server (vs. the current Build copy I installed), what "username" and "password" are used on the commented DCOM command?

Maybe it is easier to start all over... I have File mode working on the VM system but not COM. All of this effort so I can follow the demonstration to setup Vultr which is up and running complete with dns pointing a domain to the VM address. But getting stuck here has not allowed me to test Live Reload or Let's Encrypt yet so the saga continues...

Thanks in advance for any bread crumbs or tips you can provide.

Gravatar is a globally recognized avatar based on your email address. re: More on File Mode...
  Rick Strahl
  Harvey Mushman
  Aug 11, 2022 @ 10:40am

In most cases DCOM should not be required - that's why it's commented out.

COM Server Security and Identity

Only set it if you use a non-admin\non-SYSTEM or non-local account and if you do set it at the machine level so you do it once and then never again.

Always start with SYSTEM because that should just work to make sure things are working. You can dial up security with other accounts once you've made sure COM mode works.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: More on File Mode...
  Harvey Mushman
  Rick Strahl
  Aug 12, 2022 @ 02:55pm

I'm thinking I renamed the folder the project was originally created in. Then I rebuild the project and confirmed it was working in File and COM on my local machine. After moving to the Vultr server and installing to the new folder, only File works.

Mind you this was only after spending a day trying to understand why COM on the Vultr machine would work but not File mode.

At present File works but not COM. Any suggestions?

Gravatar is a globally recognized avatar based on your email address. re: More on File Mode...
  Rick Strahl
  Harvey Mushman
  Aug 13, 2022 @ 11:52am

I have no idea based on this limited information...

The docs have step by step troubleshooting steps that you can go through.

File mode should always work assuming you use the default project structure and you don't screw up your permissions by using a low rights Application Pool account. Do not use the Application Pool Identity account for Web Connection sites unless you really know what you're doing and how to set permission for this funky account.

+++ Rick ---

© 1996-2022