Opened 8 years ago

Closed 22 months 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:


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 8 years ago.

Download all attachments as: .zip

Change History (6)

Changed 8 years ago by jng

comment:1 Changed 8 years ago by jng

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 Changed 8 years ago by jng

Milestone: 2.52.6

comment:3 Changed 3 years ago by jng

Milestone: 3.03.3

Ticket retargeted after milestone closed

comment:4 Changed 2 years ago by jng

Milestone: 3.34.0

Milestone renamed

comment:5 Changed 22 months ago by jng

Resolution: fixed
Status: newclosed

In 9601:

Apply patch to give better context for MgResourcesLoadFailedException?

Fixes #2206

Note: See TracTickets for help on using tickets.