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  |  

Maximum ASP
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  User Control Failes to Load
Previous Previous
 
Next Next
New Post 2/8/2006 5:59 PM
User is offline Philip Lippard
82 posts
www.sanibellogic.com
10th Ranked




User Control Failes to Load 

I have installed DNN 3.2.2 and I have written a C# custom module, and had it working last night… until I decided to use a different namespace for my code… to ensure no conflicts within the many DotNetNuke namespaces.   Originally, I was using the DotNetNuke.Modules.SmartNews namespace.  My module is an enhanced version of the RSS News Feeder.  I changed the high level portion of the namespace to make it unique for my company.

 

After making the namespace change, my edit module is failing to load when attempting to edit the Module settings after having successfully inserted the module onto a web page.   I see the following info in the log viewer.

 

 

ModuleId: -1
ModuleDefId: -1
FriendlyName:
ModuleControlSource:
AssemblyVersion: 03.02.02
Method: System.Web.Compilation.BaseCompiler.ThrowIfCompilerErrors
FileName:
FileLineNumber: 0
FileColumnNumber: 0
PortalID: 0
PortalName: My Website
UserID: 1
UserName: host
ActiveTabID: 36
ActiveTabName: Home
AbsoluteURL: /DotNetNuke/Default.aspx
AbsoluteURLReferrer: http://localhost/DotNetNuke/Home/tabid/36/Default.aspx
ExceptionGUID: 6e3a0c7d-cc92-4cd1-adbf-c6b347729afa
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
InnerException: External component has thrown an exception.
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: External component has thrown an exception. ---> System.Web.HttpException: External component has thrown an exception. ---> System.Web.HttpCompileException: External component has thrown an exception. at System.Web.Compilation.BaseCompiler.ThrowIfCompilerErrors(CompilerResults results, CodeDomProvider codeProvider, CodeCompileUnit sourceData, String sourceFile, String sourceString) at System.Web.Compilation.BaseCompiler.GetCompiledType() at System.Web.Compilation.UserControlCompiler.CompileUserControlType(UserControlParser ucParser) at System.Web.UI.UserControlParser.CompileIntoType() at System.Web.UI.TemplateParser.GetParserCacheItemThroughCompilation() --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean fCreateIfNotFound) at System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath() at System.Web.UI.TemplateParser.GetParserCacheItem() at System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem(String virtualPath, String inputFile, HttpContext context) at System.Web.UI.TemplateControlParser.GetCompiledType(String virtualPath, String inputFile, HttpContext context) at System.Web.UI.UserControlParser.GetCompiledUserControlType(String virtualPath, String inputFile, HttpContext context) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) in C:\DotNetNuke_3_2_2\admin\Skins\Skin.vb:line 466 --- End of inner exception stack trace ---
StackTrace:
Source:
Server Name: THINKPADT42

 

 

I have placed a breakpoint at C:\DotNetNuke_3_2_2\admin\Skins\Skin.vb:line 466 and I see that an exception is occurring at line 466….which is the following VB statement...

 

 

objPortalModuleBase = CType(Me.LoadControl("~/" & objModule.ControlSrc), PortalModuleBase)

 

 

The LoadControl is being attempted for a “ascx” user control…. and the “ascx” file resides where it is expected to be.

 

The companion edit module inherits from DotNetNuke.Entities.Modules.PortalModuleBase, however I can not figure out why the exception is occurring.   Both “ascx” file and companion “ascx.cs” file are where expected.

 

Please … any suggestions ???… this is one of those problems which has consumed many hours.

 

Thanks

 
New Post 8/29/2006 8:47 AM
User is offline Simon Pham
9 posts
10th Ranked


Re: User Control Failes to Load 
Hi plippard,
I have the exactly same problem but with DNN 4.3. Have you resolved it? I have spent 2 day with this. Please, post your solution.
Thank.
 
New Post 8/29/2006 1:54 PM
User is offline Philip Lippard
82 posts
www.sanibellogic.com
10th Ranked




Re: User Control Failes to Load 

This problems was many moons ago.

I was never ever able to resolve this problem.  The only resolution was to use the DotNetNuke namespace.

 
New Post 8/30/2006 7:30 AM
User is offline Ryan Jagdfeld
15 posts
www.yogit.com
10th Ranked


Re: User Control Failes to Load 

Did you change the Inherits parameter in the @Control directive of the ASCX file to the new Namespace? Is your root namespace property of your project blank? Also, I've gotten this error when my data provider project was not “rebuilt” after changing the namespace.

Just some small things to check... hope that helps,

yogs

 
New Post 8/30/2006 7:48 AM
User is offline ech01
631 posts
7th Ranked




Re: User Control Failes to Load 

Nearly always, this is an issue with conflicting namespaces. Check all files and be sure your consistent (look at the html in the ascx file too.)

<%@ Control Language="vb" AutoEventWireup="false" Codebehind="Test.ascx.vb" Inherits="Namespace.ClassName" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>


www.blackhawksurfaces.com | www.nlsales.com | www.midwestfilmandvideo.com
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  User Control Failes to Load
 


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.

 


Cygnusoft Custom Software
Cygnusoft has been providing cutting-edge custom software solutions for 20 years. Cygnusoft is also a leading start-up incubator, helping our partners build successful new businesses.
www.cygnusoft.com
Digicon: DotNetNuke design and development
Digicon is based in Brisbane, Queensland, Australia
digicon.com.au
Live Visitor Tracking & Live Chat For DotNetNuke
Track your visitors in real time and add live chat for sales & support. Free Trial.
www.whoson.com

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