Web Connection
Unable to Retrieve COM instance
Gravatar is a globally recognized avatar based on your email address. Unable to Retrieve COM instance
  Josh Klein
  All
  Jun 7, 2022 @ 12:05pm

Running with Windows Server 2016 and Web Connection 7.15. Started adding a lot more activity on this server recently. Has been running OK but about once or twice a day getting that "Unable to Retrieve COM instance" message in the wcerrors.txt log. The wcTracelog.txt does not have any errors in there. I need to manually start the Com server to get things going.

The Windows System event viewer says "The application-specific permission settings do not grant Local Activation permission for the COM server application..."

Thoughts?

Gravatar is a globally recognized avatar based on your email address. re: Unable to Retrieve COM instance
  Rick Strahl
  Josh Klein
  Jun 7, 2022 @ 04:21pm

DCOM Configuration may be off...

Since this sounds like an intermittent issue I'm guessing it has to do with one of these:

  • Duplicate site/virtual mapping with one site not using Application Pool that has rights
  • Problem with an inherited virtual below a root or another virtual

The latter could be running your app on the root site, and you have another virtual below it. If you invoke a link for the first site on the second, it'll run in the wrong context.

Check the URL in the logs and make sure it's not some other site or virtual than your actual application path.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Unable to Retrieve COM instance
  Josh Klein
  Rick Strahl
  Jun 8, 2022 @ 12:30pm

I created a backup folder underneath the bin folder way back when. After erasing that folder, it appears that the system is behaving itself. Thanks,

Josh

Gravatar is a globally recognized avatar based on your email address. re: Unable to Retrieve COM instance
  Rick Strahl
  Josh Klein
  Jun 8, 2022 @ 12:43pm

Yeah you never want to do that because the .NET module will look there to load all assemblies in that folder. If you copied files there will be multiple instance of the same file and that will cause problems, although that should just outright fail not intermittently.

+++ Rick ---

© 1996-2024