my crm is on premise configured with public ip and http connection
ex- http://xxx.xxx.xxx.xxx:5555
i have to authenticate and gain access to crm from windows phone 8 application.but won't able to access it.
it always showing null reference exception in metadataLoaded function
but i can access it through windows form application and able to retrieve organization
code-
IServiceConfiguration<IOrganizationService> OrgServiceConfiguration OrgServiceConfiguration = ServiceConfigurationFactory.CreateConfiguration<IOrganizationService>(new Uri("http://xxx.xxx.xxx.xxx:5555/ymf/XRMServices/2011/Organization.svc"),
metadataLoaded);
OrgServiceConfiguration.MetadataLoadFailure += new EventHandler<ServiceMetadataLoadedEventArgs>(OrgServiceConfiguration_MetadataLoadFailure);