[mapguide-users] Error in ASP AjaxViewer application

David Hamilton d.n.hamilton at jiffle.net
Mon Sep 11 12:56:13 EDT 2006


Thanks for the reply.

No, putting the short path in merely changes the error from the '404 or
dependancy error' to the 'Metabase access error' one.

Sorry, I omitted the name of the (internal) server from the error
description as it would not have been of any use to anyone, and I thought it
might confuse the post, but I have been using fully qualified pathnames at
all times.

I think you're right, IIS seems to be pretty messed up on that box. Think
I'll put this on one side until I can find another server to test on.

Cheers
  David 


Andy Morsell wrote:
> 
> It sounds like you might have broken your IIS install by doing that.  If
> you
> put the short path back, does this error go away?
> 
> In your original post you do not show a full URL for the addresses you are
> trying to access.  Try putting the machine name first, something like:
> http://localhost/mapguide/mapviewerajax/?WEBLAYOUT=Library://Samples/Sheboyg
> an/Layouts/SheboyganAsp.WebLayout&LOCALE=en
> 
> 
> Andy 
> 
> -----Original Message-----
> From: David Hamilton [mailto:d.n.hamilton at jiffle.net] 
> Sent: Monday, September 11, 2006 6:30 AM
> To: users at mapguide.osgeo.org
> Subject: SPAM-LOW: Re: [mapguide-users] Error in ASP AjaxViewer
> application
> (update)
> 
> 
> 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.IConf
> igMapPath.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#a62
> 46736
> Sent from the OSGeo MapGuide forum at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
> For additional commands, e-mail: users-help at mapguide.osgeo.org
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
> For additional commands, e-mail: users-help at mapguide.osgeo.org
> 
> 
> 

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





More information about the Mapguide-users mailing list