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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...New site works on localhost but not from another machine.New site works on localhost but not from another machine.
Previous
 
Next
New Post
9/12/2008 3:00 PM
 

I have a brand new install of DNN 4.9 and am attempting my first DNN site.

I have a simple site with a custom skin.  It works fine if I RDP to the server and access it via localhost, but if I try to get at the page from a different machine it errors with:

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

Source Error:

Line 603:            Dim objSkin As UI.Skins.SkinInfo
Line 604:
Line 605:            PortalId = objPortalAliasInfo.PortalID
Line 606:
Line 607:            ' get portal settings

Source File: C:\Inetpub\wwwroot\DotNetNuke\Library\Components\Portal\PortalSettings.vb    Line: 605
 

I found threads regarding this type of error on older versions, and the fix was to change permissions on the directories to allow write.  I tried this but with no success.  I granted write access to both "NETWORK SERVICE" and "IIS_WPG" on both the DotNetNuke directory and its website subdirectory.  I even granted it to the anonymous user account just to be sure. 

Am I still missing a write permission, or is it another problem entierly?

 

The Event View stack trace:

AssemblyVersion: 04.09.00
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL: /dotnetnuke/website/Default.aspx
AbsoluteURL: /dotnetnuke/website/Default.aspx
AbsoluteURLReferrer:
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.5.30428)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: d083deca-c04c-41e7-b444-76e0752007b2
InnerException: Unhandled Error:
FileName: C:\Inetpub\wwwroot\DotNetNuke\Library\Components\Portal\PortalSettings.vb
FileLineNumber: 605
FileColumnNumber: 13
Method: DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings
StackTrace:
Message: System.Exception: Unhandled Error: ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 TabId, PortalAliasInfo objPortalAliasInfo) in C:\Inetpub\wwwroot\DotNetNuke\Library\Components\Portal\PortalSettings.vb:line 605 at DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabId, PortalAliasInfo objPortalAliasInfo) in C:\Inetpub\wwwroot\DotNetNuke\Library\Components\Portal\PortalSettings.vb:line 551 at DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) in C:\Inetpub\wwwroot\DotNetNuke\Library\HttpModules\UrlRewrite\UrlRewriteModule.vb:line 484 at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --- End of inner exception stack trace ---

Alan

 
New Post
9/13/2008 4:12 PM
 

A wild guess: add a domainname or ip number of the server machine  to the portal alias (table or though host) and to IIS. Make sure you can access this server on port 80. Restart IIS if you manually add portalalias directly to the portalalias table.

J.

 
New Post
9/14/2008 7:09 PM
 

I agree with your assessment.  To extend what you said, you can do this via the database directly in the PortalAlias table on the server or you can make the change on your local machine under Admin > Site Settings (note you must be logged in as Host).  At the bottom of the page you will see Portal Aliases, choose add and add the FQDN and then save.  After that, push the updated db to the server and you should be up and running.

If this does not work, please post a reply and we can assist from there.


Best Regards,

Robert J Collins | Co-Founder & President

Netlogic Corporation

 
New Post
10/21/2008 2:01 PM
 

Another project interupted, but I'm back to this one again.  DNN 4.09.  Brand new install, Custom Skin and content added, nothing else.

An interesting twist to the problem.  This error also occurs when trying to run the site from VS2008.  It is trying to use the alias localhost/DotNetNuke_2.  I have added this to the alias table using the website with no success.  I can however access this URL just fine if I go directly to it from IE.

I have been trying to follow the code, but am unfamiler with vb.net.  The DataCache object seems to be where the alias info is supposed to be stored, but none of the iterations that attempt to resolve the alias return data. 

I can see the rows in the Database.  I have not found where the data is being physicallyretrieved from the DB, so havn't been able to see the SQL that is being used to verify the data isn't messed up.  Nothing is ever returned from GetPortalAliasInfo in PortalSettings.vb

Values in dnn_PortalAlias

1 1 localhost/dotnetnuke/website
3 1 localhost/dotnetnuke_2/website
4 1 localhost

1 was from install.  3 and 4 were added by me.

As a side note, DotNetNuke_2 is a virtual directory pointing to the DotNetNuke\website directory that was created during setup.

 
New Post
10/22/2008 11:13 AM
 

J.O. wrote
 

A wild guess: add a domainname or ip number of the server machine  to the portal alias (table or though host) and to IIS. Make sure you can access this server on port 80. Restart IIS if you manually add portalalias directly to the portalalias table.

J.

 

Adding the IP of the server as an additional alias did not correct the problem

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...New site works on localhost but not from another machine.New site works on localhost but not from another machine.


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