0

Is it possible to do away with the web.config file in the Views folders of an MVC application?

Due to a bug in the encryption feature of Web Deploy I need to just use a single web.config file in the root of the site.

see: MSDeploy automatic encryption of connection strings, key not found in dictionary

Community
  • 1
  • 1
FloatLeft
  • 1,317
  • 3
  • 23
  • 40
  • The web.config in the Views directory prevents ASP.NET \ IIS from serving up view files (among other things). I'll recommend you figure something else out. – Mike Cheel Mar 12 '14 at 20:12
  • I was hoping I could use the location node of the root web config to specifically target the views folder. Ok, no worries. – FloatLeft Mar 12 '14 at 20:34
  • Have you tried adding an empty configuration section in the Views web.config? Also, you can decompile the msdeploy.dll code and see what it is doing for yourself. – Mike Cheel Mar 12 '14 at 21:01
  • I don't see why you can't wrap it in a location tag in the root config, it still blocks the Views folder from being served up. But, like Mike says, maybe it's better to investigate the cause of the deployment issue. – Andrew McLachlan Mar 13 '14 at 06:01

0 Answers0