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

October 9th, 2009, 06:00 PM
|
|
Registered User
|
|
Join Date: Oct 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

October 9th, 2009, 06:11 PM
|
|
Wrox Author
|
|
Join Date: Jul 2008
Location: Des Moines, IA, USA.
Posts: 43
Thanks: 0
Thanked 6 Times in 6 Posts
|
|
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"
|

October 13th, 2009, 09:31 AM
|
|
Registered User
|
|
Join Date: Oct 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |