Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在visual studio 2010 for.NET 2.0中创建强类型数据集_.net_Vb.net_Compilation_Dataset_Strongly Typed Dataset - Fatal编程技术网

如何在visual studio 2010 for.NET 2.0中创建强类型数据集

如何在visual studio 2010 for.NET 2.0中创建强类型数据集,.net,vb.net,compilation,dataset,strongly-typed-dataset,.net,Vb.net,Compilation,Dataset,Strongly Typed Dataset,我在VS2010中创建了一个数据集,并尝试构建一个引用该数据集的ASP.NET网站 然而,当我试图编译这个网站的时候,我得到了很多错误 我在Dataset的声明中看到,版本4.0.0.0中的TypedDataSetGenerator到处都被引用 <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.

我在VS2010中创建了一个数据集,并尝试构建一个引用该数据集的ASP.NET网站

然而,当我试图编译这个网站的时候,我得到了很多错误

我在Dataset的声明中看到,版本4.0.0.0中的TypedDataSetGenerator到处都被引用

<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")>  _
_
所以现在我想这就是问题所在,因为我在GAC中注册了一些.NET4.5DLL

如何使用.NET Framework 2.0编译数据集

谢谢你的时间


//编辑:我从GAC卸载了那些.NET 4.5 DLL,但在尝试构建时仍然会出现相同的错误。

我已经接近解决方案了

在卸载了那些.NET4.5DLL之后,我当然还必须重新启动VisualStudio才能使更改生效

现在我可以编译没有错误了

(但如果我在针对.NET2.0框架时可以不使用.NET4.0编译器进行构建,那还是不错的,但我想这是一种错觉。)