某一些界面可以正确运行
但是遇到列表界面就出现以下错误
这是什么问题?
难道是程序集出现冲突?
错误信息:
CS1061: Type `System.Collections.Generic.Dictionary' does not contain a definition for `Single' and no extension method `Single' of type `System.Collections.Generic.Dictionary' could be found. Are you missing `System.Linq' using directive?
System.Web.Compilation.CompilationException (0x80004005): CS1061: Type `System.Collections.Generic.Dictionary' does not contain a definition for `Single' and no extension method `Single' of type `System.Collections.Generic.Dictionary' could be found. Are you missing `System.Linq' using directive? at System.Web.Compilation.AssemblyBuilder.BuildAssembly (System.Web.VirtualPath virtualPath, System.CodeDom.Compiler.CompilerParameters options) [0x00312] in <02e1e87887554e48b2a3b125d1a3e043>:0 at System.Web.Compilation.AssemblyBuilder.BuildAssembly (System.Web.VirtualPath virtualPath) [0x00008] in <02e1e87887554e48b2a3b125d1a3e043>:0 at System.Web.Compilation.BuildManager.GenerateAssembly (System.Web.Compilation.AssemblyBuilder abuilder, System.Web.Compilation.BuildProviderGroup group, System.Web.VirtualPath vp, System.Boolean debug) [0x00202] in <02e1e87887554e48b2a3b125d1a3e043>:0 at System.Web.Compilation.BuildManager.BuildInner (System.Web.VirtualPath vp, System.Boolean debug) [0x00106] in <02e1e87887554e48b2a3b125d1a3e043>:0
这个不是Jexus的锅, 具体报错我也不明白,在webform写了一个关于Dictionary.Single的操作,然后就报错,硬是不认后来我封装在CS界面了,在前端调用CS里面的方法得到结果就可以了...
有的时候VS也不认