[mapguide-users] Error in ASP AjaxViewer application (update)

David Hamilton d.n.hamilton at jiffle.net
Mon Sep 11 09:29:37 EDT 2006


FYI - An update to this: I thought I would try replacing the 'long' path to
the .aspx --> aspnet_isapi.dll mapping with the 'short' one. This resulted a
different error that runs as follows:

"Server Error in '/mapguide/mapviewerajax' Application.
--------------------------------------------------------------------------------
Failed to access IIS metabase. 
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: System.Web.Hosting.HostingEnvironmentException: Failed to
access IIS metabase. 
The process account used to run ASP.NET must have read access to the IIS
metabase (e.g. IIS://servername/W3SVC). For information on modifying
metabase permissions, please see http://support.microsoft.com/?kbid=267904.
Source Error: 
An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.  
Stack Trace: 
[HostingEnvironmentException: Failed to access IIS metabase.]
   System.Web.Configuration.MetabaseServerConfig.MapPathCaching(String
siteID, VirtualPath path) +690
  
System.Web.Configuration.MetabaseServerConfig.System.Web.Configuration.IConfigMapPath.MapPath(String
siteID, VirtualPath vpath) +9
   System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath
virtualPath, Boolean permitNull) +174
   System.Web.CachedPathData.GetConfigPathData(String configPath) +398
   System.Web.CachedPathData.GetConfigPathData(String configPath) +263
   System.Web.CachedPathData.GetConfigPathData(String configPath) +263
   System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath,
Boolean permitPathsOutsideApp) +166
   System.Web.Configuration.RuntimeConfig.GetLKGRuntimeConfig(VirtualPath
path) +187
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
Version:2.0.50727.42 "

... and, yes, putting back the long version restores the previous cryptic
error, even though I had 'Check that file exists' selected, without any
configuration error being flagged.

  David


David Hamilton wrote:
> 
> Hi,
> 
> I have set up both MapGuide and the Web Server Extensions on IIS,
> auto-configured using the installer program, both on the same computer
> using the '127.0.0.1' address. However, browsing to the
> '/mapviewerajax/ajaxviewer.aspx?WEBLAYOUT=Library://ATest.WebLayout'
> address gives the following error:
> 
> "Server Error in '/mapguide/mapviewerajax' Application.
> The resource cannot be found.
> Description: HTTP 404. The resource you are looking for (or one of its
> dependencies) could have been removed, had its name changed, or is
> temporarily unavailable.  Please review the following URL and make sure
> that it is spelled correctly. 
> Requested URL: /mapguide/mapviewerajax/ajaxviewer.aspx"
> 
> This error also appears in the preview window of the MapGuide Studio -
> which seriously hinders any map development. 
> 
> Questions:
> 1  Has anyone else encountered/fixed this error?
> 2  Is there a workaround for MapGuide studio - i.e. can it use another
> component for layer/map previews?
> 
> Additional Information:
> *  Windows XP Professional SP2
> *  IIS 5.1
> *  .NET v2.0.50727
> *  DotNetViewerSample gives the same error (I did follow the sample
> installation instructions)
> *  WMS works for the Sheboygan sample, as does serving of static files
> such as the license.htm.
> *  MapGuide site configured to use .NET 2 (dropping it back to .NET 1.1 at
> least gives a more useful error, the 'namespace OSGeo not found error'
> reported in the forums)
> *  .aspx seem to be correctly mapped to the aspnet_isapi.dll file.
> *  Authentication allows Anonymous access, as per manual setup.
> *  MapGuide Admin Log files do not seem to show anything of interest
> *  Same error in IE/Firefox/Safari browsers
> 
> All I need is the import and WMS serving of a single map, and I have a
> short deadline, so I am afraid that I may have to abandon using MapGuide
> for our product if I cannot find a workaround soon.
> 
> Thanks in advance
>   David Hamilton
> 
> 

-- 
View this message in context: http://www.nabble.com/Error-in-ASP-AjaxViewer-application-tf2252189.html#a6246736
Sent from the OSGeo MapGuide forum at Nabble.com.





More information about the Mapguide_users mailing list