I have a webservice project and a web project in the same solution.
The web project implements a membershipprovider.
I want to be able to authenticate user via the webservice project but when i call this method in the webproject:
public static bool AuthUser(string userName, string password)
{
return Membership.ValidateUser(userName, password);
}
I get this inner ex. "Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed."
Calling the method from the webproject works fine.
I understand why I get the ex. but not how to solve it..
UPDATE
Well I fixed the issue by deleting the C:\Users\JRB\AppData\Local\Microsoft\Microsoft SQL Server Data\SQLEXPRESS folder..
However now the method always returns false.. It almost seems like it doesn't use the proper connectionstring. Any suggestions?