The user does not match a known account in Active Directory

I was in a lot of trouble due to this error for the last couple of days. I used the option of setting up Web Configuration for Master Data Service (SQL Server 2008 R2) from Configuration Manager.
The screen shot of it is as follows:

I was logged in using my domain user account, and I had used User Name as “domainuser” instead; the error message continuously popped up each time. My domain account has administrator privileges, but even that didn’t help at all. Any help will be greatly appreciated.
Error:
Application pool not valid
The user does not match a known account in Active Directory.
