MVC .net framework 4.5 发布 浏览时显示目录
问题:在IIS发布的mvc网站,浏览时显示为网站目录。
刚开始没有注意以为mvc程序是4.0 后发现配置文件中目标框架为4.5
<system.web>
<compilation targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
上图这里CLR虽选的是4.0 也是支持4.5的,
主要是在添加角色功能这里要选上4.5相关的,如图
问题:在IIS发布的mvc网站,浏览时显示为网站目录。
刚开始没有注意以为mvc程序是4.0 后发现配置文件中目标框架为4.5
<system.web>
<compilation targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
上图这里CLR虽选的是4.0 也是支持4.5的,
主要是在添加角色功能这里要选上4.5相关的,如图