Learn More





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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Error Parsing Template, can't find part of the pathError Parsing Template, can't find part of the path
New Post
2/1/2015 3:57 PM

Here is the error message in part:

Error parsing Website TemplateCould not find a part of the path 'C:\HostingSpaces\abetterfund\\wwwroot\Portals\_default\EventQueue\EventQueue.config'. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options

 Note this part: EventQueue\EventQueue.config this path part doesn't exist.  Code that I wrote to find where a portal id isn't in Portal Alias, which verifies a botched programmatic child portal creation and then deletes the portal, is after this block of code.  Since the code throws the exception above ... my fix doesn't fire in this use case:

                           intPortalId = objPortalController.CreatePortal(txtPortalName.Text,
                                                                           template, <-- the template is passed here.  The exception is being swallowed in the Portal Controller Create Portal event and doesn't bubble up.  This particular code itself is in the Try{} in my code but the Catch{} doesn't see it so I can't fire my code there either. (Or in Finally{} for the same reason)

There is still a work around.  When the error comes up, have the end users instructed to browse back to refresh the page.  And in the Page Load event, set up a link to find the Portal entry with no matching Portal Alias, either allowing user intervention or handling the delete in this case on page refresh but give the user a friendly message to try again.

It seems the portal creation code is buggy.  Any input on how to fix this without a laborious work around is appreciated.

There is a fix for regular ASP.Net sites to create a Services Project but unless I miss something, to use that in DNN requires a core code edit.  That link is here:


New Post
2/1/2015 7:43 PM
I checked a local install and that file does exist for me in that path i.e. Portals\_default\EventQueue\EventQueue.config - also checking the codebase I see it's there as well (i.e. it's not generated or moved from somewhere else, it exists in the default code) -

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
New Post
2/2/2015 8:30 PM

I see what it was.  It must be a privileged folder as it was not showing up in either the upload or download windows of File Zilla.

Looking on my hard drive, it is there.

OK, then the issue is this file isn't being found in some cases when child portals are created.  But only on our Provider's server. (How bloody handy!  It means it can't be duplicated locally ...)

Until I can find what causes this, I have a work around in play.  The code I wrote before will be called by a Remove Failed Portal button, which will only be visible if on post back a portal Id is detected for a user in Portals but that Portal ID is not in Portal Alias, within the last 30 minutes.  I put in the DATEPART(mi, -30, GetDate()) so that Execute Scalar for a user would only pull back the one of interest.  Which, since it will be deleted it won't show up if the same user has it happen 2 times in a row or more.

Interesting ... is this possibly a bug in DNN?

New Post
2/4/2015 9:05 PM
Accepted Answer 

The code we have written will work if we ever get a  portal created and don't get an alias.

There was an issue with files being corrupted on the server, this wasn't the only error we were getting where portals didn't finish.

At any rate, the fail-safe we have works and also, the server error is fixed.

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Error Parsing Template, can't find part of the pathError Parsing Template, can't find part of the path

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