Link to home
Start Free TrialLog in
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?
Avatar of naspinski
naspinski
Flag of United States of America image

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.
Avatar of jmarbutt
jmarbutt

ASKER

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
Avatar of jmarbutt
jmarbutt

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
On some servers DbType works, on some servers DbTypes doesn't work. It's just a bug in Microsoft.Net.
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