首页 新闻 赞助 找找看

使用 Jexus 6.1 部署的 ASP.NET 网站出现的运行错误

0
悬赏园豆:10 [已解决问题] 解决于 2020-05-28 10:11

使用 Jexus 6.1 部署 ASP.NET 网站出现的运行错误

某一些界面可以正确运行

但是遇到列表界面就出现以下错误

这是什么问题?

难道是程序集出现冲突?

错误信息:

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
baicexxqtd的主页 baicexxqtd | 初学一级 | 园豆:26
提问于:2020-05-27 10:47
< >
分享
最佳答案
0

这个不是Jexus的锅, 具体报错我也不明白,在webform写了一个关于Dictionary.Single的操作,然后就报错,硬是不认后来我封装在CS界面了,在前端调用CS里面的方法得到结果就可以了...

baicexxqtd | 初学一级 |园豆:26 | 2020-05-28 09:37

有的时候VS也不认

baicexxqtd | 园豆:26 (初学一级) | 2020-05-28 09:38
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册