[mapguide-users] is inaccessible due to its protection level
Andy Morsell
amorsell at spatialgis.com
Tue Oct 10 11:17:21 EDT 2006
Try this instead (the email will probably wrap the lines);
MgResourceService ResourceService =
siteConnection.CreateService(MgServiceType.ResourceService) as
MgResourceService;
MgFeatureService FeatureService =
siteConnection.CreateService(MgServiceType.FeatureService) as
MgFeatureService;
Andy Morsell, P.E.
Spatial Integrators, Inc.
http://www.SpatialGIS.com
-----Original Message-----
From: Cory Gregor [mailto:cgregor at barkerlemar.com]
Sent: Tuesday, October 10, 2006 6:58 AM
To: users at mapguide.osgeo.org
Subject: [mapguide-users] is inaccessible due to its protection level
OK, first of all i am new at the whole MGOS and C#. I gotten maps to show
up fine. So i am guessing that my server is configured correct. i am
running IIS 6 on Win 2k3 server. I am using Visual Studio 2005.
I keep getting this error and can not find any help if it.
Compiler Error Message: CS0122:
'OSGeo.MapGuide.MgResourceService.MgResourceService()' is inaccessible due
to its protection level
Source Error:
Line 47: MgMap Map = new MgMap();
Line 48:
Line 49: MgResourceService ResouceService = new MgResourceService();
Line 50: MgFeatureService FeatureService = new MgFeatureService();
Line 51: MgFeatureQueryOptions QueryOptions = new
MgFeatureQueryOptions();
Am i using the it Wrong?
The goal is to get the Layer Name and the ID from the layer and pass it to
another page.
Please help if you can. I am pass a deadline of this.
Thanks,
Cory
--
View this message in context:
http://www.nabble.com/is-inaccessible-due-to-its-protection-level-tf2416853.
html#a6737010
Sent from the OSGeo MapGuide mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
For additional commands, e-mail: users-help at mapguide.osgeo.org
More information about the Mapguide-users
mailing list