Try removing the single quotes around the WEBLAYOUT.

For example:
http://localhost/mapguide/mapviewernet/ajaxviewer.aspx?weblayout=Library://Samples/Sheboygan/Layouts/SheboyganAsp.WebLayout&LOCALE=en&username=Anonymous&password=
works
but
http://localhost/mapguide/mapviewernet/ajaxviewer.aspx?weblayout='Library://Samples/Sheboygan/Layouts/SheboyganAsp.WebLayout'&LOCALE=en&username=Anonymous&password=
returns the same error you are receiving.

gordon


On Mon, Feb 2, 2026 at 6:53 PM Greg Neff <[email protected]> wrote:

> Thanks for the response.
>
>
>
> This is just on my local machine so it’s not available for you to try the
> url but here is how the layout is embedded in the page.
>
>
>
> <frameset id="master" rows="30,*" frameborder="no" framespacing="0">
>
>     <frame name="titleFrame" id="titleFrame" frameborder="0"
> marginwidth="0" marginheight="0" scrolling="no" src="title.html">
>
>    <frame name="viewerFrame" id="viewerFrame" frameborder="0"
> marginwidth="0" marginheight="0" scrolling="no"
>
>         src="../mapviewernet/ajaxviewer.aspx?SESSION='<%=sessionId
> %>'&WEBLAYOUT='<%=webLayout
> %>'&Username=<%=defaultUser%>&Password=<%=defaultPassword%>">
>
> </frameset>
>
>
>
> A frame before the layout loads and then the error.  Here is how the page
> looks:
>
>
>
>
>
> Thanks,
>
>
>
> *Gregory B. Neff*
>
> Cottonwood Improvement District
>
> 8620 S Highland Dr
>
> Sandy, UT 84093
>
> 801.943.7671
>
> cottonwoodimprovement.gov
>
>
>
> *From:* Gordon Luckett <[email protected]>
> *Sent:* Monday, February 2, 2026 3:46 PM
> *To:* MapGuide Users Mail List <[email protected]>
> *Cc:* Greg Neff <[email protected]>
> *Subject:* Re: [mapguide-users] ajax viewer with MG 4
>
>
>
> Can you share the direct Layout URL and the URL you are embedding?
>
>
>
>
>
> On Mon, 2 Feb 2026, 17:37 Greg Neff via mapguide-users, <
> [email protected]> wrote:
>
> I am using  Mapguide 4
>
> .net
>
> IIs 10
>
> Windows 11
>
>
>
> and trying to get an old layout with the ajax viewer working.  It’s still
> working on a different server with Mapguide 3.1.2.9484.
>
>
>
> I have updated my map definition and web layout to the latest resource
> versions.
>
>
>
> I can preview the layout just fine in Maestro but when I try to load it
> into a frame on a web page I get the following error:
>
>
>
> Invalid repository type. Bad Resource Identifier: -
> CSharp_OSGeofMapGuide_new_MgResourceIdentifier___() line 11524 file
> C:\Workspace\mg-4.0\MgDev\Bindings\src\Bindings\DotNet\PlatformBase\PlatformBaseUnmanagedApi_wrap.cpp
> - MgResourceIdentifier.ParseIdentifier() line 457 file
> C:\Workspace\mg-4.0\MgDev\Common\PlatformBase\Services\ResourceIdentifier.cpp
>
>
>
> Does anyone know why I might be getting this error.
>
>
>
> Thanks,
>
>
>
> *Gregory B. Neff*
>
> Cottonwood Improvement District
>
> 8620 S Highland Dr
>
> Sandy, UT 84093
>
> 801.943.7671
>
> cottonwoodimprovement.gov
>
>
>
> _______________________________________________
> mapguide-users mailing list
> [email protected]
> https://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
_______________________________________________
mapguide-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to