ERROR: Invalid Name Space

one of my terminals is showing this on the login screen and i cant log in , it just crushes after that


Invalid Namespace_1
Invalid_1

How do i fix this, i tried reinstalling sambapos but still no fix, i downloaded latest 5.7.12 and the crash logs are empty

Can you see if an exception has been logged to the event viewer and if so, post it here.

Can you check dbo.ProgramSettings table and look for duplicate entry for username or license

If you see one delete the duplicate

thanks guys will try and check that and let you know by monday …the restaurant is closed now will only gonna be able to check on monday

i checked the dbo.ProgramSettings table there is noduplicate entry for username…i cleared the database connction setting under the C:\ProgramData\SAMBAPOS\SambaPOS5 and then reinstalled sambapos but still getting the same problem…

can you install the latest .net 4.8 and then try again.

Run these commands in a command prompt with admin privileges. See if any of them report the same error (Invalid namespace):

wmic computersystem get name
wmic computersystem get domain
systeminfo
1 Like

Screenshot_1

Thanks @Memo for guiding me…just incase someone runs into same problem, here is the solution i got from Chatgpt and found out that the WMI was corrupted so i had to Rebuild the WMI Repository by running this command line in CMD as an Admin…

regsvr32 %windir%\system32\wbem\wmidcprv.dll
regsvr32 %windir%\system32\wbem\wmiprvsd.dll
regsvr32 %windir%\system32\wbem\wbemdisp.dll

6 Likes

Interesting. I don’t guess I’ve seen that before.