Hello, I'm new to DotNetNuke and I'm attempting to get it set up to evaluated it's potential which sounds very promising but I'm running into some issues that looks like throwbacks to v2 from what I'm finding here in the forum.
First the error message which is received once you click on the link to start dot net nuke follow what seems like a successful installation.
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.GetPortalSettings(Int32 TabId, PortalAliasInfo objPortalAliasInfo) +127
DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabId, PortalAliasInfo objPortalAliasInfo) +93
DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +3718
System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +60
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
This was a fresh install where only the content of the DotNetNuke_3.1.1_Install.zip was placed into a D:/dotnetnuke directory. A web.config file created from the release.config file and edited for the data connection as so
The server is Win2k sp4 running .net 2005 beta and sql2005 beta. The server is also the primary domain server so all user are domain user. ASPNET is a member of the Domain and has been assigned a known password. The machine.comfig
for .net 1.1.4 has been set to
<
identity
impersonate="true"
userName=""
password=""/>
also <processModel
userName="machine"
password="AutoGenerate"
has been replace by ASPNET and the password for it.
These setting were nesicary to get past .net derectory inexcesablity errors.
I created a empty db in sql2005 called dotnetnuke using 2000 compatiblity mode and server default collation.
I created a virtual director in iis that point to the d:/dotnetnuke dir. and set the anonymous user as ASPNET
ASPNET has full control security right to the D:/dotnetnuke directory and I checked to see that those right were propagated downward.
And then clicking to link to go to what I guess would be the dotnetnuke portal home page I get the errors I recoreded above.
A trace on the DB recorded the following that would seem to be origin of the html error output:
exec dbo.AddEventLog @LogGUID='c609dcc7-c9c4-4d16-8a80-c4bf59ea40f8',@LogTypeKey=N'GENERAL_EXCEPTION',@LogUserID=NULL,@LogUserName=NULL,@LogPortalID=NULL,@LogPortalName=NULL,@LogCreateDate='Oct 25 2005 2:56:05:217PM',@LogServerName=N'YU-SERVER2K',@LogProperties=N'<ArrayOfAnyType
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><anyType xsi:type="LogDetailInfo"><name>AssemblyVersion</name><value>03.01.01</value></anyType><anyType
xsi:type="LogDetailInfo"><name>Method</name><value>DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings</value></anyType><anyType xsi:type="LogDetailInfo"><name>FileName</name></anyType><anyType xsi:type="LogDetailInfo"><name>FileLineNumber</name><value>0</value></anyType><anyType
xsi:type="LogDetailInfo"><name>FileColumnNumber</name><value>0</value></anyType><anyType xsi:type="LogDetailInfo"><name>PortalID</name><value>-1</value></anyType><anyType xsi:type="LogDetailInfo"><name>PortalName</name><value /></anyType><anyType xsi:type="LogDetailInfo"><name>UserID</name><value>-1</value></anyType><anyType
xsi:type="LogDetailInfo"><name>UserName</name><value /></anyType><anyType xsi:type="LogDetailInfo"><name>ActiveTabID</name><value>-1</value></anyType><anyType xsi:type="LogDetailInfo"><name>ActiveTabName</name><value /></anyType><anyType xsi:type="LogDetailInfo"><name>AbsoluteURL</name><value>/dotnetnuke/Default.aspx</value></anyType><anyType
xsi:type="LogDetailInfo"><name>AbsoluteURLReferrer</name><value>http://www.mantisman.com/dotnetnuke/Install/Install.aspx?mode=Install</value></anyType><anyType xsi:type="LogDetailInfo"><name>ExceptionGUID</name><value>4443b928-7c4d-4789-b7d7-c4ddb69ee4f1</value></anyType><anyType
xsi:type="LogDetailInfo"><name>DefaultDataProvider</name><value>DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider</value></anyType><anyType xsi:type="LogDetailInfo"><name>InnerException</name><value>Unhandled Error: </value></anyType><anyType xsi:type="LogDetailInfo"><name>Message</name><value>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)
at DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabId, PortalAliasInfo objPortalAliasInfo)
at DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e)
at System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
--- End of inner exception stack trace ---</value></anyType><anyType xsi:type="LogDetailInfo"><name>StackTrace</name></anyType><anyType xsi:type="LogDetailInfo"><name>Source</name></anyType></ArrayOfAnyType>',@LogConfigID=4
A review of the stored procedures that had been created in the db dose not find any named GetPortalSettings.
I'm sort of at a losse for what to try next. In looking through the forums here, I find v2 had this sort of an issus but never saw any resolution other than adding the porcedure by hand.
Might I have some problem in my web.config? Could this be an install package bug?
00:00:11.499 - Error: Could not find a part of the path "D:\".
That means you have not granted permission to D:/ (the root). Get that fixed, then delete everything and try again from scratch.
Also, why should my ASPNET need to have access to the root of my volumn? That seems like it would be a nasty securety problem if somethinger were to go wrong.
From a past forum discussion, not mine, but well worth the read:
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).
None
0 Points
5 Posts
V3.1.1 Fresh install Error with GetPortalSettings
Oct 25, 2005 03:44 PM|MantisMan13|LINK
First the error message which is received once you click on the link to start dot net nuke follow what seems like a successful installation.
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:
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
This was a fresh install where only the content of the DotNetNuke_3.1.1_Install.zip was placed into a D:/dotnetnuke directory. A web.config file created from the release.config file and edited for the data connection as so
<
add key="SiteSqlServer" value="Server=(local);Database=dotnetnuke;uid=dotnetnuke;pwd=mypassword;" />The server is Win2k sp4 running .net 2005 beta and sql2005 beta. The server is also the primary domain server so all user are domain user. ASPNET is a member of the Domain and has been assigned a known password. The machine.comfig for .net 1.1.4 has been set to
<
identity impersonate="true" userName="" password=""/> also <processModeluserName="machine"
password="AutoGenerate"
has been replace by ASPNET and the password for it.These setting were nesicary to get past .net derectory inexcesablity errors.
I created a empty db in sql2005 called dotnetnuke using 2000 compatiblity mode and server default collation.
I created a virtual director in iis that point to the d:/dotnetnuke dir. and set the anonymous user as ASPNET
ASPNET has full control security right to the D:/dotnetnuke directory and I checked to see that those right were propagated downward.
Launching the http://local/dotnetnuke returend these messages:
Installing DotNetNuke
Version: 03.01.01
Installation Status Report
00:00:00.312 - Installing Version: 3.1.0
00:00:00.312 - Installing Script: DotNetNuke.SetUp.SqlDataProvider
00:00:00.421 - Installing Script: DotNetNuke.Schema.SqlDataProvider
00:00:02.359 - Installing Script: DotNetNuke.Data.SqlDataProvider
00:00:04.140 - Installing MemberRole Provider:
00:00:04.140 - Executing InstallCommon.sql
00:00:04.671 - Executing InstallMembership.sql
00:00:05.234 - Executing InstallProfile.sql
00:00:05.515 - Executing InstallRoles.sql
00:00:06.343 - Upgrading to Version: 3.1.1
00:00:08.343 - Performing General Upgrades
00:00:08.640 - Loading Host Settings:
00:00:08.796 - Configuring SuperUser:
00:00:09.093 - Installing Desktop Modules:
00:00:09.093 - Installing Modules:
00:00:09.093 - Installing Module File D:\DotNetNuke\Install\Module\Announcements_3.1_Install.zip:
00:00:09.562 - Installing Module File D:\DotNetNuke\Install\Module\Contacts_3.1_Install.zip:
00:00:09.687 - Installing Module File D:\DotNetNuke\Install\Module\Discussions_3.1_Install.zip:
00:00:09.843 - Installing Module File D:\DotNetNuke\Install\Module\Documents_3.1_Install.zip:
00:00:09.968 - Installing Module File D:\DotNetNuke\Install\Module\Events_3.1_Install.zip:
00:00:10.124 - Installing Module File D:\DotNetNuke\Install\Module\FAQs_3.1_Install.zip:
00:00:10.249 - Installing Module File D:\DotNetNuke\Install\Module\Feedback_3.1_Install.zip:
00:00:10.296 - Installing Module File D:\DotNetNuke\Install\Module\HTML_3.1_Install.zip:
00:00:10.421 - Installing Module File D:\DotNetNuke\Install\Module\IFrame_3.1_Install.zip:
00:00:10.468 - Installing Module File D:\DotNetNuke\Install\Module\Image_3.1_Install.zip:
00:00:10.530 - Installing Module File D:\DotNetNuke\Install\Module\Links_3.1_Install.zip:
00:00:10.655 - Installing Module File D:\DotNetNuke\Install\Module\NewsFeeds_3.1_Install.zip:
00:00:10.702 - Installing Module File D:\DotNetNuke\Install\Module\Survey_3.1_Install.zip:
00:00:10.937 - Installing Module File D:\DotNetNuke\Install\Module\UserDefinedTable_3.1_Install.zip:
00:00:11.265 - Installing Module File D:\DotNetNuke\Install\Module\UsersOnline_3.1_Install.zip:
00:00:11.343 - Installing Module File D:\DotNetNuke\Install\Module\XML_3.1_Install.zip:
00:00:11.405 - Executing Additional Scripts:
00:00:11.405 - Creating Portal: My Website
00:00:11.499 - Error: Could not find a part of the path "D:\".
00:00:11.499 - Portal failed to install:
00:00:11.499 - Installing Optional Resources:
Installation Complete
And then clicking to link to go to what I guess would be the dotnetnuke portal home page I get the errors I recoreded above.
A trace on the DB recorded the following that would seem to be origin of the html error output:
exec dbo.AddEventLog @LogGUID='c609dcc7-c9c4-4d16-8a80-c4bf59ea40f8',@LogTypeKey=N'GENERAL_EXCEPTION',@LogUserID=NULL,@LogUserName=NULL,@LogPortalID=NULL,@LogPortalName=NULL,@LogCreateDate='Oct 25 2005 2:56:05:217PM',@LogServerName=N'YU-SERVER2K',@LogProperties=N'<ArrayOfAnyType xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><anyType xsi:type="LogDetailInfo"><name>AssemblyVersion</name><value>03.01.01</value></anyType><anyType xsi:type="LogDetailInfo"><name>Method</name><value>DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings</value></anyType><anyType xsi:type="LogDetailInfo"><name>FileName</name></anyType><anyType xsi:type="LogDetailInfo"><name>FileLineNumber</name><value>0</value></anyType><anyType xsi:type="LogDetailInfo"><name>FileColumnNumber</name><value>0</value></anyType><anyType xsi:type="LogDetailInfo"><name>PortalID</name><value>-1</value></anyType><anyType xsi:type="LogDetailInfo"><name>PortalName</name><value /></anyType><anyType xsi:type="LogDetailInfo"><name>UserID</name><value>-1</value></anyType><anyType xsi:type="LogDetailInfo"><name>UserName</name><value /></anyType><anyType xsi:type="LogDetailInfo"><name>ActiveTabID</name><value>-1</value></anyType><anyType xsi:type="LogDetailInfo"><name>ActiveTabName</name><value /></anyType><anyType xsi:type="LogDetailInfo"><name>AbsoluteURL</name><value>/dotnetnuke/Default.aspx</value></anyType><anyType xsi:type="LogDetailInfo"><name>AbsoluteURLReferrer</name><value>http://www.mantisman.com/dotnetnuke/Install/Install.aspx?mode=Install</value></anyType><anyType xsi:type="LogDetailInfo"><name>ExceptionGUID</name><value>4443b928-7c4d-4789-b7d7-c4ddb69ee4f1</value></anyType><anyType xsi:type="LogDetailInfo"><name>DefaultDataProvider</name><value>DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider</value></anyType><anyType xsi:type="LogDetailInfo"><name>InnerException</name><value>Unhandled Error: </value></anyType><anyType xsi:type="LogDetailInfo"><name>Message</name><value>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)
at DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabId, PortalAliasInfo objPortalAliasInfo)
at DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e)
at System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
--- End of inner exception stack trace ---</value></anyType><anyType xsi:type="LogDetailInfo"><name>StackTrace</name></anyType><anyType xsi:type="LogDetailInfo"><name>Source</name></anyType></ArrayOfAnyType>',@LogConfigID=4
A review of the stored procedures that had been created in the db dose not find any named GetPortalSettings.
I'm sort of at a losse for what to try next. In looking through the forums here, I find v2 had this sort of an issus but never saw any resolution other than adding the porcedure by hand.
Might I have some problem in my web.config? Could this be an install package bug?
Thanks
John
None
0 Points
5 Posts
Re: V3.1.1 Fresh install Error with GetPortalSettings
Oct 26, 2005 06:07 PM|MantisMan13|LINK
Member
10 Points
560 Posts
Re: V3.1.1 Fresh install Error with GetPortalSettings
Oct 26, 2005 11:47 PM|ecktwo|LINK
That means you have not granted permission to D:/ (the root). Get that fixed, then delete everything and try again from scratch.
None
0 Points
5 Posts
Re: V3.1.1 Fresh install Error with GetPortalSettings
Oct 27, 2005 02:56 AM|MantisMan13|LINK
00:00:11.499 - Error: Could not find a part of the path "D:\".
00:00:11.499 - Portal failed to install:
00:00:11.499 - Installing Optional Resources:
Thanks
None
0 Points
5 Posts
Re: V3.1.1 Fresh install Error with GetPortalSettings
Oct 27, 2005 03:00 AM|MantisMan13|LINK
Also, why should my ASPNET need to have access to the root of my volumn? That seems like it would be a nasty securety problem if somethinger were to go wrong.
None
0 Points
77 Posts
Re: V3.1.1 Fresh install Error with GetPortalSettings
Oct 27, 2005 03:36 PM|Girly_Coder|LINK
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).
--------------------------------------------------------------------------------
This discussion can be viewed at http://forums.asp.net/847469/ShowPost.aspx
None
0 Points
5 Posts
Re: V3.1.1 Fresh install Error with GetPortalSettings
Oct 27, 2005 04:38 PM|MantisMan13|LINK