So I just tried this out and I'm getting a Security Exception see below.
I'm running my web app under medium trust locally, since my hosting provider restricts me to running my web apps under medium trust.
When I switch my app to full trust in the web.config, the Datasource control works fine.
Any thoughts on whether I can get around this somehow?
Below is the exception information:
[SecurityException: Request failed.]
System.Reflection.CustomAttribute._CreateCaObject(Void* pModule, Void* pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs) +0
System.Reflection.CustomAttribute.CreateCaObject(Module module, RuntimeMethodHandle ctor, IntPtr& blob, IntPtr blobEnd, Int32& namedArgs) +104
System.Reflection.CustomAttribute.GetCustomAttributes(Module decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes) +482
System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit) +258
System.RuntimeType.GetCustomAttributes(Type attributeType, Boolean inherit) +63
System.ComponentModel.ReflectTypeDescriptionProvider.ReflectGetAttributes(Type type) +262
System.ComponentModel.ReflectedTypeData.GetAttributes() +64
System.ComponentModel.DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetAttributes() +50
System.ComponentModel.TypeDescriptor.GetAttributes(Type componentType) +26
System.ComponentModel.ReflectedTypeData.GetConverter(Object instance) +274
System.ComponentModel.DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetConverter() +55
System.ComponentModel.TypeDescriptor.GetConverter(Type type) +17
System.Web.UI.ObjectStateFormatter.SerializeValue(SerializerBinaryWriter writer, Object value) +2261