tridiontridion-2011tridion-core-services

Getting Access is denied for the user NT AUTHORITY\NETWORK SERVICE.while accessing coreservice Tridion


When I was writing the custom page using tridion 2011 core services from my local, I used my tridion credential to access the core services webservice.

Now when everything is done on my local :), I published my website and simply did below things on the Tridion CM server.

please suggest!!

EDIT: I can see NT AUTHORITY\NETWORK SERVICE is been already added to my Tridion MMC, please below screenshot:

enter image description here


Solution

  • try this if it works for you, I haven't tried this so not sure that it will work

    var remoteAddress = new EndpointAddress(Settings.EndpointAddress);
    ProxyClient = new CoreServiceClient(basicHttpBinding, remoteAddress);
    ProxyClient.ClientCredentials.Windows.AllowNtlm = true;
    ProxyClient.ClientCredentials.Windows.ClientCredential = System.Net.CredentialCache.DefaultNetworkCredentials;
    ProxyClient.ClientCredentials.Windows.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Impersonation;