function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
heiriticheiritic 

error in metadata initialization

hai everyone,

I want to ask about the metadata api.
I have an error like this :

Unable to generate a temporary class (result=1).
error CS0030: Cannot convert type 'testmetadata.meta.LayoutItem[]' to 'testmetadata.meta.LayoutItem'

here is my snippet :
Code:
Dim bindings As New sforce.SforceService
        Dim a As sforce.LoginResult = bindings.login("username", "pass")
        bindings.SessionHeaderValue = New sforce.SessionHeader
        bindings.SessionHeaderValue.sessionId = a.sessionId
        bindings.Url = a.serverUrl

        Dim binding As New meta.MetadataService '--> this where the error started
        binding.SessionHeaderValue = New meta.SessionHeader
        binding.SessionHeaderValue.sessionId = a.sessionId
        binding.Url = a.metadataServerUrl

 
I'm confused why I got this error.anyone can help or suggest about this matter?
is there something missing in my code?

thank you