Message 1 of 6
My.Settings feature not compatible with Inventor Add-Ins?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
My application makes use of the My.Settings feature to store some pathing information and such so that it can be easily tweaked after installation. However, the compiled DLL file appears to "burn in" these values so if the .config file is edited after the fact, the add-in continues to use the values that were set during development. In fact, you can even delete the .config file which stores these settings and the application works; proving that the values are being read from the assembly and not the configuration file (Note - These settings are defined as "Application" level settings).
Example:
My.Computer.Network.Ping(My.Settings.ServerName, 5000)
If at the time of development, ServerName was localhost but then after the application is deployed, the configuration file is modified so that this value is EngServer, the application will not read the updated value from the configuration file; and therefore, continues to use localhost.
Please, can someone give me some insight here?
Thanks,
Ryan Edited by: ryan on Apr 11, 2009 1:15 AM
Example:
My.Computer.Network.Ping(My.Settings.ServerName, 5000)
If at the time of development, ServerName was localhost but then after the application is deployed, the configuration file is modified so that this value is EngServer, the application will not read the updated value from the configuration file; and therefore, continues to use localhost.
Please, can someone give me some insight here?
Thanks,
Ryan Edited by: ryan on Apr 11, 2009 1:15 AM
Ryan Small
National Team Leader, Data Management and Software Development
SolidCAD, a Cansel Company (an Autodesk Platinum Partner)
www.solidcad.ca
National Team Leader, Data Management and Software Development
SolidCAD, a Cansel Company (an Autodesk Platinum Partner)
www.solidcad.ca