No me acordaba de la password y la he reseteado por una aleatoria y al volver a entrar y cambiarla otra vez ese error de código.
Server Error in '/' Application.
--------------------------------------------------------------------------------
An attempt has been made to Attach or Add an entity that is not new, perhaps having been loaded from another DataContext. This is not supported.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NotSupportedException: An attempt has been made to Attach or Add an entity that is not new, perhaps having been loaded from another DataContext. This is not supported.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NotSupportedException: An attempt has been made to Attach or Add an entity that is not new, perhaps having been loaded from another DataContext. This is not supported.]
System.Data.Linq.StandardChangeTracker.Track(MetaType mt, Object obj, Dictionary`2 visited, Boolean recurse, Int32 level) +1572909
System.Data.Linq.StandardChangeTracker.Track(Object obj, Boolean recurse) +110
System.Data.Linq.Table`1.Attach(TEntity entity, Boolean asModified) +318
Kaidomain.BizLogic.UserManager.Update(User user, Boolean flag) +2100
Kaidomain.BizLogic.UserManager.Update(User user) +48
Kaidomain.Web.ChangeAccount.btnChange_Click(Object sender, EventArgs e) +427
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +115
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +140
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981
Que desastre de web.