Caller ID Module Error message under different User account

Hi @emre, I have come across following issue.

I initially had one windows user account ‘Main’ (Administrator account) and every thing has been working fine without any issue.

Installed Module under ‘Main’ user account.

Configured Caller ID under ‘Main’ User account.

Today, I created three Standard User accounts POS1, POS2 and POS3 to configure RDP connection.

For every user accounts (POS1, POS2 and POS3) Samba Market module was displayed as ‘Install’ (meaning modules needed to be installed. i then installed the Caller ID Module under POS1 user account.

After Installing Caller ID Module and restarting SambaPOS i’m presented with below error message.

Now i can not load SambaPOS application under POS1 user account. Following error message will display every time. i have tried reinstalling SambaPOS application 4.1.32 without any luck. No Sure what to do

SambaPOS works fine under Main User account, below message is not displayed.

So basically if the Caller ID module is installed under different user accounts below error message is/will be displayed and can NOT run SambaPOS. I have also reproduced the same issue under POS2 account, after logging into POS2 account and installing Caller ID module.


[General Info]

Application: SambaPOS
Version: 4.1.32 BETA
Region: en
DB: SQ
Machine: SERVER-PC
User: POS1
Date: 25/04/2014
Time: 21:29

User Explanation:

POS1 said “”

[Exception Info 1]

Top-level Exception
Type: System.UnauthorizedAccessException
Message: Access to the path ‘C:\ProgramData\SambaPOS\SambaPOS4\CTI Comet USB Caller ID_lGDN0sadD0S2xX_tY3UvqQSettingsJson.txt’ is denied.
Source: mscorlib
Stack Trace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
at System.IO.StreamWriter…ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
at System.IO.File.WriteAllText(String path, String contents)
at Samba.Services.Common.Device.AbstractDevice.SaveSettings()
at Samba.Services.Common.Device.AbstractDevice.InitializeDevice()
at Samba.Services.Implementations.DeviceService.b__5(IDevice x)
at System.Collections.Generic.List1.ForEach(Action1 action)
at Samba.Services.Implementations.DeviceService.InitializeDevices()
at Samba.Presentation.Bootstrapper.InitializeShell()
at Microsoft.Practices.Prism.MefExtensions.MefBootstrapper.Run(Boolean runWithDefaultConfiguration)
at Samba.Presentation.App.RunInReleaseMode()


[Assembly Info]

Samba.Services, Version=1.0.0.0
mscorlib, Version=4.0.0.0
System, Version=4.0.0.0
Microsoft.Practices.Prism, Version=4.0.0.0
WindowsBase, Version=4.0.0.0
Samba.Infrastructure, Version=1.0.0.0
Samba.Infrastructure.Data, Version=1.0.0.0
PresentationFramework, Version=4.0.0.0
System.Xaml, Version=4.0.0.0
Samba.Presentation.Services, Version=1.0.0.0
FluentValidation, Version=3.4.0.0
Samba.Domain, Version=1.0.0.0
DevExpress.Xpf.Grid.v13.2, Version=13.2.8.0
PresentationCore, Version=4.0.0.0
Stateless, Version=1.0.0.0
System.Core, Version=4.0.0.0
System.Drawing, Version=4.0.0.0
System.Windows.Forms, Version=4.0.0.0
System.ComponentModel.Composition, Version=4.0.0.0
Samba.Localization, Version=1.0.0.0
Microsoft.CSharp, Version=4.0.0.0
DevExpress.Xpf.Grid.v13.2.Core, Version=13.2.8.0
Microsoft.Practices.ServiceLocation, Version=1.0.0.0
Samba.Persistance, Version=1.0.0.0
Microsoft.Practices.Prism.MefExtensions, Version=4.0.0.0
DevExpress.Xpf.Core.v13.2, Version=13.2.8.0
PropertyTools, Version=2012.4.14.1

Yes I’ve noticed error reports. I’ll improve this on next update. Until next update you can temporarily adjust C:\ProgramData\SambaPOS\SambaPOS4\ folder permission to give write access to all users.

Thank you very much for reporting.

Thanks, temporary workaround works fine.