none
Code Not Working RRS feed

  • Question

  •  protected void Page_Load(object sender, EventArgs e)
        {
            //ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;
            ClientCredentials Credentials = new ClientCredentials();
            Credentials.UserName.UserName = "adminuser@ec1dxc.onmicrosoft.com";
            Credentials.UserName.Password = "zzz";
            Uri OrganizationUri = new Uri("https://zzzz.api.crm8.dynamics.com/XRMServices/2011/Organization.svc");
            Uri HomeRealmUri = null;
            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
            OrganizationServiceProxy serviceProxy = new OrganizationServiceProxy(OrganizationUri,
                                                                                    HomeRealmUri,
                                                                                    Credentials,
                                                                                    null);
            IOrganizationService service = (IOrganizationService)serviceProxy;
       
        }
    The working code in console application is not working in My Asp.net project.
    Thursday, February 7, 2019 5:29 AM

All replies

  • Hi Abhilash,

    Seems like you have posted in a wrong thread. It is for Project Server, Project Online & MS Project. Please move it to the respective thread so that someone will help you.

    Thursday, February 7, 2019 12:20 PM