类型"System.Web.UI.WebControls.SessionParameter"没有名为"DbType"的公共属性 [英] Type 'System.Web.UI.WebControls.SessionParameter' does not have a public property named 'DbType'

查看:64
本文介绍了类型"System.Web.UI.WebControls.SessionParameter"没有名为"DbType"的公共属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在ObjectDataSource上使用会话参数.在本地开发计算机上运行正常,但是将网站复制到生产服务器后出现此错误:

I am using a Session Parameter on an ObjectDataSource. It works fine on the local development machine but I get this error after copying the website to the production server:

类型'System.Web.UI.WebControls.SessionParameter'没有名为'DbType'的公共属性.

Type 'System.Web.UI.WebControls.SessionParameter' does not have a public property named 'DbType'.

推荐答案

再次与我见面!

我给出的第一个答案是错误的!
正确答案是已安装.NET Framework v3.5,并且需要将其更新为.NET Framework 3.5 SP1

First Answer I gave was WRONG!
Correct answer is that .NET Framework v3.5 was installed, and it needs to be updated to .NET framework 3.5 SP1

这篇关于类型"System.Web.UI.WebControls.SessionParameter"没有名为"DbType"的公共属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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