[mapguide-users] Create Feature Source With C#

TabrizSoftware Ali_Akhavan2 at yahoo.com
Tue Jan 19 02:24:18 PST 2016


Hi,I want to create Feature Source With Maestro API  in C#My Code is
:OSGeo.MapGuide.ObjectModels.FeatureSource.IFeatureSource fs =
(OSGeo.MapGuide.ObjectModels.FeatureSource.IFeatureSource)ObjectFactory.CreateFeatureSource("OSGeo.SQLServerSpatial");fs.SetConnectionProperty("Service",
ServerAddress);            fs.SetConnectionProperty("DataStore",
DatabaseName);            fs.SetConnectionProperty("Username",
"%MG_USERNAME%");            fs.SetConnectionProperty("Password",
"%MG_PASSWORD%");            fs.ResourceID =
MyResourceName;conn.ResourceService.SaveResource(fs);OSGeo.MapGuide.ObjectModels.FeatureSource.FeatureSourceCredentialExtensions.SetEncryptedCredentials(fs,
conn, actualUser, actualPass);All code run Ok ,BUT When Test Connection it
say *Password is wrong*Please help me



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Create-Feature-Source-With-C-tp5246041.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapguide-users/attachments/20160119/5a39d284/attachment.html>


More information about the mapguide-users mailing list