this could be caused by a temporary server unavailability or incorrect settings.
There is an error occurring once in a while, but occurs on BOTH GMAIL and Exchange accounts. There is however an issue that keeps coming back regularly.
Using (StreamWriter sw = File.I have been using eM Client for a couple of months and I must say it overall works fine, it’smuch faster and much more user friendly then outlook. Using (StreamWriter sw = File.CreateText(path)) Var exceptionString = InnerExceptionConcatenator(ex) RetVal = string.Format( "", ex.Message, new String('\t', tabTracker), InnerExceptionConcatenator(ex.InnerException)) private static string InnerExceptionConcatenator(Exception ex, int tabTracker = 0) The following method takes the top level exception and returns a tab and linebreak formatted breakdown of the inner exceptions as a string. The returned exception should have at least some other information in it as to why it was thrown. So if you place a breakpoint on the line: UserPrincipal userAD = UserPrincipal.FindByIdentity(context, user.Login) Īnd step through it, it generates the above exception which does not have any InnerExceptions?Īccording to the stack trace, that line is the beginning of the problem. MySession.CurrentUser = new MyUserSession() UserPrincipal userAD = UserPrincipal.FindByIdentity(context, user.Login) IsValid = context.ValidateCredentials(user.Login, password) PrincipalContext context = new PrincipalContext(ContextType.Domain) +8963149 (IExecutionStep step, Boolean& completedSynchronously) +184ĮfetuarLogin Method: public static bool EfetuarLogin(User user, string password) +22 .EndProcessRequest(IAsyncResult asyncResult) +60 ProcessInApplicationTrust(Action action) InvokeAction(ControllerContextĬontrollerContext, String actionName) +343 +19 .InvokeActionMethodWithFilters(ControllerContextĬontrollerContext, IList'1 filters, ActionDescriptor actionDescriptor, +55 .InvokeActionMethodFilter(IActionFilterįilter, ActionExecutingContext preContext, Func'1 continuation) +263 InvokeActionMethod(ControllerContextĬontrollerContext, ActionDescriptor actionDescriptor, IDictionary'2 Execute(ControllerContextĬontrollerContext, IDictionary'2 parameters) +208 Lambda_method(Closure, ControllerBase, Object ) +108 (LoginViewModelĭ:\SVN\STT\trunk\4-0_CodigoFonte_Enterprise\4-4_SRC\\Controllers\LoginController.cs:54
(Stringĭ:\SVN\STT\trunk\4-0_CodigoFonte_Enterprise\4-4_SRC\\Controllers\LoginController.cs:80 Matricula, String senha, AcessoUsuario acessoUsuario) inĭ:\SVN\STT\trunk\4-0_CodigoFonte_Enterprise\4-4_SRC\\Controllers\LoginController.cs:92
(AcessoUsuarioĭ:\SVN\STT\trunk\4-0_CodigoFonte_Enterprise\4-4_SRC\\Common\Seguranca\ServicoAutenticacao.cs:34 FindByIdentityWithType(PrincipalContextĬontext, Type principalType, String identityValue) +73 +31 .FindByIdentityWithTypeHelper(PrincipalContextĬontext, Type principalType, Nullable'1 identityType, String [DirectoryServicesCOMException (0x80072020): An operations error The exception can be identified using the exception stack trace below. Information regarding the origin and location of : An operationsĪn unhandled exception was generated during the execution of theĬurrent web request. Information about the error and where it originated in the code. Anyone have any idea why is not working in the 4th server? See the error and stacktrace:ĭescription: An unhandled exception occurred during the execution of I have the same web app working in three others servers.