验证(HTML5):不支持元素"T" [英] Validation(HTML5): Element 'T' is not supported

查看:78
本文介绍了验证(HTML5):不支持元素"T"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用MVC5开发一个Web应用程序.

I am developing a web application in MVC5.

而且我正尝试在View中使用模型,如快照所示-

And I am trying to use model in View as shown in snapshot -

模型面临的问题.我尝试了一些解决方案,但没有解决方案-

Faced problem for model too. I tried some solutions as (but none fixed it) -

(1)删除位置 E:\ Users \ V.S的文件夹的所有文件.基于根驱动器和安装的Visual Studio版本的Saini \ AppData \ Roaming \ Microsoft \ VisualStudio \ 11.0 \ ReflectedSchemas .

由于我使用的是VS 2012,因此路径为.

Since I am using VS 2012, so the path is.

(2)有一个解决方案,建议在Views的web.config中将剃须刀版本从2.0升级到3.0.但是没用.

(2) There was a solution suggesting upgrade of razor version from 2.0 to 3.0 in web.config in Views. But not worked.

您能帮我解决此问题吗?

Could you please help me to fix this issue?

推荐答案

好!解决此问题是一项艰巨的任务.

首先,由于从VS 2012中的 Nuget Package Manager 更新了与MVC相关的其他引用(从v4到v5),创建了这些混乱.

First of all this mess was created due to updating different MVC related references (v4 to v5) from Nuget Package Manager in VS 2012.

(1)首要任务是根据链接

(1) The first and utmost task is to cross-check your existing web.config (both in root and Views folder) as per the link How to Upgrade an ASP.NET MVC 4 and Web API Project to ASP.NET MVC 5 and Web API 2.

(2),然后从链接

(2) Then downloaded the update at link ASP.NET and Web Tools 2013.1 for Visual Studio 2012. Close all Visual Studio instances and then run this update.

(3)打开Visual Studio并重新生成MVC解决方案.

(3) Open Visual Studio and re-build MVC solution.

哇!弯曲的错误线被删除,VS开始识别剃须刀关键词.:)

这篇关于验证(HTML5):不支持元素"T"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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