Wrox Programmer Forums
|
BOOK: Professional DotNetNuke Module Programming ISBN: 978-0-470-17116-5
This is the forum to discuss the Wrox book Professional DotNetNuke Module Programming by Mitchel Sellers and Shaun Walker - Wrox DotNetNuke Series Editor; ISBN: 978-0-470-17116-5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional DotNetNuke Module Programming ISBN: 978-0-470-17116-5 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 9th, 2009, 05:00 PM
Registered User
 
Join Date: Oct 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error: System.NullReferenceException

Thanks for writing this nice DNN programming book. I was surprised that I didn't spend a lot time and was able to create, complie, and run the example GuestbookCS on my local workstation. It works great. I was about to show this to my manager. Anyway, I went to a coworker's workstation, and typed in the link. Oops, IE gave me the following error. I had no problem to test my other ASP.NET applications from his workstation. Am I missing something here? Do I need to change settings on web.config? Any suggestion will be greatly appreciated.

Thanks.

Luke

************ Start Error info *****************

Server Error in '/DotNetNuke' Application.

--------------------------------------------------------------------------------

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.



Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
DotNetNuke.Entities.Portals.PortalSettings..ctor(I nt32 tabID, PortalAliasInfo objPortalAliasInfo) +48
DotNetNuke.HttpModules.UrlRewriteModule.OnBeginReq uest(Object s, EventArgs e) +2969
System.Web.SyncEventExecutionStep.System.Web.HttpA pplication.IExecutionStep.Execute() +68
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +75
 
Old October 9th, 2009, 05:11 PM
Wrox Author
 
Join Date: Jul 2008
Posts: 74
Thanks: 1
Thanked 8 Times in 8 Posts
Send a message via MSN to msellers
Default

My guess is that you have a local host setup (http://localhost/dnn) or some variation of that.

Within DNN you need to add a "PortalAlias" for the alternate form of the url, either http://yourip/dnn or http://yourmachine/dnn depending on if you are using the IP address or your computer name to access the site from elsewhere on the network.

You can add this under "Admin" -> "Site Settings" when logged in as the host user.
__________________
Mitchel Sellers
Microsoft C# MVP, MCITP
Director of Development
IowaComputerGurus Inc.

My blog for .NET and DotNetNuke info

Author of "Professional DotNetNuke Module Programming"

Tech Editor on "Visual Studio 2010 six-in-one" and "Pro C# 4.0"
 
Old October 13th, 2009, 08:31 AM
Registered User
 
Join Date: Oct 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Smile

That's it. Thanks for your help. Also, I just realize I shouldn't post this question in this forum. I should search (or post) this problem on DotNetNuke forum.

Your forum has been a big help for me. I was able to find answers of all my questions from this forum. Thank you.

Luke





Similar Threads
Thread Thread Starter Forum Replies Last Post
System.NullReferenceException JayLou BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 1 April 6th, 2007 12:55 PM
System.NullReferenceException m_rajib74 C# 0 March 5th, 2007 04:50 AM
System.NullReferenceException lwheless BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 September 24th, 2006 05:47 AM
System.NullReferenceException on WebService Objec ag19702004 General .NET 0 December 23rd, 2005 04:16 PM
System.NullReferenceException on WebService Objec ag19702004 .NET Web Services 0 December 23rd, 2005 02:05 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.