Technical support This forum is closed.
Version 1.x > Technical support > Changing the alias of an item breaks the Site view (c# - v1.8c) View modes: 
User avatar
Member
Member
ta5ae - 3/24/2006 3:16:52 PM
   
Changing the alias of an item breaks the Site view (c# - v1.8c)
I am using the C# version 1.8c project.

If I change the alias of a new item and then try to view the same item from the Site view, I instead see a 'Page not found' error.

It would appear (even after a refresh) that the content tree (and My Recent Documents links) try to load the previous alias path. However, navigating to the item purely through the site view works. Neither republishing the item nor restarting the browser change this.

I noticed that items whose alias path was changed in version 1.6b however work fine in the Site view.

Also sometimes when changing the alias of an item you are prompted for further authentication. I can repeatedly achieve this by doing the following -

Close the browser;
Reopen it;
Sign in to the CMS desk;
Click the 'My Recent Documents' recent short cut to an item;
Click 'Properties' and directly change the alias

Here is the exception received after changing an alias FROM Contact TO Contact1

Description:
System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown. ---> System.UnauthorizedAccessException: Access to the path "C:\Inetpub\wwwroot\InfoNetCMSUpgrade18c\Contact" is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String str) at System.IO.Directory.InternalGetFileDirectoryNames(String fullPath, String userPath, Boolean file) at System.IO.DirectoryInfo.GetDirectories(String searchPattern) at System.IO.DirectoryInfo.GetDirectories() at Kentico.DirectoryUtilities.DirectoryHelper.CopyDirectory(String sourcePath, String targetPath) at Kentico.CMS.CMSDesk.Functions.EnsureFriendlyURL(String newAliasPath, String oldAliasPath) at Kentico.CMS.CMSDesk.Properties.btnOK_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain() --- End of inner exception stack trace --- at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain() at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

User avatar
Guest
admin - 3/26/2006 6:31:01 PM
   
Re: Changing the alias of an item breaks the Site view (c# - v1.8c)
Hello,

Thank you for your message. We can reproduce the issue. It happens when you are using the URL paths without extension. The document alias path is updated correctly as well as the "dummy" folder on the disk, but then, some exception is thrown after the system tries to make some modification on the disk.

However, when we click the Site button after this exception, everything works correctly. Could you please check if the C:\Inetpub\wwwroot\InfoNetCMSUpgrade18c\Contact folder on the disk has been renamed correctly?

We will try to fix this in 1.8d release. I'm sorry for this inconvenience.

Best Regards,

User avatar
Member
Member
ta5ae - 3/27/2006 3:59:04 PM
   
Re: Changing the alias of an item breaks the Site view (c# - v1.8c)
Dear Petr,

I have retried changing the alias path and the folder on the disk is renamed - with or without an exception being generated.

However, for me after the exception occurs (and even when it doesn't) the Site view of the Page Menu item with the changed alias path does not work.

By that I mean if I click the Page (Menu item) from the content tree - a page not found is shown. The URL it tries to load into the frame is the previous alias path. However, if the item is navigated to via the Site view or website itself - referring items seem to use the correct URL.

I am using C# Version: 1.8.2265 and the default work flow is turned on for Page (Menu Items). I have tried both published and unpublished items.

Thank you for looking into this.

User avatar
Guest
admin - 3/27/2006 4:26:59 PM
   
Re: Changing the alias of an item breaks the Site view (c# - v1.8c)
Thank you for the details. We will certainly try to fix this in version 1.8d.

Best Regards,

User avatar
Member
Member
ta5ae - 5/2/2006 2:36:38 PM
   
Re: Changing the alias of an item breaks the Site view (c# - v1.8c)
Can you confirm whether this issue has bben resolved in version 1.9, in particular c# 2003 version?

Thanks

User avatar
Guest
admin - 5/2/2006 3:15:11 PM
   
Re: Changing the alias of an item breaks the Site view (c# - v1.8c)
Hello,

Yes, we have made some improvements in the code to make it more fail-proof. Unfortunately, there still can be some lock caused by the IIS that might raise this error again.

Best Regards,

User avatar
Member
Member
ta5ae - 5/9/2006 3:48:49 PM
   
Re: Changing the alias of an item breaks the Site view (c# - v1.8c)
I still experience issues with items created in version 1.9 C# 2003 version, whereby they are not visible in the Site tab.

The following seem to break it:

1. Changing the alias path from the original generated
2. Moving the item

User avatar
Guest
admin - 5/11/2006 5:27:14 PM
   
Re: Changing the alias of an item breaks the Site view (c# - v1.8c)
Hello,

Thank you for your message. Could you please write me what errors you get now (if you cannot see them in the user interface, they might be stored in CMSDesk -> Administration -> Event log)?

Thank you.

Best Regards,

User avatar
Member
Member
ta5ae - 5/11/2006 5:32:20 PM
   
Re: Changing the alias of an item breaks the Site view (c# - v1.8c)
Re: Changing the alias of an item breaks the Site view (c# - v1.8c)
Sorry I am referring to the Page Not Found issue in the Site View:

"...By that I mean if I click the Page (Menu item) from the content tree - a page not found is shown. The URL it tries to load into the frame is the previous alias path. However, if the item is navigated to via [another item in] the Site view or website itself - referring items seem to use the correct URL. ..."

NB: This can occur for Page Menu items or Articles.

User avatar
Guest
admin - 5/24/2006 1:43:05 PM
   
Re: Changing the alias of an item breaks the Site view (c# - v1.8c)
Yes, I understand, but the problem is most likely caused by the fact that the helper files on the disk are not generated correctly and this might be logged in the event log.

Thank you.

Best Regards,