If the value from AccountLockoutMinutes isn't set in config, will it throw an exception?  looks like it would try the get, throw an exception, and then this would fail.  Maybe you should use a int.tryparse there?