Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDebug custom moduleDebug custom module
Previous
 
Next
New Post
12/7/2010 10:32 PM
 
Hello,

I'm new to DNN module development. I have created a new project in VS2010 and created a test.aspx page that I put my user controls into to run and test locally. When I install that package in DNN, it installs fine and produces no errors. However at run time, I get an error...I have no idea how to debug this within the DNN framework...is it only possible if I have a dev environment that has the entire DNN source in it?

Here is the error:
ModuleId: 1091
ModuleDefId: 242
FriendlyName: My Garage
ModuleControlSource: DesktopModules/Incite/MyGarage.ascx
AssemblyVersion: 5.5.1
PortalID: 0
PortalName: TheDynoRoom.com
UserID: 1
UserName: host
ActiveTabID: 453
ActiveTabName: Test Module 2
RawURL: /dynodnn/TestModule2.aspx
AbsoluteURL: /DynoDNN/Default.aspx
AbsoluteURLReferrer: http://localhost/dynodnn/TestModule2.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0C; .NET4.0E)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 9dd7c714-a0d8-4476-8abe-d1b835cd120f
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl() --- End of inner exception stack trace ---
Source
 
New Post
12/8/2010 6:37 PM
 
you can attach the debugger in vs.net to a running website process to debug - this is easy if it's on the same machine (and you're administrator), but can do done if it's on another machine if you set up remote debugging - http://msdn.microsoft.com/en-us/libra... .

However as a first start I'd recommend you compile your module in debug mode and deploy it and it's associated pdb files to the site - this will allow you to see the line of code where the failure occurs. Judging by your error message though I suspect you have a missing ascx file i.e. the LoadModuleControl core method is trying to load a control you defined in your manifest file but forgot to include

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
12/9/2010 10:45 AM
 
Thanks for the reply Cathal. Unfortunately I am using VS2010 Express, which I believe doesn't let me attach to processes with the debugger. I tried tried setting up my development environment with the source version of DNN but am struggling with that too as it is running into issues attempting to load several of the sub-projects. Is there any other way to debug a custom module in DNN without having to do it within the context of the full DNN source?
 
New Post
12/14/2010 2:10 AM
 
Hi

I did n't tried this but check the link below may helps you.

http://social.msdn.microsoft.com/Foru...

Thanks
Sibabrata Dash
www.mindfiresolutions.com
 
New Post
12/17/2010 3:18 AM
 
Well I got past that prior error by making my control inherit from portalmodulebase: Inherits Entities.Modules.PortalModuleBase Now I get this one: Any suggestions? AssemblyVersion: 5.5.1 PortalID: 0 PortalName: TheDynoRoom.com UserID: 1 UserName: host ActiveTabID: 453 ActiveTabName: Test Module 2 RawURL: /dynodnn/TestModule2.aspx AbsoluteURL: /DynoDNN/Default.aspx AbsoluteURLReferrer: http://localhost/dynodnn/Blog.aspx UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2 ( .NET CLR 3.5.30729; .NET4.0E) DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider ExceptionGUID: a3384358-9eaa-458c-ac3f-0ee910af8a71 InnerException: Conversion failed when converting from a character string to uniqueidentifier. FileName: FileLineNumber: 0 FileColumnNumber: 0 Method: System.Data.SqlClient.SqlConnection.OnError StackTrace: Message: DotNetNuke.Services.Exceptions.PageLoadException: Conversion failed when converting from a character string to uniqueidentifier. ---> System.Data.SqlClient.SqlException: Conversion failed when converting from a character string to uniqueidentifier. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.HasMoreRows() at System.Data.SqlClient.SqlDataReader.ReadInternal(Boolean setTimeout) at System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping) at System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue) at System.Data.Common.DataAdapter.Fill(DataTable[] dataTables, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at MyGarage.PopulateRootLevel() at MyGarage.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.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace --- Source:
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDebug custom moduleDebug custom module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out