Pergunta

I'm trying to develop my first web application using Web.Config transformations.

Trying to run the app (building with the "Dev" build configuration)in the Asp.Net Debugging web server built into VS the site doesn't seem to work - the "Web.Dev.config" configuration doesn't appear to be seen by the application.

Is this to be expected? Is it only when deploying that the transformations happen?

Many thanks!

Foi útil?

Solução

In any asp.net web site, only web.config is examined by the web server. web.dev.config will always be ignored (treated as nothing more than an unknown file). This is true regardless of whether running in Visual Studio or IIS.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top