Hi soumitrasa,
Based on my understanding, you want to create local user by ASP.NET application. The web project works great when running on Windows XP, but fails on Windows 2003. If there has been any misunderstanding, please let me know.
In my opinion, the solution of giving privilege to the account for ASP.NET web application should work on both Windows XP and Windows 2003. The most likely cause of this issue is that you assigned privilege to the wrong account. In Windows XP, the IIS version is 5.1 and by default ASP.NET using the ?ASPNET? account. However, in Windows 2003, the IIS version is 6.0, and ASP.NET using the ?Network Service?.
Hence, please try to give privilege to ?Network Service? account, or configure Application Pool identity to run as the Local System account. About how to configure Application Pool identity, please refer to the following link:
Configuring Application Pool Identity in IIS 6.0 (IIS 6.0)
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/12a3d96c-65ea-4210-96ad-86a801f6a88c.mspx?mfr=true
Sincerely,
Benson Yu
Microsoft Online Community Support
Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.