Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

DotNetNuke Marketplace
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  ComponeneOne Grid
Previous Previous
 
Next Next
New Post 5/24/2006 4:16 AM
User is offline Declan Ward
145 posts
www.dws.ie
9th Ranked




ComponeneOne Grid 
Modified By Declan Ward  on 5/24/2006 2:43:30 PM)

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 ---


 
New Post 5/24/2006 9:56 AM
User is offline Declan Ward
145 posts
www.dws.ie
9th Ranked




Re: ComponeneOne Grid 

Rather than placing the grid on the ascx I tried creating it at run time. 

When I declare it :

Dim C1WebGrid2 As New C1.Web.C1WebGrid.C1WebGrid

I get an exception:

That assembly does not allow partially trusted callers.

How do I get around this?


 
New Post 5/24/2006 11:45 AM
User is offline Declan Ward
145 posts
www.dws.ie
9th Ranked




Re: ComponeneOne Grid 

On attempting to use C1WebGrid without placing the contrl on the ascx at design time I have tried creating the control at run time.  When I do this I get an exception:

A critical error has occurred.
That assembly does not allow partially trusted callers.

 

InnerException: That assembly does not allow partially trusted callers.
Message: DotNetNuke.Services.Exceptions.PageLoadException: That assembly does not allow partially trusted callers. ---> System.Security.SecurityException: That assembly does not allow partially trusted callers. at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) at dws.Modules.BradyCo_Diary.ViewBradyCo_Diary.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) The action that failed was: LinkDemand The Zone of the assembly that failed was: MyComputer --- End of inner exception stack trace ---


 
New Post 5/24/2006 12:24 PM
User is offline Declan Ward
145 posts
www.dws.ie
9th Ranked




Re: ComponeneOne Grid 

This problem seems to have something to do with Trust levels:

DotNetNuke.Services.Exceptions.ModuleLoadException: That assembly does not allow partially trusted callers. ---> System.Security.SecurityException: That assembly does not allow partially trusted callers. at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) at ASP.desktopmodules_bradyco_diary_viewbradyco_diary_ascx.__BuildControlC1WebGrid1() at ASP.desktopmodules_bradyco_diary_viewbradyco_diary_ascx.__BuildControlTree(desktopmodules_bradyco_diary_viewbradyco_diary_ascx __ctrl) in C:\Inetpub\wwwroot\BradyCo\Website\DesktopModules\BradyCo_Diary\ViewBradyCo_Diary.ascx:line 1 at ASP.desktopmodules_bradyco_diary_viewbradyco_diary_ascx.FrameworkInitialize() in C:\Inetpub\wwwroot\BradyCo\Website\DesktopModules\BradyCo_Diary\ViewBradyCo_Diary.ascx.vb:line 912306 at System.Web.UI.UserControl.InitializeAsUserControlInternal() at System.Web.UI.TemplateControl.LoadControl(IWebObjectFactory objectFactory, VirtualPath virtualPath, Type t, Object[] parameters) 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 The action that failed was: LinkDemand The Zone of the assembly that failed was: MyComputer --- End of inner exception stack trace ---


 
New Post 5/26/2006 1:25 AM
User is offline Declan Ward
145 posts
www.dws.ie
9th Ranked




Re: ComponeneOne Grid 

Changing trust level to full allows the grid load. I have been in contact with Component One and am hopeful of a resolution.

Thanks Cathal.

Change:
<trust level="Medium" originUrl="http://localhost/.*"/>

to:
<
trust level="Full" originUrl="http://localhost/.*"/>

 


 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  ComponeneOne Grid
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Viva Portals, L.L.C.
Expert module development and graphic design.
www.continure.com
DNN Photo Gallery
DNN Photo Gallery is a truly unique photo management module released January 1st 2006. With DNN Photo Gallery you can REALLY integrate images into your existing portal and make them look like they were designed for your site.
DNN Photo Gallery
Swirlhost Inc.
Affordable DotNetNuke Hosting, Skin Development, Custom Module Development, and DotNetNuke Consulting. We will install your preference of DNN and now host with us and get a free license for the Swirl AJAX Chatroom Module.
www.swirlhost.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP