Opened 12 years ago

Closed 5 years ago

#2206 closed defect (fixed)

MgResourcesLoadFailedException needs greater context

Reported by: jng Owned by: jng
Priority: medium Milestone: 4.0
Component: General Version:
Severity: major Keywords:
Cc: External ID:

Description

The MgResourcesLoadFailedException message needs to have greater context. The message is usually of the form:

Failed to load Resources/mapguide_<locale>.res for locale '<locale>'

Which tells us nothing about why this exception was thrown. It could be:

  • File not found
  • Insufficent permission to access file
  • Something else?

This exception is a critical one as it is mostly thrown during web tier initialization. And if web tier initialization doesn't complete, most of the remaining MapGuide API is un-usable. So it is very important that this exception (if thrown) contains as much useful information as possible to diagnose the problem at hand.

Attachments (1)

BetterMgResourcesLoadFailedMessage.patch (7.3 KB ) - added by jng 12 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 by jng, 12 years ago

Suggested test case to try triggering this:

  1. Call MgInitializeWebTier for the first time with a bad path to webconfig.ini
  2. Call MgInitializeWebTier this time with a good path to webconfig.ini

comment:2 by jng, 12 years ago

Milestone: 2.52.6

comment:3 by jng, 7 years ago

Milestone: 3.03.3

Ticket retargeted after milestone closed

comment:4 by jng, 6 years ago

Milestone: 3.34.0

Milestone renamed

comment:5 by jng, 5 years ago

Resolution: fixed
Status: newclosed

In 9601:

Apply patch to give better context for MgResourcesLoadFailedException

Fixes #2206

Note: See TracTickets for help on using tickets.