Title: Problems with IIS 7.0 installed ASP.NET 4.5 runtime
Tags: asp.net
Question: So, I have some tasks to update some programs that already run in production. The UAT and production server is using IIS 7.0 which already installed with ASP.NET 4.5 runtime, and the local development is using IIS 7.5.
Things are so smooth in the development, until I try to publish it to the UAT.
This is the error message:
0x80070032 - The configuration section 'connectionStrings' cannot be read because it is missing a section declaration.
I then change the Application Pool from "DefaultAppPool" to "ASP.NET v4.0", well that fix the problem.
But, the web app's CSS and Javascript doesn't work. Well maybe that because the development is in 4.5 that using WebOptimization features such as bundling and minification.
The solution now is to set the debug=true in web.config, and it can work properly.
I think this solution is not the best for deploying the web app. I still don't understand why it can only run in application pool ASP.NET v4.0, I always deploy my apps using "DefaultAppPool" before. And why the css and js isn't working? Can anyone explain me this about problem, or give a best practice solution?



{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 0, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2017:00:04/10/17', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<asp.net>', 'Title': 'Problems with IIS 7.0 installed ASP.NET 4.5 runtime', 'ViewCount': 41, 'id': 43317230, 'user_AboutMe': None, 'user_AccountId': 5174879.0, 'user_DisplayName': 'grayfield', 'user_Reputation': 129.0, 'user_Views': 18.0, 'user_id': 4142360.0}}