Last post Aug 03, 2005 02:36 PM by j_gaylord
Jul 29, 2005 02:35 PM|j_gaylord|LINK
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.
[NullReferenceException: Object reference not set to an instance of an object.]
DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 TabId, PortalAliasInfo objPortalAliasInfo) +127
DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabId, PortalAliasInfo objPortalAliasInfo) +93
DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +3553
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87
Jul 30, 2005 12:39 AM|MobileNow|LINK
Aug 01, 2005 11:50 AM|j_gaylord|LINK
I'm assuming that the tables should be removed then? I'll try that and see where that gets me.
Aug 01, 2005 12:07 PM|MobileNow|LINK
Aug 01, 2005 01:54 PM|j_gaylord|LINK
Aug 01, 2005 02:11 PM|MobileNow|LINK
Aug 01, 2005 02:39 PM|j_gaylord|LINK
I believe the full folder path is f:\webs\(mywebsite) or something similar. I'll try contacting them about this.
Aug 01, 2005 02:47 PM|j_gaylord|LINK
Aug 01, 2005 05:52 PM|cathal|LINK
If they're using windows 2000 as the host, they may also need to set the READ ATTRIBUTE, so that asp.net can walk the folder permissions tree. From the FAQ:
"Q. What permissions are required for DNN to function properly under W2K?
A. The ASPNET account (which is the account used for running the asp.net worker process) must have FULL permissions on the WEBROOT and all subfolders for the DNN application. There are several conditions where the application writes files both to the root (e.g.
child portal folders) as well as to subfolders (e.g. uploading portal files).
** Important note ** Under W2K only, the ASPNET process must also have READ ATTRIBUTE privileges (not read file) on the DRIVE ROOT (e.g. D:\) for the DirectoryInfo class in .NET to work correctly.
>>> If you're on W2K, make sure your administrator understands your asking for READ ATTRIBUTE privileges... not read file (which would be a security issue)."
The reason we require root access is that we load the web.config and randomise the validation and encryption keys during installation. Later on if you create child portals they're created off the root folder.
Aug 03, 2005 10:11 AM|j_gaylord|LINK
Aug 03, 2005 10:27 AM|j_gaylord|LINK
I've uploaded a simple test.aspx file to test it out and they are correct that those attributes must be set:
<%@ Page Language="VB" %>
<%@ import namespace="System" %>
<%@ import namespace="System.IO" %>
Dim di As DirectoryInfo = New DirectoryInfo("F:\hshome\dotnetva\dotnetnuke.dotnetvalley.com\Install")
' Determine whether the directory exists.
If di.Exists Then
Response.Write("It Does Not Exist")
Aug 03, 2005 10:37 AM|cathal|LINK
Aug 03, 2005 10:53 AM|j_gaylord|LINK
Aug 03, 2005 11:03 AM|cathal|LINK
Aug 03, 2005 11:08 AM|j_gaylord|LINK
Aug 03, 2005 02:36 PM|j_gaylord|LINK