尝试在浏览器中查看HTML时,类未注册错误 [英] Class not registered error when trying to view HTML in browser
本文介绍了尝试在浏览器中查看HTML时,类未注册错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试在浏览器中查看我的HTML页面时,会弹出一个框,说明:"操作无法完成。班级未注册。" 我两天前安装了Visual Studio,但我没有遇到任何其他问题。
When I try to view my HTML page in a browser, a box pops up stating: "The operation could not be completed. Class not registered." I installed Visual Studio two days ago, but I have had no other issues with it.
推荐答案
嗨朋友,
欢迎来到MSDN论坛。
Welcome to MSDN forum.
请在Web.config中输入以下值:
Please the below value in your Web.config:
<appSettings>
<add key="webpages:Version" value="3.0.0.0" />
</appSettings>
请将值更改为" 3.0.0.0 " ;如果不是。
please change the value to "3.0.0.0" if it's not.
以及解决此问题的一些可能的解决方案,您可以参考以下内容:
And some possible solutions to fix this issue, you may refer to the below:
1.终止IIS Express。
2.删除所有.suo文件
3.关闭VS并重新启用打开它。
希望有所帮助。
祝你好运,
Fletcher
这篇关于尝试在浏览器中查看HTML时,类未注册错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文