Dynamic URL error

From RPM Wiki

Table of contents

Summary

There is a problem with the .NET Framework where it will sometimes generate an incorrect URL for a link or image.

  • Clicking the incorrect link brings up an error
  • The incorrect image shows up as an error

As of Callisto you should no longer see this error.

Details

The dynamic URL property is generated by the framework when the worker process is started. It has the potential to affect the following properties:

  • NavigateUrl
  • ImageUrl

Notes

This only affects controls and this is why the error always involves "Main/" being incorrectly inserted within the URL.

  • This is because all server controls are in the Main folder.
  • You can be sure it is this error because examining the link URL or image SRC shows the "/Main" in the middle.
  • Each worker process is affected individually. Example: You may see it on https://an_rpm.com but not http://an_rpm2.com even though both are showing the same database.
  • This error has been referred to in the past as the "build error". This is an inaccurate name since there is nothing wrong with the build at all. It probably started because we originally thought the build was generating the URL.
  • It seems to affect all the dynamic URLs in a control. Example: on the agency details page we've seen it affect the "Reps and managers" web box and when it does, both icons and all the links are broken.

Quick Fix

If the error is encountered on a live deployment. Make a change to the root web.config file. This will force an application restart and will likely fix the problem. If it doesn't, repeat.

  • Note: This will logout all online users on that domain
  • This always seems to fix it, although it may now be waiting in another dynamic URL. We can only assume whenever the process is started that some dynamic URL somewhere has been broken and is just waiting to be discovered.

Code fix

Use "href" and "src"

  • This page was last modified 20:09, 11 Apr 2007.
  • This page has been accessed 1037 times.