Avatar of jmarbutt
jmarbutt asked on

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

I am getting this error:

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

From this line:

<asp:Parameter DbType="Guid" Name="Role_GUID" />


I don't get it on my development machine but I get it on our production server. What am I missing on the production server?
Editors IDEsASP.NETMicrosoft IIS Web Server

Avatar of undefined
Last Comment
asanhaji

8/22/2022 - Mon
naspinski

That means somewhere on your development machine, you have extended the parameter type.  DbType is not a mornal property of it, someone had to make that custom.
ASKER
jmarbutt

I only used the design time tools for this so that is what is odd, I simply dragged a data set on to the form and it created it.
ASKER CERTIFIED SOLUTION
jmarbutt

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
alexmiby

On some servers DbType works, on some servers DbTypes doesn't work. It's just a bug in Microsoft.Net.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
asanhaji

Its a known problem when developing under framework 2.0 and installing the 3.5 sp1, this attribute appears but its a part of the framework 3.5 sp1.
To quickly solve the problem edit the aspx page (fix the problem for this page only) or install the framework 3.5 sp1 (fix the problem for the whole server)
regards