CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.dotnetnuke.custom_modules Tags:
Item Type: NewsGroup Date Entered: 2/9/2006 2:12:29 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 21 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
plippard
Asp.Net User
Edit User Control Not Loading2/9/2006 2:12:29 AM

0/0

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

 

imagemaker
Asp.Net User
Re: Edit User Control Not Loading2/9/2006 2:49:11 AM

0/0

Have you checked that the Inherits property in the control's <  %@ . . . % > directive was properly changed to match the new namespace given to the .cs file in the code behind?
Bill, WESNet Designs
plippard
Asp.Net User
Re: Edit User Control Not Loading2/9/2006 4:06:36 PM

0/0

Thanks for the suggestion.... however I have already checked this.

Any other suggestions are welcome.

Can anyone suggest a means of getting better diagnostic info out of DNN... so I can zero in on this problem ?

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
Professional C# Authors: Simon Robinson, Christian Nagel, Karli Watson, Jay Glynn, Morgan Skinner, Bill Evjen, Pages: 1224, Published: 2004
ASP.NET: Tips, Tutorials, and Code Authors: Scott Mitchell, Pages: 878, Published: 2002
Mastering ASP.NET with C# Authors: A. Russell Jones, Pages: 816, Published: 2002
ASP.NET Kick Start: Kick Start Authors: Stephen Walther, Pages: 624, Published: 2002
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006
Beginning Web Programming with HTML, XHTML, and CSS Authors: Jon Duckett, Pages: 840, Published: 2004
C# Complete Authors: Matt Tagliaferri, Sybex Inc, Sybex Inc, Pages: 1008, Published: 2003
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005

Web:
Dynamic Loading of ASP.NET User Controls: ASP Alliance Title: dynamic loading user control Name: Mag Date: 5/6/2005 3:08:36 AM Comment: I tried the above but using VB.NET's syntax. The user control does not ...
CodeProject: Dynamically Loading User Control on a Webform using ... This is obviously not a best practices approach to User Controls or the loading thereof. The bottom line is that you are misleading many other newbies who ...
Boost ASP.NET performance with deferred content loading | Encosia I suppose this only works if the usercontrol does not have asp.net form controls .... A year from now, I would much rather edit a user control template than ...
Dynamically (or programatically) Loading User Controls in ASP.NET 2.0 You are not loading the user control dynamically (programatically), this is loading the control declaratively in the markup (read:aspx page). ...
Loading a usercontrol from a different usercontrol - Spring ... I also tried to load add the usercontrol to the ContentPlaceHolder. ... You may not post attachments. You may not edit your posts ...
object reference-error with programmatically loading user control When I declaratively add the user control to my page, everything's ok, .... You may not post attachments. You may not edit your posts ...
Create Usercontrol and add children in Xaml : The Official ... UserControl does not have Children collection. Only Panel has. ... Loading... Joined on 06-18-2007 Posts 310. 10-07-2008 12:40 PM ...
Add User Control 'n' times to web page not possible? - ASP.NET Forums Loading... nagsline; Joined on 09-07-2006, 7:00 AM; Posts 108 ... If it's a UserControl, you can load them dynamically but not the way you're trying! ...
Please Help! Urgent! - User Control not Displayed in Development ... Edit my Profile ... Despite my efforts is not displaying these user controls. ... prepare User Control for loading on web page ...
Loading User Control Dynamically - DevX.com Forums Loading User Control Dynamically ASP.NET. ... You may not post replies. You may not post attachments. You may not edit your posts ...

Videos:
How to download Sony Vegas Pro 8.0 Full Free-Verison I DO NOT OWN SONY OR ANY OF THEIR PRODUCTS AND I DO NOT ENDORSE THEM IN ANY WAY. I DO NOT INTEND TO USE SONY FOR ANY COPYRIGHT SERVICES, ONLY FOR PER...
YouTube Player APIs and Tools Tutorial Stephanie Liu gives a short tutorial on the basic functionality available in the JavaScript and Flash player APIs, as well as the Chromeless Player. ...
Developing JavaScript with Chickenfoot Google TechTalks July 25, 2006 Rob Miller Michael Bolin ABSTRACT Chickenfoot is a Firefox extension that embeds a JavaScript programming environmen...
Objects: they just work Google London Test Automation Conference (LTAC) Google Tech Talks September 8th, 2006 Presenter: Bob Binder
Web Applications and the Ubiquitous Web Google TechTalks February 1, 2006 Dave Raggett Dave Raggett is currently a W3C Fellow from Canon, and W3C Activity Lead for Multimodal Interaction....
A New Way to look at Networking Google Tech Talks August 30, 2006 Van Jacobson is a Research Fellow at PARC. Prior to that he was Chief Scientist and co-founder of Packet Design. P...
Looming City Bankruptcy?; Online Searching Risks; Public Square: Minimum Wage What is the prognosis for San Diego's troubled financial future? City officials and residents alike are looking for answers. Days after news that San...
django: Web Development for Perfectionists with Deadlines Google TechTalks April 26, 2006 Jacob Kaplan-Moss ABSTRACT Django is one of the premier web frameworks for Python, and is often compared to Ruby-on...
Charlie Rose - Tim Russert / Boone Pickens Segment 1: Tim Russert, moderator of "Meet The Press" discusses his new book, "Wisdom of Our Fathers". Segment 2: A conversation about energy with...




Search This Site:










web application project in visual web developer?

help: customroleprovider & custommembershipprovider & something missing

stored procedure for new portal creation ?

need tips on solpart menu module again

problem with front page

debugging a project in another solution

system.unauthorizedaccessexception: access refused

dll-problem too - perhaps in an other way ;-)

forgot password problem

cannot get intellisense to work in c#

customize the solpartmenu bar color

formsauthentication with membership provider slow

feb ctp membership/login problems

forms auth not working correctly

ibuyspy store configuration failed!

server control inherited from datalist

problems with isinrole

visual web developer & iso-8859-2

how to identify the authenticated request user

how to: approve registered users?

verify signature

error on every second attempt to access a web service !

ssl certificate for 3 websites

how to show multiple blocks for one module?

hosting-personalsite straterkit at http://www.vwdhosting.net

how to limit rss records?

setting up the ibuyspy portal on an sql 2000 server

login isn't working

core events module on dnn 3.0.11

looking for documentation or tutorials for integration of a commericial asp.net program storefront

 
All Times Are GMT