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: 3/9/2006 2:27:33 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 31 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
1 Items, 1 Pages 1 |< << Go >> >|
NDLanding
Asp.Net User
Error Handling: ProcessModuleLoadException3/9/2006 2:27:33 PM

0/0

Hi,

I've developed a module comprising of a couple of controls (e.g. one of type View, another of type Edit etc.). The view control comprises of a menu system and a placeholder. At runtime depending on which menu item is selected I dynamically load a user control (using the LoadControl method) into the placeholder - essentially providing me with mutiple interfaces. Anway I wish to use DotNetNuke's exception class to handle errors in the dynamically loaded parts of my module, however if I call ProcessModuleLoadException(me, exc) as I've seen it used, from within the click event of a button for example, I always get the following error displayed:

A critical error has occurred.
Object reference not set to an instance of an object.

This occurs no matter what the actual error is (e.g. either a simple division by zero error will produce the same result as a data access error). It seems that something in the error handling chain is falling over - or I'm passing in the wrong arguments. Through trial and error I've found that if I use ProcessModuleLoadException(me.Parent, exc)  instead - it seems to work, i.e. I'll get the actual error presented on the page or if I use ProcessModuleLoadException("Custom message" me.Parent, exc, True) I can provide a custom message. Please could someone explain why I have to do this (i.e. use me.Parent instead of simply me)? In the ProcessModuleLoadException declaration the first argument (i.e. the me part) is declared as Entities.Modules.PortalModuleBase. My module and the user controls I load dynamically all inherit from this class.

Thanks,

Norm

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


Free Download:

Books:
Professional DotNetNuke 4: Open Source Web Application Framework for ASP.NET 2.0 Authors: Shaun Walker, Joe Brinkman, Bruce Hopkins, Scott McCulloch, Patrick J. Santry, Chris Paterra, Scott Willhite, Dan Caron, Pages: 517, Published: 2006

Web:
DNN 2.1.2: Streams and ProcessModuleLoadException issue - ASP.NET ... No error occurs to cause ProcessModuleLoadException to run. ... but would prefer to keep it within the confines of DNN's exception handling. ...
ng.asp-net-forum.dotnetnuke-custom_modules/7 - Fix error problem ... Error Handling: ProcessModuleLoadException, 0, 9, 9/7/2008 1:28:18 AM. New Module for Portal Community Managers, 0, 1, 9/7/2008 1:28:13 AM ...
DNN Statistics Module ? - ng.asp-net-forum.dotnetnuke ... error handling: processmoduleloadexception · dnn 4 newbie: creating a custom module · alternate links module · dnn portal store 6.5 shipping modules? ...
DotNetNuke Modules - Exceptions the DNN Way Everyone knows (or should know) that handling exceptions is a fundamental ... You would then pass that new exception into ProcessModuleLoadException(). ...
Error trying to setup Dynamic User Directory > DotNetNuke Module ... Programming Tips - Application Error Handling · User Feedback Messages .... ProcessModuleLoadException(PortalModuleBase ctrlModule, Exception exc) at ...
Error trying to setup Dynamic User Directory > DotNetNuke Module ... Programming Tips - Application Error Handling .... ProcessModuleLoadException( PortalModuleBase ctrlModule, Exception exc) at DataSprings. ...
Core DotNetNuke APIs The most widely used method for exception handling is. DotNetNuke.Services. Exceptions.ProcessModuleLoadException() . ProcessModuleLoadException Method ...
COPYRIGHTED MATERIAL error handling, helper functions, 411–412. error messages. See also troubleshooting installation ..... ProcessModuleLoadException method, 254–256, 412 ...
Error handling in DNN - ASP.NET Forums Does anyone else have any ideas for better error handling? ..... exceptions bubble up using the standard ProcessModuleLoadException method. ...
Search is currently unavailable - Blog Module [Lead: Antonio ... ProcessModuleLoadException(Me, exc) ... rant I am prepared to assist in adding such error handling to DNN code, if such help is desired. ...




Search This Site:










css code folding

create module using oracle data provider

extending the login p[rocess

login form

random letters on homepage

treeview displays only text

basic needs to make the transition from cf to .net

what is what of .net

application for project 'http://localhost/project' is not installed.

gridviews, itemstyles, and skinning

how to authenticate against alternate data source

web service cannot access personal profile properties

text formatting??

index out of range - seraching active directory

<profile> processes

datetime substraction

off topic for outlook mapi gurus

how to disable a tabstrip tab from javascript.

user/role assignment module for dnn 2.1.2

need help launching asp site

cannot change dynamically the title of my page when using a master page

configuring impersonation

allow users to change their email address

menu not updating when using web.sitemap

java/struts programmer learning asp

remote debugging

how to remove the separator?

logic verification

bring2mind - rssxtra: calling peter donker...

capture values of non-asp.net textboxes

 
All Times Are GMT