-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ConnectionsList.xml denied for installed applications #10
Comments
I guess this problem is more a security access. I guess your installer should handle the possibility to access the folder with read/write privileges |
It definitely is a security issue, as users normally don't have write access to Program Files folders where applications are installed. |
Back to the connection project. Ready to receive a PR on this subject |
@rappen ping :) |
No need for a PR, I finally understood what you were looking for :) I added a static property ConnectionsList.ConnectionsListFilePath = "c:\\Temp\\test_local_connectionsList.xml";
ConnectionManager.ConfigurationFile = "BlaBla.xml"; |
When using McTools.Xrm.Connection.dll version 1.2016.3.29 with a program installed using msi installer, it is not possible to access the MscrmTools.ConnectionsList.xml file.
Starting the connection selector dialog displays this:
Error details:
System.Exception: Error while serializing: Access to path C:\Program Files\Cinteros AB\Cinteros CRM Deployer\MscrmTools.ConnectionsList.xml is denied. vid McTools.Xrm.Connection.XmlSerializerHelper.SerializeToFile(Object o, String path) vid McTools.Xrm.Connection.ConnectionsList.Save() vid McTools.Xrm.Connection.WinForms.ConnectionSelector.tscbbConnectionsFile_SelectedIndexChanged(Object sender, EventArgs e)
Related to #2.
The text was updated successfully, but these errors were encountered: