program story

Visual Studio 2012의 '백그라운드 작업 대기'란 무엇입니까?

inputbox 2020. 8. 27. 07:46
반응형

Visual Studio 2012의 '백그라운드 작업 대기'란 무엇입니까?


가끔씩, 그러나 명백한 이유없이 상당히 자주 VS 2012는 "백그라운드 작업이 완료되기를 기다리는 중"이라는 대화 상자를 표시합니다. 예를 들어 IDE 명령을 명시 적으로 호출하지 않고 일반 코드 편집 중에 발생할 수 있습니다.

원인은 무엇이며 이에 대해 내가 할 수있는 일이 있습니까?

저는 ReSharper 7을 실행 중이며이 문제를 경험 한 것은 저뿐이 아닙니다.


특히 cshtml 페이지에서 같은 문제가 발생했습니다. 이 페이지를 찾았습니다. https://devblogs.microsoft.com/aspnet/visual-studio-11-beta-razor-editor-issue-workaround도구> 옵션> 텍스트 편집기> HTML> Tab 에서 들여 쓰기 옵션을 변경하도록 제안 합니다. Block 대신 Smart . 제 경우에는 이미 Smart로 설정되어 있고 다시 Block으로 변경 하면 문제가 해결되었습니다.

업데이트 : 내가 틀렸고, 대화를 수정하지 않았고 복사하거나 붙여 넣을 때까지 지연되었습니다. 마침내 나를 위해 일한 것은 도구> 설정 가져 오기 및 내보내기 ...> 모든 설정 재설정 으로 이동하는 것이 었습니다 .

관련 질문 일 수 있음 : Visual Studios 2010-Asp.net MVC 4 베타-붙여 넣기시 긴 지연 및 빈번한 충돌


매우 일반적인 진단입니다. 확장 성을 구현하기 위해 Visual Studio에서 많이 사용되는 COM에 의해 트리거됩니다. 기본 트리거는 IMessageFilter 인터페이스입니다. 트리거는 COM이 다른 스레드에 대한 메서드 호출을 마샬링하고 해당 호출이 60 초 동안 완료되지 않을 때 발생합니다.

실제 알림에는 가치가 거의 없으며 이미 알고있는 것을 알려주는 것입니다. 60 초가 지날 무렵에는 일반적으로 일이 제대로 작동하지 않는다는 것을 이미 알고 있습니다. Visual Studio가 실제로 완전히 죽지 않았다는 유용한 지식이 부족합니다. 그러나 VS가 다시 사용 가능해지기 전에 호출이 완료되어야합니다. 할 수있는 일은 거의 없지만 발을 두드리고 기다리십시오.

이 문제는 거의 항상 추가 기능으로 인해 발생합니다. Resharper는 확실히 좋은 후보입니다. 문제가 사라질 때까지 추가 기능을 하나씩 비활성화하여 문제를 일으키는 사람을 찾습니다. 새 버전의 Visual Studio에서 흔히 발생하는 문제입니다. 추가 기능 공급 업체가 버그와 중단 문제를 해결하는 데 시간이 걸립니다. 공급 업체에 지원을 요청하고 일반적으로 문제를 해결할 수있는 업데이트를 찾으십시오.


솔루션 "suo"파일을 삭제하는 것이 저에게 효과적이었습니다.


나는 같은 문제를 겪고 있었고 제 경우에는 DevExpress였습니다.

복사 또는 잘라 내기 작업을 수행 할 때마다 Visual Studio가 중단되는 것처럼 보였습니다.

"백그라운드 작업이 완료되기를 기다리는 중".

실제로 백그라운드에서 일회성 작업을 수행하고 있었고 실제로 수행하는 데 시간이 많이 걸렸습니다 (5 분 이상).

아마도 내가 정상적으로 기다렸다면 사라 졌을 수도 있지만, 마침내 수정 된 것은 도구 상자를보기 (숨김 / 축소됨)로 가져 오는 것이었고, 그러면 다음과 같은 창이 나타납니다.

"[SomeDevExpressAssemblyNameHere] .dll 추가"

이것은 툴바를 채우기 위해 DevExpress가 요구하는 모든 dll의 이름으로 계속 업데이트되었습니다.

이렇게하면 작업 진행 상황을 볼 수 있고 작업이 완료된 후 평소와 같이 복사 / 잘라 내기 붙여 넣기를 다시 사용할 수 있습니다.

도움이 되었기를 바랍니다.


저에게 수정 사항은 Web Essentials 2012를 버전 1.8로 업데이트하는 것이 었습니다.

문제가있는 버전은 1.6이었습니다.


도구> 옵션> 텍스트 편집기> HTML> 탭-> 식별-> 없음 설정으로이 문제가 해결되었습니다.


이것은 나를 위해 그것을 고쳤습니다.

도구> 옵션> 텍스트 편집기> HTML> 기타

"소스보기에 붙여 넣기시 자동 ID 요소"옵션을 선택 취소하십시오.

문제가 다시 발생하면 업데이트를 게시하겠습니다.


나는 며칠 동안이 문제가 있었고 내 Visual Studio 2012 Ultimate edtion SP3을 제거하고 다시 설치하려고했습니다 ... 여전히 작동하지 않았습니다. 그래서 모든 확장 기능 (VS 2012 용 git 도구 및 Nuget 패키지 다운로더)을 삭제하고 VS를 다시 시작하면 다시 매력적으로 작동했습니다! 그것이 작동하기를 바랍니다!

행운을 빕니다!


가상 컴퓨터에서 Visual Studio를 실행하는 동안이 문제가 발생했습니다. Mac OS X Mountain Lion에서 실행되는 Virtual Box 4.2는 Visual Studio 외에는 아무것도 설치되지 않은 상태로 새로운 Windows 7 설치를 호스팅합니다. 문제가 2 개의 개별 문제로 인해 발생한 것으로 나타났습니다.

첫째, 내 프로젝트는 호스트 OS에서 공유 된 폴더에있었습니다. 즉, Windows Guest에서 내 프로젝트가 네트워크 드라이브에 나타났습니다. 따라서 네트워크 드라이브에서 Visual Studio에서 프로젝트를 여는 것은 프로젝트를 Windows VM의 C 드라이브에 복사하고 C 드라이브의 복사본에서 Visual Studio에서 열었을 때 문제가 해결 되었기 때문에이 문제를 일으키는 것처럼 보였습니다.

둘째, 가상 머신의 하드 드라이브가 가득 차면서 문제가 다시 발생하기 시작했습니다. 하드 드라이브에 약 1GB의 여유 공간이 있습니다. 가상 머신의 하드 드라이브 크기를 늘 렸을 때이 문제는 해결되었습니다.


Codemaid 애드온으로 비슷한 문제를 재현했습니다. 이 대화를 찾았습니다 .

There's a lot of details in this issue, but to try and recap the issue is that the VS2012 C++ API introduced a deadlock issue when the API is accessed from a UI thread (e.g. a WPF context like Spade). It wasn't an issue in VS2010, and Microsoft has fixed it going forwards for VS2013 but they will not be patching it for VS2012.

Seems to indicate that a fix (for Codemaid) should be coming:

Please keep an eye on this thread for the ongoing resolution of the issue. It ties in to that larger rewrite so I've been building towards it by adding a lot of unit tests first to help ensure functionality remains consistent after the changes.


For me it seemed to be related with the razor syntax, since I only had it on one particular file.

For example if I put the following code in one line I had the described issue.

@section BodyClassName {note}

But when putting the closing parenthesis on the next line the issue went away

@section BodyClassName {note
}

Kind regards

Stijn


Far from an ideal solution, but please trying running visual studio in administrator mode i tried virtually everything, and this was the only thing that worked for me


Open Visual Studio, create a new MVC application, close the new application, open the old application and it works!


Check if IIS or another process (BizTalk maybe) is locking your DLLs/references
Kill/stop IIS or the other process if it is


http://geekswithblogs.net/sevenfortytwo/archive/2006/11/23/97947.aspx

RUN> iisreset 

Now it is working fine with VS 2012


i think i have found a clue! Every thing is ended to dcomcnfg.exe!

Open it and go under following path:

Component services>computers>my computer>dcom config

after click on dcom you'll see many warnings depend on amount of components on your pc.

Click yes on each message box in order to add correct record for dcom.


I found that VS also loads packages during the "background operation". You can remove unneeded extensions to make the operation faster.


I have it fixed weeks ago after I turn TeamViewer 8 Clipboard Sync off! now it appears back with no reason so I tried reset all settings and it worked for me.


I was having the same problem and running VS as an administrator seems to have done the trick for me (I had posted a similar question at Visual Studio 2012 Express Hangs with Message "Waiting for Background Operation to Complete" on Format Document Command that was marked as a duplicate for this one so I figured I would share here as well).


For me, it was Resharper addon opening a dialog which didn't show. I only found the dialog icon in the hidden icons menu on the task bar. When i got rid of the dialog, Visual Studio returned to normal immediately.

참고URL : https://stackoverflow.com/questions/12175784/what-is-this-waiting-for-background-operation-in-visual-studio-2012

반응형