Web Connection
IIS Error 500 Internal server error
Gravatar is a globally recognized avatar based on your email address. IIS Error 500 Internal server error
  Joy Tan
  All
  Sep 13, 2024 @ 05:09am

Hi Rick,

I am having issues with completing a set up on a new server Win2022. Did it from zero, ran the install. localhost works.

Set up same virtual directory "wconnect" on IIS site 2, does not work.

Read and re-read the documentation, rechecked, application pool settings, permissions etc.

I am now getting IIS 500 - Internal server error.

Is it permissions, configuration? what am I missing?

Thank you, Joy

Gravatar is a globally recognized avatar based on your email address. re: IIS Error 500 Internal server error
  Joy Tan
  Joy Tan
  Sep 13, 2024 @ 05:40am

HI Rick,

Here are the errors with wconnect:

2024-09-13 08:35:37.041 - Unload: Com Server released: Itswebsvrx.ItswebsvrxServer,  ProcessId: 7004
2024-09-13 08:35:37.041 - Unload: Com Server released: Itswebsvrx.ItswebsvrxServer,  ProcessId: 5232
2024-09-13 08:35:37.446 - 333684902973_20 - Server Execution Error
An item with the same key has already been added.
---
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
   at Westwind.WebConnection.ComServerManager.GetServer(WebConnectionHandler handler)
   at Westwind.WebConnection.ComProcessor.ProcessRequest() - /wconnect/testpage.sa
2024-09-13 08:35:37.556 - Unload: COM Process was shut down: 7004
2024-09-13 08:35:38.009 - Unload: COM Process was shut down: 5232

Hope we can narrow down where my new setup is having issues.

Just to add for clarity: site 1 : localhost works site 2 : website with domain encounters this IIS error 500 same virtual directory: wconnect Tried with a different folder for virtual directory, still the same issue

Thanks, Joy

Gravatar is a globally recognized avatar based on your email address. re: IIS Error 500 Internal server error
  Rick Strahl
  Joy Tan
  Sep 14, 2024 @ 06:46am

I suspect this is due to a misconfiguration of the COM object. COM Object not registered or not loadable.

The message isn't very clear but I think this is caused by the server instance being NULL and so the same NULL value being written into the server pool.

Typically this error should be trapped before it gets there. Can you make sure you have the very latest version of Webconnectionmodule.dll downloaded later than the very first releases? There were a few small updates after the very first release.

Latest version is available from:

https://west-wind.com/files/WebConnectionExperimental.zip

That latest version is 8.0.1.1

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: IIS Error 500 Internal server error
  Joy Tan
  Rick Strahl
  Sep 14, 2024 @ 08:28am

Hi Rick,

How to I back out of the COM errors? What is the cleanest reset of IIS and COM? Do I uninstall IIS and reinstall it? I got a test server so no issues of doing a remove feature IIS

What do you suggest?

Thanks, Joy

PS. I tried using version 7.35 wc and still have issues.

Gravatar is a globally recognized avatar based on your email address. re: IIS Error 500 Internal server error
  Rick Strahl
  Joy Tan
  Sep 14, 2024 @ 09:18am

Install the new module, make sure your COM object is registered properly with the /regserver switch, make sure the ProgId is correct in your yourApp.ini file and check to make sure you can instantiate the COM server from Powershell or VFP.

Web Connection - COM Server Configuration

Specifically make sure you can launch the server and it works on the server:

Web Connection - Testing your COM Server

There's no need to do anything with IIS, or with the COM server other than making sure it's properly registered and running.

+++ Rick ---

© 1996-2024