Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Adding ASPX directives on Page Layout
acezone
Hi All,
I have a situation where based on the mockup (code file), we need to append below code on specific page:
<%@ Page Language="C#" %>
<%@ Register src="~/controls/ProductsByCategoryAndSubcategory.ascx" TagName="productsbycat" TagPrefix="ucproducts" %>
<%@ Register src="~/controls/leftnav2.ascx" tagname="leftnav2" tagprefix="ucleftnav2" %>
As mentioned in above snippet, "~" is mapped to the root folder of the web server and respective .ascx will then renders the content on the .page file. As per the business need this .page file shall be deployed to web server to preview the data, whereas all the necessary components will be placed before creation of .page file.
Now the route I opt, is to create a new page layout (XSL) and define these directive on it, update the pagetype_config.xml file and run "build.bat" to make the layout available for use. But as I have done this, on creating a .page and placing the components, on preview, I receive "
The system has encountered an internal error.
"
As this is going to be the only .page holding such directives, so question to all experts here, is it possible to do so (without using external components)?
If yes, then I would seek for your response on the same.
Regards,
Ace
Find more posts tagged with
Comments
Rick Poulin
I haven't used SitePub with .NET yet, but it would be useful to see the cause of the error. Either post the details in the browser (if your IIS is configured to show them there) or post the relevant piece of your IIS logs.
acezone
Below is the error log:
Description:
The description for Event ID ( 0 ) in Source ( Interwoven.Runtime ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: HandleRequest: caught exception while processing request.
Exception:
System.Web.HttpException: Error executing child request for /iw/errors/Error.jsp.
at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)
at System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean preserveForm)
at System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm)
at Interwoven.LiveSite.Runtime.Rendering.DotNetRenderingManager.DoServerTransfer(BaseRequestContext requestContext, String forwardPath) in c:\BF\P4.mainCopy-lsds.net-trials\TS7.2.1-incl.net-final\src\livesite\dotnet\Interwoven.LiveSite.Runtime\src\Interwoven\LiveSite\Runtime\Rendering\DotNetRenderingManager.cs:line 102
at Interwoven.LiveSite.Runtime.Rendering.DotNetRenderingManager.doForward(BaseRequestContext context) in c:\BF\P4.mainCopy-lsds.net-trials\TS7.2.1-incl.net-final\src\livesite\dotnet\Interwoven.LiveSite.Runtime\src\Interwoven\LiveSite\Runtime\Rendering\DotNetRenderingManager.cs:line 108
at com.interwoven.livesite.runtime.rendering.RenderingManager.forwardToErrorPage(BaseRequestContext context, RenderingException e) in RenderingManager.java:line 1107
at com.interwoven.livesite.runtime.rendering.RenderingManager.handleUnhandledException(BaseRequestContext context, RenderingException e) in RenderingManager.java:line 1079
at com.interwoven.livesite.runtime.rendering.RenderingManager.handleException(BaseRequestContext context, RenderingException e) in RenderingManager.java:line 1020
at com.interwoven.livesite.runtime.rendering.RenderingManager.handleException(BaseRequestContext context, Exception e) in RenderingManager.java:line 976
at com.interwoven.livesite.runtime.rendering.RenderingManager.render(BaseRequestContext context) in RenderingManager.java:line 265
at Interwoven.LiveSite.Runtime.Web.Module.LiveSiteRuntimeModule.ProcessRequest(Object source, EventArgs e) in c:\BF\P4.mainCopy-lsds.net-trials\TS7.2.1-incl.net-final\src\livesite\dotnet\Interwoven.LiveSite.Runtime\src\Interwoven\LiveSite\Runtime\Web\Module\LiveSiteRuntimeModule.cs:line 82.
Rick Poulin
That doesn't say a whole lot, other than there was an unspecified error while trying to render the error page. Was there no "Caused By" in the stack trace, or an error above this one in the log?
acezone
Hi Poulin,
I appreciate your efforts and time in devoting this case. Well I got it working by modifying web.config file and page is appearing fine. Though in order to make this page working alongwith component, I am facing an issue. It would be great if you may kindly
Click here
for your action.
I am now closing this thread.
Regards,
Ace