Re[mapguide-users] dlining error

Marius_360 marius at openspatial.co.za
Fri Jul 18 08:15:42 EDT 2008


Ok, I changed it to:
var featureService = new MgFeatureService(); 
siteConnection.CreateService(MgServiceType.FeatureService);

featureService.CreateFeatureSource(resourceIdentifier, sdfParams)

But now I get:
OSGeo.MapGuide.MgUnclassifiedException: An unclassified exception occurred.




Kenneth Skovhede, GEOGRAF A/S wrote:
> 
> Ok, then you still have to do:
> 
> Dim featureService as MgFeatureService =
> siteConnection.CreateService(MgServiceType.FeatureService)
> featureService.CreateFeatureSource(resourceIdentifier, sdfParams)
> 
> 
> In VB.Net, because you cannot call the Mg* classes from JavaScript.
> 
> Regards, Kenneth Skovhede, GEOGRAF A/S
> 
> 
> 
> Marius_360 skrev:
>> Sorry, I’m using ASP.Net with JavaScript
>>
>>
>>
>> Kenneth Skovhede, GEOGRAF A/S wrote:
>>   
>>> What do you mean?
>>>
>>> There is no MgServiceType declared in JavaScript?
>>> You wrote that you used VB.Net in the original post.
>>>
>>> You cannot use any of the Mg* classes from JavaScript because they are 
>>> server side components.
>>>
>>> Regards, Kenneth Skovhede, GEOGRAF A/S
>>>
>>>
>>>
>>> Marius_360 skrev:
>>>     
>>>> I am using JavaScript :
>>>> var featureService =
>>>> siteConnection.CreateService(MgServiceType.FeatureService);
>>>>
>>>> featureService.CreateFeatureSource(resourceIdentifier, sdfParams);
>>>>
>>>>
>>>>
>>>> Kenneth Skovhede, GEOGRAF A/S wrote:
>>>>   
>>>>       
>>>>> How do you construct the featureService variable?
>>>>>
>>>>> You should do something like:
>>>>>
>>>>> Dim featureService as MgFeatureService  = 
>>>>> connection.CreateService(MgServiceType.FeatureService)
>>>>> featureService.CreateFeatureSource(...., ....)
>>>>>
>>>>>
>>>>> Regards, Kenneth Skovhede, GEOGRAF A/S
>>>>>
>>>>>
>>>>>
>>>>> Marius_360 skrev:
>>>>>     
>>>>>         
>>>>>> Hi
>>>>>>
>>>>>> I need to develop a redlining application for a client using VB.Net
>>>>>> and
>>>>>> JavaScript.
>>>>>> I converted the demo code available, but get stuck with the
>>>>>> “featureService.CreateFeatureSource” command, it gives me a “Objects
>>>>>> of
>>>>>> type
>>>>>> 'OSGeo.MapGuide.MgService' do not have such a member” error
>>>>>>
>>>>>> Marius
>>>>>>   
>>>>>>       
>>>>>>           
>>>>> _______________________________________________
>>>>> mapguide-users mailing list
>>>>> mapguide-users at lists.osgeo.org
>>>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>>>>
>>>>>
>>>>>     
>>>>>         
>>>>   
>>>>       
>>> _______________________________________________
>>> mapguide-users mailing list
>>> mapguide-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>>
>>>
>>>     
>>
>>   
> 
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context: http://www.nabble.com/Redlining-error-tp18524267p18527944.html
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list