By Daniel Du
I noticed that quite a few customers run into this problem on Autodesk Infrastructure Map Server. The error message on yellow page is something like below:
Server Error in '/MgViewerExtention_2012' Application.
Failed to load the resource file "Resources/mapguide_en.res" for locale "en".
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: OSGeo.MapGuide.MgResourcesLoadFailedException: Failed to load the resource file "Resources/mapguide_en.res" for locale "en".
Line 22: string realPath = Request.ServerVariables["APPL_PHYSICAL_PATH"];
Line 23: String configPath = realPath + "../webconfig.ini";
Line 24: MapGuideApi.MgInitializeWebTier(configPath);
Line 25: }
Source File: C:\Work\CodeSamples\MgViewerExtention_2012\MgViewerExtention\Utility.cs Line: 24
[MgResourcesLoadFailedException: Failed to load the resource file "Resources/mapguide_en.res" for locale "en".]
OSGeo.MapGuide.SWIGExceptionHelper.ThrowCustomException(String className, IntPtr cptr) +648
OSGeo.MapGuide.MapGuideApiPINVOKE.MgInitializeWebTier(String jarg1) +0
Utility.InitializeWebTier(HttpRequest Request) in C:\Work\CodeSamples\MgViewerExtention_2012\MgViewerExtention\Utility.cs:24
MgViewerExtention.Default.Page_Load(Object sender, EventArgs e) in C:\Work\CodeSamples\MgViewerExtention_2012\MgViewerExtention\Default.aspx.cs:35
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
System.Web.UI.Control.OnLoad(EventArgs e) +132
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428
Version Information: Microsoft .NET Framework Version:2.0.50727.4971; ASP.NET Version:2.0.50727.4971
I myself came across this problem as well, how did I fix it? Simple, just repair MapGuide WebExtension from Control Panel, the original installation media is needed.
I know it is not like a way of technical geek, but it works and it is easy.
[Updated : 2012/11/13]
Someone is saying that repair does not work for him, so I Google with this error message and seems this link is related: one of the reasons may be permission problem. And this one, another reason may be install order of mapguide and .net. I also hear from others that they get this error if they happened to miss up the 32bit/64bit, that means they are trying to install 32bit of AIMS on a 64bit OS or verse visa.
Anyway, it depends, you may need to check more if you do not want to reinstall or it does not work for you.