Siti Norani Siti Norani - 1 year ago 190
ASP.NET (C#) Question

Your login attempt was not successful. Please try again. -Visual Studio 2015

I make a simple login asp net web application in Visual Studio 2015. I successfully publish it into local ip and public ip. Then I update some pages in my web application so I run it first in browser(local) to try but it said "Your login attempt was not successful. Please try again." when try to login. Definitely I input right password.

Before this I also face same problem and solved it by delete C:\Users\user\AppData\Local\Microsoft\Microsoft SQL Server Data\SQLEXPRESS" folder. But now I try it but cannot solve.

I suspect it appoint to wrong login database which is C:\Users\bcd\Documents\My Web Sites\loginTest\loginTest\App_Data, it should appoint to C:\inetpub\wwwroot\loginTest\App_Data.


<?xml version="1.0" encoding="utf-8"?>

<compilation debug="true" targetFramework="4.5.2"/>
<authentication mode="Forms"/>
<customErrors mode="RemoteOnly" ></customErrors>


Answer Source

I copy App_Data folder from

C:\Users\bcd\Documents\My Web Sites\loginTest\loginTest\App_Data

and paste it into C:\inetpub\wwwroot\loginTest\App_Datato replace the folder.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download