Geeks With Blogs

News My Blog has been MOVED to
Michael Freidgeim's OLD Blog My Blog has been MOVED to

I am using “Publish web Site” which copies almast all content of the development site including Portals\0\portal.css file.

Then when DNN Installer  tries to create a new portal, it fails with

“Error: The file 'C:\inetpub\wwwroot\DNNWebOpac\Portals\0\portal.css' already exists.“
and doesn't create portal alias.

Any attempts to open the site failed with
[NullReferenceException: Object reference not set to an instance of an object.]
   DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 TabId, PortalAliasInfo objPortalAliasInfo)

The code actually tries to delete content of the new portal via call to DeleteFolderRecursive,

but all delete errors are catched silently - not a good way to investigate the problem.

The actual reason was that I didn't add write permissins to NETWORK_SERVICES. Error should hint about this.

I've added in Components\Shared\Globals.vb  DeleteFolderRecursive function reporting errors to Trace

Diagnostics.Trace.WriteLine("DeleteFolderRecursive file " & strFile & " " & ex.ToString())

Iv'e logged a suggestion to DNN Support
Posted on Tuesday, February 14, 2006 1:54 PM DotNetNuke | Back to top

Comments on this post: DotNetNuke Install should have better error reporting.

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Michael Freidgeim | Powered by: