“Not found” error after idle time

I am working on a Silverlight WCF RIA Services application. If the user lets the application wait a while, for instance 10 minutes, while he is looking at something else and returns to the application, then the next data request will fail with a “Not found” error.

I tried all sorts of tricks to get the application to return a proper error, since it seems that “Not Found” is the stand error returned, hiding the real error. None of the things I found helped. It turns out that it is a simple ASP timeout, that can be fixed by adding the following timeout to web.config:

<?xml version="1.0" encoding="utf-8"?>
    <authentication mode="Forms">
      <forms name=".myApp_ASPXAUTH" timeout="180" />
    <!-- Other configurations -->

This gives a timeout of 3 hours (180 minutes).

Another solution would be to have the client poll the server at regular intervals to prevent a timeout.

About Lund

Owner of iCodeIT, a software consulting company. I am primarily working the .NET development and architecture.
This entry was posted in RIA, Silverlight, WCF and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s