Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Has VS 2010 SP1 changed where the .config file is picked up from in VSTO add ins?

I have an outlook 2010 add-in that has a service reference to a simple web service we have set up. The config for the service is in the app.config file. This add-in is deployed using windows installer into the program files folder.

This has been working without a problem until yesterday.

Yesterday I installed VS 2010 SP1 and now when the add-in tries to access the web service it has the error "Could not find default endpoint element that references contract in the ServiceModel client configuration section."

Does anyone know what has changed and what is causing this problem?

If I open the project in VS, build and then run from within VS the config is picked up fine.

Thanks Gavin

like image 980
Gavin Avatar asked Oct 12 '22 13:10

Gavin


1 Answers

The actual solution is more simple. There was a breaking change made to VSTO 4 sp1 in that the manifest has to be a fully qualified URI. So when building your setup project, you must prefix the path to the manifest with file:/// and everything works as you'd expect again. They didn't get the documentation and tutorial pages updated in time for the release. I'm not sure that they have been yet.

like image 80
Robharrisaz Avatar answered Oct 21 '22 22:10

Robharrisaz