I want to swich the iis site authentication from "Anonymous Authentication" to "Windows Authentication", but i can't authenticate my Windows Service that is running on the same server, i try to add this to my .config file of the service
<security mode="TransportCredentialOnly"> <transport clientCredentialType="Ntlm" proxyCredentialType="None"realm="" /> <message clientCredentialType="UserName" algorithmSuite="Default" /> </security> but it doesn't work the exception is:
Configuration system failed to initialize ---- at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey) at System.Configuration.ClientConfigurationSystem.PrepareClientConfigSystem(String sectionName) at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName) at System.Configuration.ConfigurationManager.get_AppSettings() at DynamicReportWinService.DynamicReportingService.OnStart(String[] args) how can I login my Windows Service?