Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Portaltemplate.aspx Rewrite Fails View modes: 
User avatar
Member
Member
Silkmoth - 5/21/2009 4:42:00 AM
   
Portaltemplate.aspx Rewrite Fails
We have several developers using Kentico on Vista and XP machines without problems. However, one Vista Business/IIS7 installation has a problem we can't resolve. The administration and CMS areas work perfectly but we can't view the web sites created.

We've reinstalled Kentico and been through IIS settings but without success. When we attempt to view a site we get this error in the browser:

Server Error in '/' Application.
--------------------------------------------------------------------------------
The resource cannot be found.

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.



The problem is that requests for pages are written incorrectly. For example, a request to

/Home.aspx
is rewritten as:
/Home.aspx/PortalTemplate.aspx

and
/About-Us.aspx
is rewritten as:
/About-Us.aspx/alTemplate.aspx

i.e. the last part of the PortalTemplate.aspx name - the first few characters can be overwritten depending on the length of the page requested.

However, if we go to:
http://localhost/cmspages/portaltemplate.aspx?aliaspath=/About-Us

We get the page delivered correctly, so this part works.

User avatar
Member
Member
Silkmoth - 5/22/2009 4:01:31 AM
   
RE:Portaltemplate.aspx Rewrite Fails
We've found a workaround which suggests an IIS feature we use may be the cause but we'd like to know if there's a fix within Kentico.

If we switch the application pool to classic instead of integrated mode, the rewrites work correctly. I've seen that at least one other CMS system (notably Umbraco) can only work in this mode.

While running IIS7, this specific PC has to have IIS6 compatibility enabled for some other sites we develop on it. I wonder if this causes the Kentico installation to get confused over the version it's running on and install as though it's on IIS6 even though we're configuring it to use an existing virtual server configured as IIS7 integrated.

This has a critical consequence as we can't assign 404 error handlers as they're not supported in this mode.

Is there a solution to this?

User avatar
Kentico Developer
Kentico Developer
kentico_zbysekn - 5/25/2009 9:03:04 AM
   
RE:Portaltemplate.aspx Rewrite Fails
Hello,
we tried to simulate mentioned environment but weren't successful to reproduce mentioned scenario. We are ware some problems connected with using of integrated application pool but it's rather problem of import/export functionality. Even with IIS 6 compatibility enabled we haven't encountered any problem.
Could you provide us with more information about your IIS settings?

Best Regards,
Zbysek Nemec.