ASP.NET 2.0 Profile - Must have FULL type property in web.config

Just want to share something. Noobie tips.

This is the right way of having a profile property. Must have the full type :)

<add name="someobject" type="System.Data.DataTable" />

Do not do this as below

<add name="someobject" type="DataTable" />

You will get a runtime error when you try to read from this property. I guess maybe the System.Data namespace is not generated automatically like

using System.Data;

....

upon this Profile property. Correct me if I am wrong. Just my another noobie assumption.

Cheers.

Published Thursday, March 30, 2006 6:36 PM by chuawenching