Last post Feb 13, 2013 02:56 PM by Danny117
Feb 12, 2013 04:18 AM|rifaterdemsahin|LINK
What i want accomplish ?
Have different configurations in different enviroments.
1.Web ( UI) (Web.config)
2.Common (Data Access Classes ,EntityFramework and SqlConnections)(app.config)
Want to Use:
web.config Transformations using visual studio 2012
Tried : Web.config transformations work and change the web.config.(checked the deployed web.config) in my deployed application.
My Problems are;
1)i could not make Entity Framework classes to work with the transformed connection strings... the only way i solved it was choosing
"use this connection string at runtime(update destionation web.config" when i deploy my site.....But the thing is i dont need to do this on sql connections and also what difference does it make did not make sense to me as my deployed web.config.
does not seem to change with this selection but results change.
2)When i am debugging the transformations dont work...Whats is the best simple practice to debug in desired mode in an enviroment of web.config transformations.
Probably i am not seeing(getting) some critical point .Please help
Feb 13, 2013 02:56 PM|Danny117|LINK
It might not be best but I have two seperate web configs.
I have a webconfig on the dev enviroment. Which I use everyday it connects to the dev sqlserver. It has debugging enabled. etc.
I have a webconfig for the internet web server. Which doesn't have debugging enabled. Which connects to the sql server for the web. Which I use never. It is specifically for the server.