jueves, 24 de mayo de 2012 13:38
I have created one Exceladdin using VSTO 2010 option and populating a forecasting report in excel by using a database. for that i have used app.config file and configured a connection string.
my problem is after creating a setup (using publish option) i can not change connection string since its throwing below issue
"System.Deploymeny.Application.InvalidDeploymentException:File,ExcelAddIn.dll.config,has a different computed hash than specified in manifest."
Is there any way to change connection string after creating a setup project since we need to change connection string in diff Env accordingly.
Any help will be appreciated.
Todas las respuestas
jueves, 24 de mayo de 2012 13:54
You can specify that the config file will not be hashed during the Publish.
In the properties of your project, select "Publish", then "Application Files". Specify Hash exclude.
This way you can modify the app.config file before the setup.
viernes, 25 de mayo de 2012 6:04
Thaks Sygrien for reply..
but in my case "Application files" button is not avilable under publish .. seems like in VSTO projects its not applicable.
lunes, 28 de mayo de 2012 12:25
If you will be publishing with Click Once, and you might need to run Mage to update your manifest with the new hashes. Here's a video explaining the process :-
miércoles, 30 de mayo de 2012 12:49
Its looks like perfect solution.
thanks a ton the help.