Previous exception:
RSRP-45720
ReSharper 3.0.2 Version=3.0.521.1, Edition=, Built=2007-09-07T16:19:18, Configuration=ReSharper_AddIn, VsVersion=8.0
JetBrains.Util.InternalErrorException: PsiManager is null in write action!
An exception has occurred during action 'ExtractMethod' execution ---> System.InvalidOperationException: PsiManager is null in write action!
at JetBrains.ReSharper.Psi.ExtensionsAPI.LowLevelModificationUtil.GetManager(ITreeNode node) in c:\Agent\work\Server\a03b3beb1fc5f347\src\Psi\src\ExtensionsAPI\LowLevelModificationUtil.cs:line 20
at JetBrains.ReSharper.Psi.ExtensionsAPI.LowLevelModificationUtil.ReplaceChildRange(ITreeNode first, ITreeNode last, ITreeNode[] nodes) in c:\Agent\work\Server\a03b3beb1fc5f347\src\Psi\src\ExtensionsAPI\LowLevelModificationUtil.cs:line 136
at JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.ModificationUtil.ReplaceChild
[T](ITreeNode oldChild, T newChild) in c:\Agent\work\Server\a03b3beb1fc5f347\src\Psi\src\ExtensionsAPI\ModificationUtil.cs:line 157
at JetBrains.ReSharper.Psi.CSharp.Impl.Tree.StatementBase.ReplaceBy(IStatement stmt) in c:\Agent\work\Server\a03b3beb1fc5f347\src\Psi.CSharp\src\Impl\Tree\StatementBase.cs:line 33
at JetBrains.ReSharper.Refactorings.CSharp.ExtractMethod.CSharpStatementsExtractMethod.PlaceReturnStatement(IStatement statement, Boolean replace) in c:\Agent\work\Server\a03b3beb1fc5f347\src\Refactorings.CSharp\src\ExtractMethod\CSharpStatementsExtractMethod.cs:line 402
at JetBrains.ReSharper.Refactorings.CSharp.ExtractMethod.CSharpStatementsExtractMethod.CreateDeclaration() in c:\Agent\work\Server\a03b3beb1fc5f347\src\Refactorings.CSharp\src\ExtractMethod\CSharpStatementsExtractMethod.cs:line 306
at JetBrains.ReSharper.Refactorings.CSharp.ExtractMethod.CSharpStatementsExtractMethod.PreviewDeclaration() in c:\Agent\work\Server\a03b3beb1fc5f347\src\Refactorings.CSharp\src\ExtractMethod\CSharpStatementsExtractMethod.cs:line 454
at JetBrains.ReSharper.Refactorings.ExtractMethod.ExtractMethodPage.UpdatePreview() in c:\Agent\work\Server\a03b3beb1fc5f347\src\NewRefactorings\src\ExtractMethod\ExtractMethodPage.cs:line 494
at JetBrains.ReSharper.Refactorings.ExtractMethod.ExtractMethodPage.myReturnValueCombo_SelectedIndexChanged(Object sender, EventArgs e) in c:\Agent\work\Server\a03b3beb1fc5f347\src\NewRefactorings\src\ExtractMethod\ExtractMethodPage.cs:line 448
at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
at System.Windows.Forms.ComboBox.set_SelectedItem(Object value)
at JetBrains.ReSharper.Refactorings.ExtractMethod.ExtractMethodPage.FillReturnValueCombo() in c:\Agent\work\Server\a03b3beb1fc5f347\src\NewRefactorings\src\ExtractMethod\ExtractMethodPage.cs:line 338
at JetBrains.ReSharper.Refactorings.ExtractMethod.ExtractMethodPage..ctor(IExtractMethod extractMethod, PsiLanguageType languageType) in c:\Agent\work\Server\a03b3beb1fc5f347\src\NewRefactorings\src\ExtractMethod\ExtractMethodPage.cs:line 291
at JetBrains.ReSharper.Refactorings.ExtractMethod.ExtractMethodRefactoringWorkflow.Initialize(IDataContext context, IInitializationContext initializationContext) in c:\Agent\work\Server\a03b3beb1fc5f347\src\NewRefactorings\src\ExtractMethod\ExtractMethodRefactoringWorkflow.cs:line 93
at JetBrains.ReSharper.Refactorings.Workflow.RefactoringActionUtil.ExecuteRefactoring(IDataContext invocationContext, IRefactoringWorkflow refactoringWorkflow, EventHandler refactoringExecutedHandler) in c:\Agent\work\Server\a03b3beb1fc5f347\src\NewRefactorings\src\Workflow\RefactoringActionUtil.cs:line 29
at JetBrains.ReSharper.Refactorings.ExtractMethod.ExtractMethodAction.Execute(IDataContext context, DelegateExecute nextExecute) in c:\Agent\work\Server\a03b3beb1fc5f347\src\NewRefactorings\src\ExtractMethod\ExtractMethodAction.cs:line 23
at JetBrains.ActionManagement.NextActionHandler.CallExecute() in c:\Agent\work\Server\a03b3beb1fc5f347\Platform\src\JetBrains.UI\src\ActionSystem\Action\ActionHandler.cs:line 40
at JetBrains.VSAddin.ActionManagement.ConflictingShortcutActionHandler.Execute(IDataContext context, DelegateExecute nextExecute) in c:\Agent\work\Server\a03b3beb1fc5f347\Platform\src\JetBrains.VSIntegration\src\ActionManagement\ConflictingShortcutActionHandler.cs:line 76
at JetBrains.ActionManagement.ExecutableAction.Execute(IDataContext context) in c:\Agent\work\Server\a03b3beb1fc5f347\Platform\src\JetBrains.UI\src\ActionSystem\Action\ExecutableAction.cs:line 30
— End of inner exception stack trace —
at JetBrains.Util.Logger.LogExceptionEx(Exception, String, Boolean) in c:\Agent\work\Server\a03b3beb1fc5f347\Platform\src\JetBrains.Util\src\Logger\Logger.cs:line 263 column 4
at JetBrains.Util.Logger.LogException(String, Exception) in c:\Agent\work\Server\a03b3beb1fc5f347\Platform\src\JetBrains.Util\src\Logger\Logger.cs:line 282 column 3
at JetBrains.ActionManagement.ExecutableAction.Execute(IDataContext) in c:\Agent\work\Server\a03b3beb1fc5f347\Platform\src\JetBrains.UI\src\ActionSystem\Action\ExecutableAction.cs:line 35 column 11
at JetBrains.ActionManagement.ActionManagerBase.ExecuteAction(IExecutableAction, IDataContext) in c:\Agent\work\Server\a03b3beb1fc5f347\Platform\src\JetBrains.UI\src\ActionSystem\ActionManager\ActionManagerBase.cs:line 575 column 11
at JetBrains.ActionManagement.ActionManagerBase.ExecuteAction(IExecutableAction) in c:\Agent\work\Server\a03b3beb1fc5f347\Platform\src\JetBrains.UI\src\ActionSystem\ActionManager\ActionManagerBase.cs:line 520 column 5
at JetBrains.ReSharper.Refactorings.RefactorThis.WrapperActionHandler.Execute(IDataContext, DelegateExecute) in c:\Agent\work\Server\a03b3beb1fc5f347\src\Refactorings\src\RefactorThis\RefactorThisAction.cs:line 228 column 7
at JetBrains.ActionManagement.ExecutableAction.Execute(IDataContext) in c:\Agent\work\Server\a03b3beb1fc5f347\Platform\src\JetBrains.UI\src\ActionSystem\Action\ExecutableAction.cs:line 30 column 13
at JetBrains.ActionManagement.ActionManagerBase.ExecuteAction(IExecutableAction, IDataContext) in c:\Agent\work\Server\a03b3beb1fc5f347\Platform\src\JetBrains.UI\src\ActionSystem\ActionManager\ActionManagerBase.cs:line 575 column 11
at JetBrains.ActionManagement.ActionManagerBase.ExecuteActionIfAvailable(IExecutableAction) in c:\Agent\work\Server\a03b3beb1fc5f347\Platform\src\JetBrains.UI\src\ActionSystem\ActionManager\ActionManagerBase.cs:line 527 column 5
at JetBrains.ReSharper.Refactorings.RefactorThis.<>c_DisplayClass6.<Execute>b_2() in c:\Agent\work\Server\a03b3beb1fc5f347\src\Refactorings\src\RefactorThis\RefactorThisAction.cs:line 80 column 40
at JetBrains.Shell.<>c_DisplayClass1.<Invoke>b_0() in c:\Agent\work\Server\a03b3beb1fc5f347\Platform\src\JetBrains.Shell\src\Invocator.cs:line 156 column 33
at System.RuntimeMethodHandle._InvokeMethodFast(Object, Object[], SignatureStruct&, MethodAttributes, RuntimeTypeHandle)
at System.RuntimeMethodHandle.InvokeMethodFast(Object, Object[], Signature, MethodAttributes, RuntimeTypeHandle)
at System.Reflection.RuntimeMethodInfo.Invoke(Object, BindingFlags, Binder, Object[], CultureInfo, Boolean)
at System.Delegate.DynamicInvokeImpl(Object[])
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object)
at System.Threading.ExecutionContext.runTryCode(Object)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode, CleanupCode, Object)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext, ContextCallback, Object)
at System.Threading.ExecutionContext.Run(ExecutionContext, ContextCallback, Object)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message&)
at System.Windows.Forms.ScrollableControl.WndProc(Message&)
at System.Windows.Forms.ContainerControl.WndProc(Message&)
at System.Windows.Forms.Form.WndProc(Message&)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
JetBrains.Util.InternalErrorException: PsiManager is null in write action!
An exception has occurred during action 'ExtractMethod' execution