You need to sign in to do that
Don't have an account?
![heiritic heiritic](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
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 :
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
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
is there something missing in my code?
thank you