Last post Jun 29, 2017 02:18 AM by zxj
Jun 21, 2017 03:33 PM|fullalovejames|LINK
I'm trying to deploy a web application locally but cannot run through IIS because :
"Could not determine which version of ASP.NET Web Pages to use"
It tells me to add the version in web.config - I notice there are two (one in the root and one in wwwroot). Changed both, same error.
Jun 22, 2017 06:42 AM|AngelinaJolie|LINK
.net core razor version?
No ,it is not about .net core.
I guess that you want to run a site using a different version of ASP.NET Web Pages, you can configure the site to do that.
Add this code :
<add key="webPages:Version" value="1.0"/>
Jun 22, 2017 09:02 AM|fullalovejames|LINK
Yes, I already followed those steps - I added it to the web config file and it gave the same error message.
It works fine when debugging
Jun 23, 2017 09:45 AM|AngelinaJolie|LINK
How about this, please make sure that is right for corresponding to your version
<add key="webPages:Version" value="2.0"/>
Please have a check.
Jun 23, 2017 01:42 PM|fullalovejames|LINK
You are correct but that wasn't the issue I was having. My issue was in IIS and not having everything installed that was required. Thanks
Jun 29, 2017 02:18 AM|zxj|LINK
ASP.NET WebPages requires a BOM on UTF-8 pages or it won't read the page as UTF-8. And if it doesn't do that, it won't output a UTF-8 encoded page.
<globalization fileEncoding="utf-8" />
to your config file.