Windows error 0x8007052E, -2147023570

Detailed Error Information

LOGON_FAILURE[1]

MessageThe user name or password is incorrect.
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode7 (0x007)
NameFACILITY_WIN32[2][1]
DescriptionThis region is reserved to map undecorated error codes into HRESULTs.[2][1]
Error Code1326 (0x052e)

This is a Win32 error which has been mapped into an HRESULT. More information may be available in error 0x0000052e.

Questions

163votes
31answers

How do I resolve "HTTP Error 500.19 - Internal Server Error" on IIS7.0

What causes this error, how can I fix it? > Detailed Error Information Module IIS Web Core Notification BeginRequest Handler Not yet determined Error Code 0x8007052e Config Error Can not log on locally to C:\inetpub\wwwroot as user administrator with virtual directory password Config File Unavailable (Config Isolation) Requested URL http://192.168.0.3:80/ [...] read more
asp.net
iis
web-applications
iis-7
47votes
6answers

WebDeploy - Not able to log on the user '.\WDeployConfigWriter'

I have problem with MsDeploy to publish my website to remote IIS from Visual Studio. I encountered the following error: > Microsoft.Web.Delegation.DeploymentAuthorizationException: Not able to log on the user '.\WDeployConfigWriter'. ---> System.Runtime.InteropServices.COMException: The user name or password is incorrect. (Exception from HRESULT: 0x8007052E) --- End of inner exception stack trace [...] read more
msdeploy
35votes
4answers

Active Directory - Check username / password

I'm using the following code on Windows Vista Ultimate SP1 to query our active directory server to check the user name and password of a user on a domain. public Object IsAuthenticated() { String domainAndUsername = strDomain + "\\" + strUser; DirectoryEntry entry = new DirectoryEntry(_path, domainAndUsername, strPass); SearchResult result; [...] read more
c#
windows-vista
active-directory
ldap
15votes
2answers

UserPrincipal.FindByIdentity Permissions

I'm attempting to use the .NET System.DirectoryServices.AccountManagement library to obtain the UserPrincipal for a particular Active Directory user. I've got the following code: PrincipalContext context = new PrincipalContext(ContextType.Domain, "DomainName"); userPrincipal = UserPrincipal.FindByIdentity(context, IdentityType.SamAccountName, username); This code is running as a valid domain user, but when I execute it I get [...] read more
c#
.net
active-directory
ldap
directoryservices
6votes
4answers

IIS7 FTP Setup - An error occured during the authentication process. 530 End Login failed

I'm having a problem very similar to IIS 7.5 FTP IIS Manager Users Login Fail (530) on Windows Server 2008 R2 Standard. I have created an FTP site and IIS Manager user but am having trouble logging in. I could really do with getting this working with the IIS Manager [...] read more
iis-7
ftp
6votes
2answers

"Cannot read configuration file" Error when accessing the image from the virtual directory on IIS whose physical path is network folder

I have deployed my application on IIS 7.0. I wanted a shared Image folder in my application, so I created a virtual directory inside my deployed application on IIS. I set the physical path for this virtual directory to a shared folder on another machine. Now when I try to [...] read more
asp.net
iis
4votes
1answer

Run Service Fabric App under Group Managed Service Account (gMSA)

I'm testing using a gMSA account to run an SF app, instead of NETWORKSERVICE. Following the instructions from here: https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-application-runas-security 1. Created the gMSA on the domain controller using the powershell cmdlet: New-ADServiceAccount -name MySA$ -DnsHostName MySA.contoso -ServicePrincipalNames http/MySA.contoso -PrincipalsAllowedToRetrieveManagedPassword Node0Machine$, Node1Machine$, Node2Machine$ 2. Install-AdServiceAccount returned an "unspecified error" on [...] read more
azure-service-fabric
4votes
1answer

ADFS 3.0 and non-claims aware application, authentication issues

We are trying to federate our application, so that our customers can gain to our application using their respective corporate identities (Ping Identity or their ADFS server). The web application is non-claims aware and we are trying to find out a solution to federate it without changing the code. I [...] read more
authentication
claims-based-identity
claims
adfs3.0
4votes
0answers

IIS 7.5 - Setting up a Virtual Directory for a file share on another domain

I have a Windows 2008 R2 server running IIS 7.5. I'd like to set up a virtual directory for my website to allow the download of video files from a file share on a server in another domain. I have a domain username and password that allows me to access [...] read more
asp.net
authentication
cross-domain
iis-7.5
virtual-directory
3votes
1answer

Server 2016 Scheduled Task fails on specific hardware model with error 0x8007052e

I've got a strange problem relating to basic Windows Scheduled tasks that has baffled me for a few weeks now. These jobs fail to run on some servers, but work on others which are running on different hardware/VMs platforms. Initially this was a problem we spotted deep within one of [...] read more
windows-server-2016
dell-poweredge
scheduled-task
task-scheduler
3votes
1answer

How do you setup FTP with IIS Manager Users in an NLB environment with shared IIS configs?

I've setup a 2 node NLB cluster and used the following to share IIS configs between them. http://blogs.technet.com/b/meamcs/archive/2012/05/30/configuring-iis-7-5-shared-configuration.aspx The IIS configs and content is located on a network share via a UNC path. This works - updating IIS settings on one node, is visible in another node and my website [...] read more
windows-server-2008-r2
ftp
iis-7.5
nlb
3votes
3answers

LDAP validation fails when "User must change password on next log on". Any solution?

I'm having trouble with a user validation when the "User must change password on next log on" is set. Here's how I validate the user: Boolean ValidateUser(String userName, String password) { try { var userOk = new DirectoryEntry("LDAP://<my LDAP server>", userName, password, AuthenticationTypes.Secure | AuthenticationTypes.ServerBind); return true; } catch (COMException [...] read more
c#
ldap
3votes
0answers

MVC - Forms Authentication - 401.2

I am trying to setup FormsAuth for my MVC app. When I browse to the login action (which has the AllowAnonymous attribute, I get a 401.2 error. My web.config has: <authentication mode="Forms"> <forms loginUrl="~/Account/Login" timeout="2880" /> </authentication> <authorization> <allow users="*" /> </authorization> My IIS authentication settings for the web app [...] read more
asp.net-mvc
forms-authentication
http-status-code-401
2votes
2answers

iis app pool set credentials not working for specific network account

I am trying to set app pool credentials for a speccific domain account for an ASP.net MVC project on iis 7.5 on a Windows 7 enterprise server. I am using .Net version 4 and I believe this is set correctly throughout the iis interface. We have set up a user [...] read more
configuration
connection
iis
2votes
0answers

Changing the web.config takes the WCF service down?

I have a simple WCF service hosted on IIS. Anytime I change the web.config file the service goes down and shows the following error: > Could not load file or assembly 'AutoMapper, Version=1.1.0.188, Culture=neutral, PublicKeyToken=be96cd2c38ef1005' or one of its dependencies. Logon failure: unknown user name or bad password. (Exception from [...] read more
wcf
iis
web-config
automapper
2votes
0answers

UserPrincipal.IsMemberOf(GroupPrincipal) across domains ASP.Net

I am looking to amend a site to validate across domain but it gives the error below when run and login as the user from the other domain. Can you advise what security setting needs to be applied to the ASP.Net application pool to enable this? The user name or [...] read more
c#
asp.net
principalcontext
groupprincipal
2votes
1answer

Vagrant unable to mount SMB after upgrade to 1.7.4

I'm using vagrant on windows 8, with the hyper-v provider starting a windows server 2012 box. Before I updated to vagrant 1.7.4 I was on version 1.7.2, and everything worked. But after updating I am getting an error when it is trying to mount the shared folder: The following WinRM [...] read more
vagrant
smb
2votes
2answers

Active directory module configuration with sitecore

I am trying to configure active directory module for sitecore. I installed the package for AD module and verified the various files that gets included in the sitecore. I did the below configuration to strat with 1. Connection string <add name="ADConnString" connectionString="LDAP://ldapserver.corp.pk.com:389,DC=corp,DC=pk,DC=com" /> 2. Membership provider <membership defaultProvider="sitecore" hashAlgorithmType="SHA1"> <providers> [...] read more
asp.net
active-directory
ldap
sitecore
ldapconnection
2votes
1answer

IOException HResult possible values

I find out that sometimes in IO operations common IOException is thrown. I can use Marshal.GetHRForException(Exception e) method (found here) in order to determine the specific error code. After that, I want to re-throw an exception, using my application specific error code, in order to give the user some tips [...] read more
c#
.net
error-handling
ioexception
hresult
2votes
7answers

Response.TransmitFile() with UNC share (ASP.NET)

In the comments of this page: http://msdn.microsoft.com/en-us/library/12s31dhy%28v=VS.90%29.aspx ..it says that TransmitFile() cannot be used with UNC shares. As far as I can tell, this is the case; I get this error in Event Log when I attempt it: TransmitFile failed. File Name: \\myshare1\e$\file.zip, Impersonation Enabled: 0, Token Valid: 1, HRESULT: [...] read more
asp.net
download
impersonation
content-disposition
transmitfile
1vote
1answer

Scheduling task on windows server 2016 using group managed service account failing

I have created a new group managed service account in AD and added two servers to access the account. I am able to use the account in services.msc. It is accepting it there but when I am trying to schedule task in Task scheduler (using PowerShell command) I am getting [...] read more
powershell
scheduled-task
windows-server-2016
1vote
1answer

Enumerating User Groups in Active Directory from Different Domain

I have a .net web application that needs to obtains groups that a user is a member of in active directory. My code works perfectly using my ID, but when I run it under the application ID it gives me the following error: COMException (0x8007052e): Logon failure: unknown user name [...] read more
active-directory
1vote
0answers

Register-Scheduledjob creates a job but it never runs at startup

I have tried 100 ways to register-scheduledjob to run a script that would start the program. nothing seems to be working consistently. my last attempt was using Register-ScheduledTask, this one does create the job but doesn't start it automatically at system startup. the funny thing is if I run it [...] read more
powershell
azure-template
1vote
1answer

How to validate the credentials passed to a `PrincipalContext`

This is a follow up to my previous question. QUESTION > What is the correct way of validating the credentials passed to a PrincipalContext? BACKGROUND In my application I instantiate a PrincipalContext using PrincipalContext(ContextType, String, String, String). I have a number of integration tests that fail when the credentials are [...] read more
c#
active-directory
.net-core
principalcontext
1vote
1answer

http error 500.19 - internal server error iis 0x8007052e IIS

i am trying to host web site in IIS but showing error Module IIS Web Core Notification Unknown Handler Not yet determined Error Code 0x8007052e Config Error Can not log on locally to C:\Users\admin\Desktop\WebSite3 as user admin-PC with virtual directory password Config File Unavailable (Config Isolation) Requested URL http://localhost:8039/Default.aspx Physical [...] read more
asp.net
iis
1vote
2answers

Connect to Active Directory using credential

I'm trying to connect to AD sever using C#. This is my first time playing with AD.Domain I need to connect to is abc.def.com. This is a ASP.NET web site and it gives this error. But I can log in to same domain using "ldp.exe" by using same credential. Anyone [...] read more
c#
active-directory
1vote
0answers

In Microsoft javascript is it possible to get the textual description of an error coming from an HRESULT?

I know the Error object http://msdn.microsoft.com/en-us/library/dww52sbt in Microsoft javascript. Some errors come from an HRESULT and they have a valid number property (for example -2147023570 which maps to 0x8007052E, see for example "Making Sense of HRESULTS" by Eric Lippert http://blogs.msdn.com/b/ericlippert/archive/2003/10/22/53267.aspx ) but the message property (or description property) is empty [...] read more
javascript
windows
com
hresult
1vote
1answer

Authenticating an ADAM user against ADAM from C# - cannot bind

I have set up an ADAM instance and added some test users. From c# I can bind to ADAM using a windows account but I cannot bind using one of the ADAM users. (I can successfully bind the adam users in ldp) & I have made sure the users are [...] read more
c#
authentication
directoryservices
adam
0votes
0answers

Scheduling task on windows server 2016 using group managed service account failing

I have created a new group managed service account in AD and added two servers to access the account. I am able to use the account in services.msc. It is accepting it there but when I am trying to schedule task in Task scheduler (using PowerShell command) I am getting [...] read more
powershell
scheduled-tasks
windows-server-2016
0votes
2answers

IIS7 manager password problems after Windows administrator password change

Our network administrator recently left and, until we get another one, I'm filling in trying to keep the servers running :o I changed the administrator password for the server (Windows Server 2008), and since then if I try to manage IIS through IIS Manager I get prompted for a username [...] read more
windows-server-2008
iis-7
authentication
password
iis
0votes
1answer

IIS 7.5 Basic authorization issue

When I log on using correct user name\password (I always copy-paste them) I get 401.1 error. User name and password are correct (user is created on server locally, not a domain one). I can run program as this user (runas /noprofile /user:tmp notepad.exe). Basic authorization's default domain is a server [...] read more
iis-7.5
http-basic-authentication
0votes
1answer

Task scheduler fails after admin user renamed

I renamed user on server from "administrator" to "serveradmin" because of recent worm. For few days everything work great but now recuring windows tasks fails to execute with status: Logon failure: unknown user name or bad password (0x8007052E) Also, it is not possible to create new tasks: Task Scheduler service [...] read more
windows
windows-server-2008
task-scheduler
0votes
0answers

Connect to LDAP with C#

I'm trying to figure out how to connect to LDAP via C#. The only address that I've got is the following: LDAP://CDS.mycompany.com/o=mycompany.com I have tried to follow the following guide: https://msdn.microsoft.com/en-us/library/ms257181(v=vs.90).aspx But they are using a <user> <pwd> <domain> for the credentials. Which is the domain? I have also tried [...] read more
c#
active-directory
ldap
0votes
0answers

HTTP Error 500.19 - Internal Server Error when accessing website

I have just uploaded an ASP.NET Core 2.1 app. I get this error when I try to run my website on IIS 8.0 > Detailed Error Information: Module IIS Web Core Notification BeginRequest Handler Not yet determined Error Code 0x8007052e Config Error Can not log on locally to C:\Inetpub\vhosts\website-domain.my\dev.website-domain.my\MSS as [...] read more
c#
asp.net
iis
asp.net-core
0votes
1answer

Why would my ASP.NET application, running as a domain user, require a restart to use PrincipalContext after an Active Directory issue?

I have a ASP.NET 4.5 application that runs in an application pool with a particular domain user name and password. It's been working fine for months. A few days ago, there was an Active Directory issue whose details remain unknown to me, but my application users reported around the time [...] read more
asp.net
application-pool
principalcontext
applicationpoolidentity
0votes
1answer

LDAP Create two users with same username in different OUs

In my AD, I can't login after i have created two users with same user name - Alex in different OU. They have different sAMAccountName. Error: > Call method - auehtnticateUser. System.DirectoryServices.DirectoryServicesCOMException (0x8007052E): The user name or password is incorrect. at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_AdsObject() at System.DirectoryServices.DirectorySearcher.FindOne() at [...] read more
c#
ldap
0votes
1answer

Standalone Service Fabric - AWS - FileStoreService - Copy-ServiceFabricApplicationPackage Fails

I have a 3 node standalone windows service fabric setup in AWS. The TestConfiguration and CreateCluster scripts run successfully, however on attempting to deploy any applications into the cluster I get the following error from powershell. Copy-ServiceFabricApplicationPackage -ApplicationPackagePath .\pkg\<packagename> -ImageStoreConnectionString fabric:ImageStore Copy-ServiceFabricApplicationPackage : An error occurred during this operation. Please [...] read more
azure-service-fabric
service-fabric-on-premises
0votes
0answers

vb.net authorization error with AD and LDAP

We are upgrading our servers and .net application from windows 2000 to the newly-purchased windows 2012R2 servers. There is one function which works in windows 2000 but doesn’t work in windows 2012R2. We are running an .net 2.0 internal application in windows 2000 and IIS 5.0 using Visual Studio professional [...] read more
asp.net
.net
vb.net
active-directory
ldap
0votes
1answer

Unable to acess Active Directory when app is deployed in IIS

I've an application (ASP.Net v4.0) which is on a win7 system. I'm able to connect to an Active Directory (in a server) in both ways, like debugging from Visual Studio 2013 or like deploying in local IIS. But when I publish the same code in Server's IIS, its not connecting [...] read more
c#
asp.net
iis
0votes
0answers

HTTP Error 500.19 - Internal Server Error -- IIS when accessing shared by specified user

I created a virtual directory (on Server 1) to access a shared location ( share is on another server ). to give the URL as http://server1.com/aliasThe shared location contains few folders. Through my another application ( located on server1), i need to access URL http://server1.com/alias/folders Instead of using pass through [...] read more
c#
asp.net
iis
iis-7
0votes
1answer

SimpleBind Authentication against Active Directory

I'm trying to authenticate login credentials against Active Directory (AD DS) using the following code: using (var context = new PrincipalContext(ContextType.Domain, ipAddress)) { Console.WriteLine("Connected to {0}:", context.ConnectedServer); context.ValidateCredentials(username, password); } Where ipAddress is the address of the primary domain controller. However this gives the following error when attempting to read [...] read more
c#
asp.net
authentication
active-directory
ldap
0votes
0answers

ASMX webservice using Basic authentication response 401 unauthorizied status

I have a ASMX file upload webservice with Basic authentication which works fine when called from my local system. But when its called from another server I get 401 unauthorized error. Have looked at IIS log files and I see two responses. Status SubStatus win32-status - 401 2 1326 - [...] read more
asp.net
.net
asmx
0votes
1answer

LDAP authentication works with DN but not with CN of AD

Recently I had to interact with an application that interacts with 2 ADs on host1 and host2. I find that ldap connections have been failing when connecting to 1 of the hosts. The error looks like this: > Connection to 'LDAP://[host1]/RootDSE' failed. System.DirectoryServices.DirectoryServicesCOMException (0x8007052E): Logon failure: unknown user name or [...] read more
active-directory
ldap
0votes
1answer

HTTP Error 500.19 - Internal Server Error 0x8007052e

I copied an MVC project from another development pc to my laptop and tried to deploy it on the laptop which gave this error. The user account password was changed recently prior to this error. I tried tinkering around with the app pool permissions for the root folders with no [...] read more
asp.net-mvc
iis
deployment
iis-7
virtual-directory
0votes
1answer

Issue with Response.TransmitFile

I have been working on an issue for the past 2 days.I have tried to debug in every way possible but in vain. Everything works fine on my local.But on production this fails. Here is a brief description about the problem. I have a download button and when I click [...] read more
debugging
download
response.write
event-viewer
0votes
0answers

LDAP Authentication failed. Could that be due to change in domain?

I could login to a web application when i was under the domain "X" but recently migrated to "y". But my VS.Net 2003 code doesn't do anything to verify the domain. As long as i'm registered with the database, it takes me in. I'm really surprised why it stopped working [...] read more
c#
asp.net
authentication
httpcontext
0votes
2answers

Task Scheduler 1.0: What does this error mean

I am working with the windows Task Scheduler 1.0 in win32 c++ & I am attempting to create & save a new task. Everything goes fine until I go to save the task by using the following function: IPersistFile :: Save( NULL, TRUE ); The error that is returned is [...] read more
c++
winapi
-2votes
1answer

Remote Server Administration Tool

screenshot [https://i.stack.imgur.com/0kGhI.jpg] i am trying to install RSAT ,BUT there is error ,"Installer encountered an error 0x8007052e" The username and password is incorrect.HOW to fix this to install RSAT read more
windows-server-2012-r2

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0