Web Connection
Multiple virtuals in COM mode best practice
Gravatar is a globally recognized avatar based on your email address. Multiple virtuals in COM mode best practice
  Marcel DESMET
  All
  Dec 10, 2018 @ 11:48am

Hello,

I am running 3 virtuals ( with 5 extensions ) with same Com server, it seems ok ( running 48 hrs.. ) each virtual loading 2 instances of the same programm.

The update doens't work without manualy unload 2 virtuals so I try to recompile ( I duplicate the projects to have another COM id ) in 3 separate exe's and get 3 comm servers

exe1.exe1Server
exe2.exe1Server
exe3.exe1Server

Everything is Ok in Foxpro with createobject but not with webconnection -> Invalid Com Server ProgId: for exe2 and exe3.

I also duplicate Exe1.ini ( in deploy directoy ) to exe2.ini and exe3.ini and change COMreleaseURL and virtual values and changed web.config as needed

Gravatar is a globally recognized avatar based on your email address. re: Multiple virtuals in COM mode best practice
  Rick Strahl
  Marcel DESMET
  Dec 10, 2018 @ 10:44pm

If you just change the ProgId you need to either create a completely new project (not copy an existing one) or generate a new COM Guid for the server.

The problem most likely is that you copied the projects so all three projects have the same COM ClassId - last one wins so only one server is effectively registered.

To fix this you'll need to generate new COM Class IDs for each project. Either create a new project or I believe there's an option in the Project manager to generate new COM Ids.

Before you do this however I would explicitly try to uninstall each of the COM servers to remove as much of the stuff as you can. However if you compiled your projects in this way there maybe some level of corruption there that won't clean up but hopefully won't have any ill effects on your existing server.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Multiple virtuals in COM mode best practice
  Marcel DESMET
  Rick Strahl
  Dec 15, 2018 @ 03:50pm

Thank you for your help.

Finaly I decided to run the 3 virtual path on the same com object.

It's ok on 2 virtual path but the third one give some errors

The 3 web.config pointed to the same deploy directory ?

In file mode

**In COM mode **

**This one is ok **

**This one gives the error's **

Gravatar is a globally recognized avatar based on your email address. re: Multiple virtuals in COM mode best practice
  Marcel DESMET
  Marcel DESMET
  Dec 16, 2018 @ 04:03am

It's ok now the application pool was not correct

© 1996-2019