[mapguide-users] resource always exists

mika at digikartta.net mika at digikartta.net
Thu Dec 12 01:41:38 PST 2013


..changing the connection into http one and 
conn.ResourceService.ResourceExists() works as expected..
any ideas?
I need localnative connection..
Should I use http-connection for these and localnative only for 
transaction purposes?
Where's the bug? Shouldn't the ResourceExists return always false 
unless the resource is really found?

- mika -


mika at digikartta.net kirjoitti 2013-12-12 11:00:
> I just can't figure this out, still having this problem with
> MaestroAPI 5 + AIMS 2014 combo.
>
> OSGeo.MapGuide.MaestroAPI.IServerConnection conn =
> 
> OSGeo.MapGuide.MaestroAPI.ConnectionProviderRegistry.CreateConnection(
>                     "Maestro.LocalNative",
>                     "ConfigFile", agent,
>                     "Username", strMgUsername,
>                     "Password", strMgPassword);
>
> content.Text = 
> conn.ResourceService.ResourceExists(field1.Text).ToString();
>
>
>
> content.Text is *always* true no matter what the field1.Text is.
>
> If I can't get this sorted out, do you have any suggestions how to
> get around from this - how to check if resource exists without 
> getting
> any exceptions?
>
>
>
> - mika -
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users


More information about the mapguide-users mailing list