[mapguide-users] SetResourceData: resource was busy

Zac Spitzer zac.spitzer at gmail.com
Tue Jul 20 10:15:52 EDT 2010


which version of MapGuide are you using?
and are you 100% that you are closing off every featurereader?

On 20 July 2010 18:59, sekko970 <fabio.franceschini at techneteam.it> wrote:
>
> Hi,
>
> I need to update dinamically my ODBC feature source but, when I save it,
> many times (but not ever) I have the following error:
>
> Please try your operation later as the resource was busy:
> Library://.../DB.FeatureSource
>
> This is an extract of my code:
>
> Dim dbResID as New MgResourceIdentifier(Library://.../DB.FeatureSource)
> Dim dbByteRead as MgResourceService =
> mgResourceService.GetResourceData(dbResID, "config")
>
> Dim dbXML As New XmlDocument
> dbXML.LoadXml(dbByteRead.ToString)
> .....
> ..... edit xml .....> .....
> Dim dbByteSrc As New MgByteSource(Encoding.UTF8.GetBytes(dbXML.OuterXml),
> Encoding.UTF8.GetByteCount(dbXML.OuterXml))
> Call dbByteSrc.SetMimeType(MgMimeType.Xml)
> resourceSrvc.SetResourceData(dbResID, "config", "Stream",
> dbByteSrc.GetReader())
>
> Thanks, Fabio
>
>
>
>
>
> --
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/SetResourceData-resource-was-busy-tp5315816p5315816.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>



-- 
Zac Spitzer
Solution Architect / Director
Ennoble Consultancy Australia
http://www.ennoble.com.au
http://zacster.blogspot.com
+61 405 847 168


More information about the mapguide-users mailing list