Je travaille dans le concept de fichier de transformation web.config. J'ai trois config web. L'un est la mise en scène, la production, le déploiement. J'ai différentes informations de connexion pour ces trois.Web.Config Transformation dans VS2010
web.config:
<connectionStrings>
<add name="MyGallery"
connectionString="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=DevelopmentStorageDb;Data Source=BALA\SQLEXPRESS" />
</connectionStrings>
Web.Config.Production:
<add
name="MyGallery"
connectionString="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=SharePoint_Config;Data Source=BALA\SQLEXPRESS"
xdt:Transform="Replace" xdt:Locator="Match(name)"
/>
Maintenant, je construis le code, il fonctionne bien. J'ai créé le paquet. Lorsque je cours le code en mode Production, la nouvelle chaîne de connexions ne prend pas.
Comment puis-je résoudre ce problème. Ai-je besoin d'un effort supplémentaire pour déplacer cet objet?
Le package est créé dans le paramètre Fichier de configuration de production uniquement. –