Web Connection
Cannot set custom Timeout page for .NET Handler mode
Gravatar is a globally recognized avatar based on your email address. Cannot set custom Timeout page for .NET Handler mode
  Mike McDonald
  All
  Feb 20, 2019 @ 09:49pm

Rick -

I can't seem to get a custom Timeout page returned when using the .NET Handler, either in File or COM mode.

In file-based mode I get..

This request took longer than the alotted timeout interval and was aborted

In COM mode I get..

This request returned no output from the server application.

Either way, the message is wrapped in the views/_admintemplate.html page, which includes the Admin.aspx link. I don't want to remove that link from this file because it is used for some of the actual admin pages.

I've set the custom Timeout page in Web.Config, trying various virtual paths and and the local file path, but it just doesn't seem to get used. Changing the Timeout (seconds) value within the webConnectionConfiguration section of the same Web.Config file does change the timeout period, but setting the Timeout (URL/file) value within the webConnectionErrorPages section doesn't seem to make any difference.

Also, the documention page for Web Connection Managed Handler Configuration contains a large code block for the Web.Config example, and the sections are declared using camelCase names..

<section name="webConnectionVisualStudio"..
<section name="webConnectionConfiguration"..
<section name="webConnectionErrorPages"..

However, the sections further down the page are all named as lowercase, and if I copy a portion of the documentation page into the config file (specifically for the error pages section, which is the only one missing from the default template, with the others having the proper names), I get an IIS error 500.19 stating..

The configuration section 'webconnectionerrorpages' cannot be read because it is missing a section declaration

I changed the section to use the proper camelCase name, and the IIS error goes away. However, I'm still not seeing the custom Timeout page. I'm testing this by adding a WAIT TIMEOUT xx call in a test method, along with a short timeout period.

I'm not sure if I'm doing something wrong or if the .NET handler is ignoring the custom Timeout page setting.

- Mike McDonald

Gravatar is a globally recognized avatar based on your email address. re: Cannot set custom Timeout page for .NET Handler mode
  Rick Strahl
  Mike McDonald
  Feb 20, 2019 @ 10:51pm

Thanks Mike.

Fixed.

Ah - I was relying on the compiler to catch any bad references but since I'm not using SQL sessions that never got flagged.

Thanks,

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Cannot set custom Timeout page for .NET Handler mode
  Mike McDonald
  Rick Strahl
  Feb 21, 2019 @ 11:14am

Rick -

Is there a way I get the updated DLL for the custom Timeout page?

- Mike McDonald

Gravatar is a globally recognized avatar based on your email address. re: Cannot set custom Timeout page for .NET Handler mode
  Rick Strahl
  Rick Strahl
  Feb 21, 2019 @ 12:08pm

replied to the wrong message. It was about the Session bug...

Not sure about the timeout page I have to look...

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Cannot set custom Timeout page for .NET Handler mode
  Mike McDonald
  Rick Strahl
  Mar 7, 2019 @ 05:22pm

Rick -

Not sure about the timeout page I have to look...

Have you had any time to review the custom Timeout page issue described in my initial post?

Using WC version 7.4, I'm still not able to successfully get the web.config Timeout value applied, using either a URL or a file path - it always results in the standard This request took longer than the alotted timeout interval and was aborted message, wrapped in the _admintemplate.html page (which includes a link to the Admin page).

- Mike McDonald

Gravatar is a globally recognized avatar based on your email address. re: Cannot set custom Timeout page for .NET Handler mode
  Rick Strahl
  Mike McDonald
  Mar 7, 2019 @ 09:07pm

Haven't had time to look...

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Cannot set custom Timeout page for .NET Handler mode
  Rick Strahl
  Mike McDonald
  Mar 7, 2019 @ 11:48pm

There are no custom templates for .NET Module pages. That feature was specific to the Web Connection ISAPI DLL, but it was not ported over to the .NET Module. None of those pages work.

Your only option for customization is to customize the Views\_adminTemplate.html page and make it generic so it doesn't display DLL error information.

+++ Rick ---

© 1996-2019