r/visualbasic • • 13d ago

Vb.net app can not load Calendar ActiveX on Windows 11 domain user but admin user works

We have a vb.net program that has been running for well over 15 years. Developed in visual studios 2003. Inside this vb.net app we incorporated a Calendar ActiveX Control from viscomsoft.com. We have installed this app hundreds of times and the O/S installs included Windows 7, Windows 8, Windows 10, and now Windows 11 and it loads no issue after installing the correct exe files and moving the dependency files into the C drive when app is installed.

We just purchased a new Windows 11 PC, installed the App and launched the app which includes the Calendar ActiveX Control built into the app's front page - it works no issue when i login as a domain administrator. When i switch over to domain user and launch, the app opens everything works except for this Calendar ActiveX Control i just see a little red dot on the top corner of the Calendar ActiveX Control the actual Calendar will not load.

this Computer is Windows 11 Pro and version 23H2

Here is app with calendar control when logging in as domain administrator, its working as intended and shows NOV 26

Here is the app with Calendar not loading when we log in as a domain user, its a little red dot top left corner of calendar screen

Here is what steps i've taken to troubleshoot :

  1. Computer Manager ->Group-> Administrator ->added domain users and this particular domain user to 'Administrator' on the local machine. So the domain user is now a Administrator with admin rights on local machine.

2)uninstall and reinstall while logged in as domain user

3)open Registry Editor - HKEY_Classes_Root\CALENDAR.CalendarCtrl.1 - granted permissions , fully control to domain users.

Also HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\CALENDAR.CalendarCtrl.1 - granted permissions , fully control to domain users

4)Using Admin Command Prompt

C:\Windows\SysWOW64>regsvr32.exe "C:\Program Files (x86)\Calendar ActiveX Control\Calendar.ocx"

Interesting when i ran

C:\Windows\SysWOW64>regsvr32.exe "C:\ISS\Calendar.ocx" I did get a different error when opening the app, so that was promising but it still failed to open the Calendar control, so thought i was on to something there. It seems it was at least attempting to draw the Calendar based on the below error message i got.

5) i copied the files relating to this control Calendar.osx, Axinterop.CalendarLib.dll, and AxInterop.MSACAL.dll and pasted those files directly into the two below locations:

C:\windows\System32 and granted fully control privileges to domain users

C;\windows\SYSWOW64 and granted fully control privileges to domain users

Below is screen shot of X86 folder, it stores the Calendar ActiveX Control program.

Below is screen shot of c drive folder with app named ISS and all of the dependency files which includes the OCX calendar files.

Any suggestions i am running out of ideas of what to look at next ? frustrating that other PCs are running Windows 11 and on a domain user account the APP and Calendar control work no issues. Tomorrow my plan is to log into the other Windows 11 PC running the app and see if i can replicate any files relating to OCX control, perhaps its a version mismatch, but still cant explain why admin works and domain does not on this PC.

5 Upvotes

15 comments sorted by

4

u/2mnycooks 13d ago

Run procmon, run the app as each user, filter on the exe and compare which ocx path and registry keys each session actually resolves

1

u/GameAddict5150 13d ago

I gave this a shot , using procmon and event viewer - nothing major jumping out, in the 10 sec it takes to open app and record procmon it records thousands and thousands of event. I filtered it by the iSSpro.exe to look at those events only.. so many events going on so hard to say if the culprit error is buried in there. I’ll review the log again and see if it jumps out

1

u/2mnycooks 13d ago

The robots say: it's a COM registration / version mismatch that is per-user, not a permissions problem. Most of what you've tried is aimed a the wrong target. The errors are the tell. "Member not found" and "Invalid number of parameters" are COM dispatch errors. They mean the control is being created but its not the same interface the apps interop DLLs were built against. An access problem would look like "class not registered" or "access denied" instead.

Try:

Per-user COM overrides. HKCR is a merge of HKLM\Software\Classes and the user’s HKCU\Software\Classes, and the per-user entries win. They reinstalled while logged in as the domain user, which can leave per-user registrations that the admin never sees. Check that user’s HKCU\Software\Classes (CLSID, TypeLib, and the CALENDAR.CalendarCtrl ProgID) and the VirtualStore under their %LOCALAPPDATA%.

Too many copies registered. The same OCX is now registered from C:\ISS and Program Files, with more copies in System32 and SysWOW64. There’s also a separate “Calendar SDK ActiveX Control” product installed, plus two different setup exes in the app folder. I’d unregister everything, remove the stray copies, and register exactly one, matching whatever path a working PC uses.

Split user from machine. Try a different domain user on this PC, and this user on a working PC. If the user fails everywhere, it’s the profile or the app’s own per-user logic (it has a Permissions feature), not the machine.

1

u/GameAddict5150 12d ago

After trying to fix this issue after many many hours , I gave up yesterday with the o365 fiasco , came back today and worked on installing a printer on this broken brand new pc, restarted the machine and calendar is working. I was intermittently restarting as running patches too. Now I don’t know what the fix was… oh well at least it’s working. Thx for pointers

3

u/2mnycooks 13d ago

And to answer how to use procmon better:
Staring at a raw ProcMon trace won’t work; the trick is filtering down to a few dozen lines and comparing two captures. Here’s what I’d tell them:

Capture twice. Once as the admin (works), once as the domain user (fails), each saved to its own file. One trace alone tells you little; the difference between them is the answer.

Filters (Filter menu, Ctrl+L):

  • Process Name is ISSpro.exe → Include
  • Path contains Calendar → Include
  • Path contains TypeLib → Include
  • Path contains Licenses → Include

Then turn off the network and process/thread toolbar buttons, leaving registry and file system on. That should cut thousands of events to a manageable list.

What to look for:

  1. Which OCX loads. Find the Load Image or CreateFile line for Calendar*.ocx in each trace. If the path differs between admin and user (C:\ISS vs Program Files vs SysWOW64 vs a VirtualStore path), that’s the culprit.
  2. Which registry hive answers. Look at the RegOpenKey lines for the control’s CLSID and TypeLib. A SUCCESS under HKCU\Software\Classes for the domain user, where the admin falls through to HKLM, means a per-user registration is overriding the machine one.
  3. Result column. Any ACCESS DENIED in the user trace, or NAME NOT FOUND on a key that shows SUCCESS in the admin trace.

There’s also a shortcut that skips ProcMon entirely: logged in as the domain user, open regedit and look in HKEY_CURRENT_USER\Software\Classes for anything named CALENDAR.* or a matching entry under CLSID or TypeLib. If anything is there, export it as a backup, delete it, and retest.

Event Viewer won’t show anything here, since these errors are caught by the app and shown in its own message boxes.

1

u/Hel_OWeen 13d ago

Is the right .NET Runtime installed on that machine?

1

u/GameAddict5150 13d ago

the .net framework 4.8 was installed when i loaded windows and run updates.

3.5 was not installed, so it took me 1 to 2 days to get 3.5 framework installed. it was a bear.

Final solution for 3.5 i found a github exe and that worked. we have wsus mangaged by domain think that was causing issues with 3.5

https://github.com/abbodi1406/dotNetFx35W10/releases

1

u/Hel_OWeen 13d ago

3.5 was not installed, so it took me 1 to 2 days to get 3.5 framework installed. it was a bear.

Why not simply install it via Windows Features? It's not installed by default, but is included in Windows 11, it just needs to be activated.

1

u/GameAddict5150 13d ago

Install was failing it’s a known problem. I also looked at another pc which is running windows 11 business version 21H2, the calendar works on domain user and admin. I looked at the 3.5 framework under windows features and no 3.5 is installed on this working pc. So it’s not a 3.5 framework issue , even though on the broken windows 11 pc I did install 1.1 framework and eventually got 3.5 installed

1

u/Hel_OWeen 12d ago

Install was failing it’s a known problem.

I had that once, admittedly on Windows Server (2019 I think). And it turned out that the server's ISO from which the VM was installed, was somehow faulty. We created a new VM from a different/new ISO and then installation of .NET Framework via Windows Features worked as expected.

1

u/jd31068 13d ago

Have you checked Smart App Control? Try turning it off to see if that helps. ActiveX controls have been deemed a security risk in recent years and MS have been tightening the screws in Windows 11.

1

u/GameAddict5150 13d ago

I checked , it shows the Smart App Control as 'off' when i navigate to Windows Security -> App & Brower control -> Smart App Control

1

u/jd31068 13d ago

That would have been too easy. Try installing the app outside of the Programs files folders, they have elevated permissions. Though you should be able to read the ActiveX file.

2

u/mika 13d ago

I'm pretty sure Ai would sort this out for you in no time. Install Claude code and ask it why it doesn't work... (might cost you $20)

Possibly it's some path permission issue...

1

u/fasti-au 11d ago

Ocx needs regsrv32 perms. Welcome to 1990s registry