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)
|