With .Net Framework 1.1 I successfully used ComponeneOne WebGrid control. I am now attempting a move to DNN 4.0.3.
When I attempt to load a module containing the C1 webgrid I get an exception:
"Attempted to access a field that is not accessible by the caller"
It fails in Skin.VB at line 466:
objPortalModuleBase =
CType(Me.LoadControl("~/" & objModule.ControlSrc), PortalModuleBase)
It is enough to just place the C1WebGrid on the page to cause the error at run time. It just cannot load a module containing this control. A standard out of the box VS2005 grid causes no trouble.
Has anyone else tried using C1 controls?
Declan
DotNetNuke.Services.Exceptions.ModuleLoadException: Attempted to access a field that is not accessible by the caller. --->
System.Web.HttpParseException: Attempted to access a field that is not accessible by the caller. ---> System.FieldAccessException: Attempted to access a field that is not accessible by the caller. at System.Reflection.RtFieldInfo.PerformVisibilityCheckOnField(IntPtr field, Object target, IntPtr declaringType, FieldAttributes attr, UInt32 invocationFlags) at System.Reflection.RtFieldInfo.InternalGetValue(Object obj, Boolean doVisibilityCheck, Boolean doCheckConsistency) at System.Reflection.RtFieldInfo.GetValue(Object obj) at System.Attribute.GetHashCode() at C1.Util.DLL2XSD.IntellisenseAttribute.b() at System.ComponentModel.ReflectTypeDescriptionProvider.ReflectedTypeData.GetAttributes() at System.ComponentModel.TypeDescriptor.TypeDescriptionNode.
DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetAttributes() at System.ComponentModel.TypeDescriptor.GetAttributes(Type componentType) at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildBuildMethod(ControlBuilder builder, Boolean fTemplate, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse, Boolean fControlSkin) at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) at System.Web.Compilation.TemplateControlCodeDomTreeGenerator.BuildMiscClassMembers() at System.Web.Compilation.BaseCodeDomTreeGenerator.BuildSourceDataTree() at System.Web.Compilation.BaseTemplateBuildProvider.GenerateCode(AssemblyBuilder assemblyBuilder) at System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider) --- End of inner exception stack trace --- at System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider) at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) in C:\Inetpub\wwwroot\BradyCo\Library\Components\Skins\Skin.vb:line 466 --- End of inner exception stack trace ---