在ASP.NET中的服务器错误页面版本信息 [英] Version Information on ASP.NET Server Error Page

查看:288
本文介绍了在ASP.NET中的服务器错误页面版本信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ASP.NET MVC5 Web应用程序配置为在.NET Framework版本4.5.1中运行。然而,我发现,当我得到一个应用程序运行时异常某种,在黄色的服务器错误页面底部显示的版本信息说以下内容:

I have a ASP.NET MVC5 Web Application configured to run on .NET Framework version 4.5.1. However, I notice that when I get an application runtime exception of some sort, the version information displayed at the bottom of the yellow server error page says the following:

版本信息:Microsoft .NET Framework版本:4.0.30319; ASP.NET版本:4.0.30319.34009

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34009

这是为什么不4.5.x?

Why is this not 4.5.x?

推荐答案

这是不实际的.NET framework版本。它是CLR的版本

That is not the actual .NET framework version. It is the version of the CLR.

从.NET 4至4.5.2是版本4介于2.0和3.5是2.0版本。

From .NET 4 up to 4.5.2 it is version 4. Between 2.0 and 3.5 it was version 2.0.

这也是在你的应用程序池的配置,你只能选择.NET 2或4的原因。

That is also the reason that in your application pool configuration you can only choose .NET 2 or 4.

请参阅 MSDN:.NET Framework版本和依赖上这件事情。

这篇关于在ASP.NET中的服务器错误页面版本信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆