1. I built a asp.net mvc application , and now I want to add a membership feature to the project. My problem is: I don't want to use the default data source file, I want to store the membership information to a SQL Server at remote machine. How can I do ?
2. I tried to change the datasource files. When I deleted the mdb files, It auto generate two mdb files just the same as before, But when the website run, and I use a wrong account to login, It encounter a error:
{"Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster."}
but not remind you that your account or password is error. How can I solve this problem ?
All helps will be very appreciated, Thanks in advance !
...
Go to the complete details ...