DotNetNuke Install should have better error reporting.

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
«February»
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
2627281234
567891011