p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 9th, 2009, 06:00 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old October 9th, 2009, 06:11 PM
Wrox Author
Points: 201, Level: 4
Points: 201, Level: 4 Points: 201, Level: 4 Points: 201, Level: 4
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2008
Location: Des Moines, IA, USA.
Posts: 43
Thanks: 0
Thanked 6 Times in 6 Posts
Send a message via MSN to msellers Send a message via Skype™ 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"

Author on "Visual Studio 2010 six-in-one" and "Pro C# 4.0"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old October 13th, 2009, 09:31 AM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

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 01: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 06: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



All times are GMT -4. The time now is 05:47 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc