Web Connection
Can't access the Web Connection Module Administration page
Gravatar is a globally recognized avatar based on your email address. Can't access the Web Connection Module Administration page
  Alec Gagne
  All
  Jul 24, 2019 @ 06:09pm

I'm running my WC app in file mode on my local machine and all seems to work fine. Now I want to try switching to COM mode. I connect via the /admin/admin.aspx page and click the "Web Connection Module Administration" link and immediately receive a page that says

An Error Occurred Unknown application error Access is denied.

It's probably something simple, but any idea what the issue might be or where to go to find out? I checked for a wcTraceLog.txt file but none exists.

Thanks

Alec

Gravatar is a globally recognized avatar based on your email address. re: Can't access the Web Connection Module Administration page
  Rick Strahl
  Alec Gagne
  Jul 25, 2019 @ 06:45am

Make sure Windows Authentication or Basic Authentication is enabled in the the IIS configuration if the failure is immediate (ie without a prompt for authentiction first).

There should be no difference between file based and COM based for accessing the Module Admin page.

If this is a new project, you should re-run the YourApp_ServerConfig.prg program to reset the IIS configuration settings which - assuming all the IIS components are installed - should set up everything needed to runt he application correctly. With an older app, follow the directions here:

IIS Configuration

Alternately you can also use IIS Express instead of IIS and bypass the security issues altogether as it runs in the current user context.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Can't access the Web Connection Module Administration page
  Alec Gagne
  Rick Strahl
  Jul 25, 2019 @ 07:02pm

Hi Rick,

Both Windows Authentication and Basic Authentication were enabled. Running the serverconfig seems to have fixed it.

Thank You!

Alec

Gravatar is a globally recognized avatar based on your email address. re: Can't access the Web Connection Module Administration page
  Alec Gagne
  Alec Gagne
  Jul 26, 2019 @ 09:48am

Hi Rick,

In the VFP Command Window this creates the object: loServer = CREATEOBJECT("cwi.cwiserver")

I got to the Web Connection Handler Status Page and have 2 instances of my server running. My app seems to be running great and serving up pages. Now, when I try to switch the "Messaging Mechanism" from "File" to "COM" the servers appear to fail, giving me a message that says "No Servers Loaded". From that point, if I click the "Load Servers" link, the Admin page updates and where I would normally see my list of servers it simply indicates the "Updated [Datetime]" but there are no servers in the list. Any idea why my servers may not be loading when using the COM messaging scheme?

File Based Messaging

After clicking the link to switch the message mechanism...

COM Based Messaging

Once again this is likely something very simple that I'm just missing or have configured incorrectly. Perhaps you have a docs page(s) that will step me thru the process for setting up COM that I can follow...

Thanks

Alec

Gravatar is a globally recognized avatar based on your email address. re: Can't access the Web Connection Module Administration page
  Rick Strahl
  Alec Gagne
  Jul 26, 2019 @ 01:17pm

You need to load the servers first - either by explicitly loading via the Load Servers button or by hitting the server.

If you do what happens then? Do you see the servers loading in your task list?

Also you're not showing the entire server module page which should also show the account the application is running under (at the bottom). Make sure whatever account shows there, has rights to launch the COM servers.

If the servers are getting loaded in task man, but they are failing to show up, the servers most likely are crashing on launch during Init() most likely. The help file has more info on how to debug startup problems here (although that might require a later version):

Startup Error Tracing

+++ Rick ---

© 1996-2019