web services - Deploy C# multi layer project to a test system (UI/BLL/DAL/WebService) -


i have multi-layered c# project (.net 4.5 framework): ui, bll, dal , webservice. need deploy project on test pc not able know how. test pc has sql server , iis installed, couldn't know how set connection string used on test pc, , how deploy exe , make webservice work on pc locally. tried publish application using visual studio (2013) , install on pc method failed. should do? 1- how change connection string match sql server's settings installed on pc? 2- how deploy webservice? note other pc not on same network of mine.

i hope can me here or else let me know not right website ask such question.

1 - can create different configurations in visual studio through configuration manager - dropdown next play icon. default debug , relase. it's idea have 1 per environment. in case can create 1 called "test".

then can have different config files (web.config or app.config) each configuration/environment. each config can have different connection strings. way can manage having connection string local machine , 1 test machine.

2- can deploy project through visual studio publish wizard - right click in project file -> publish. can chose configuration want there. if want deploy test pick test configuration.

hope helps!


Comments