asp.net - My specific web.x.config file is not used -


i working on asp.net mvc projet running on windows azure. upgraded packages of project , seems web.x.config not loaded anymore.

to more precise, i've got 3 different configuration : - development - staging - production

each 1 has web.x.config x replaced 1 of these names. when running project suprised database connection string pretty dull (.\sqlexpress) instead of connection azure.

after long time searching on web, tried move web.development.config :

    <add name="databasecontext" connectionstring="server=tcp:xxx.database.windows.net,1433;database=<database>;user id=<login>;password=<pass>;trusted_connection=false;encrypt=true;" providername="system.data.sqlclient" xdt:transform="insert"/> 

to web.config, removing transform :

    <add name="databasecontext" connectionstring="server=tcp:xxx.database.windows.net,1433;database=<database>;user id=<login>;password=<pass>;trusted_connection=false;encrypt=true;" providername="system.data.sqlclient"/> 

at point database connection string right one, seems web.x.config not used when running application. tried locate settings let me change no avail. idea why happening ?

if convention on configuration, configuration has got same name web.config subfile i.e config : development, file : web.development.config

thanks, stéphane

transforms made when publish/deploy application. while running/debugging locally, uses web.config settings (no transform being made).

see this thread possible solution (i haven't tried/needed personally).

hth.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -