Author: macfly | Posted on: 4/28/2008 1:33:23 PM | Views : 330

 I have
problem with deleting user using Memebership.deleteUser(?username?,true) because
of the exception:


The DELETE statement conflicted with the REFERENCE
constraint "FK__aspnet_Me__UserI__15502E78". The conflict occurred in
database "jobpro", table "dbo.aspnet_Membership", column
'UserId'.

The
statement has been terminated.

But it only
happens when method is called from IIS. When I run it on development server everything works
fine.




 
I?ve
noticed that when deleteUser function is called from IIS in stored procedure aspnet_Users_DeleteUser line:




Go to the complete details ...