다음 모듈은 최적화를 사용하거나 디버그 정보를 사용하지 않고 구축되었습니다.
디버깅 할 때 VS 2008 웹 프로젝트에서이를 제거 할 수 없습니다. 해당 웹 이외의 프로젝트에서 디버그 모드에 있고 Active (Debug)에 있는지 확인했습니다. Windows에서 .NET 2.0 temp 폴더의 모든 항목을 삭제했습니다. 여기서 무엇을해야할지 모르겠습니다.
도구 / 옵션 / 디버깅 / 옵션에서 "내 코드 만 활성화"를 비활성화하십시오.
나는 같은 문제가 있었고 빌드에서 디버그 정보를 출력하지 않는다는 것을 발견했다. 프로젝트를 마우스 오른쪽 버튼으로 클릭하고 '속성'으로 이동 한 다음 '빌드'탭을 선택하면 페이지 하단에 '고급 ...'버튼이 표시되어 디버그 정보 출력에 대한 설정을 표시합니다. 이를 'full'로 설정하면 오류가 사라집니다.
방금이 문제에 부딪 쳤고 게시 된 다른 답변이 나에게 적용되지 않기로 신속하게 결정했습니다.
나는 프로젝트의 소유자이며 최적화가 아닌 디버그 정보로 빌드되었다는 것을 알고 있습니다. 또한 경고를 사용하지 않는 것을 첫 번째 선택으로 선택하는 것이 행복하지 않습니다. 이 경고를 숨기거나 무시하면 향후 디버깅 세션에서 문제가 될 수 있습니다.
이것은 어셈블리에 서명 한 후에 만 시작되기 때문에 빠른 수정에 나를 붙 잡았습니다 : DLL의 강력한 이름을 일시적으로 제거하고 EXE를 소비합니다. 짜잔! 문제 해결됨.
보다 나은 장기 솔루션은 빌드 후 작업을 추가하여 GAC 를 업데이트 하여 서명 된 DLL의 최신 버전을 갖도록 하는 형태를 취할 수 있습니다 .
그러나 지금은이 전환에서 벗어나 기꺼이이 디버깅 세션으로 연결되는 문제에 대해 계속 연구하고 있습니다.
해결되었습니다. 해당 dll의 모든 발생 (모든 프로젝트)을 삭제했습니다.
VS2012, 청소 및 재구성으로 문제가 해결되었습니다. "속성"-> "빌드"-> 코드 최적화가 선택 해제되어 있습니다. "속성"-> "빌드"-> "고급"-> 디버그 정보 : 전체
이 링크를 확인하십시오
http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/43cb16ba-0759-42ab-8e7d-9f168ace3b6f
Tools-> Options-> Debugging-> General에서 "Just My Code"를 체크 해제하십시오.
그것은 나를 위해 작동
VS 2008을 추측하면 DLL이 올바르게 다시 작성되지 않습니다.
1) dll의 모든 발생을 삭제하십시오.
2) 솔루션 재 구축
그리고 그것은 고쳐야합니다.
빌드 구성 옵션을 확인하십시오. 최적화가 해제되어 있고 DEBUG 상수가 정의되어 있는지 확인하십시오.
다른 모든 방법이 실패하면 프로젝트 속성에서 어셈블리 이름을 바꾸십시오. 이것은 나를 위해 문제를 해결했습니다.
나는 또한이 문제를 겪습니다. 어떤 이유로 3-4 번 발생했습니다. 나는 그것이 Visual Studio 2005 버그 / hick up (또는 적어도 내 설치)이어야한다고 생각합니다.
이것은 매번 효과가 있습니다.
- 내 솔루션을 마우스 오른쪽 버튼으로 클릭하고 속성을 클릭하십시오.
- 구성 관리자를여십시오.
- 드롭 다운 메뉴에서 디버그를 선택하십시오 (아직 선택하지 않은 경우).
- 빌드를 선택 취소하십시오. 그런 다음 다시 확인하십시오.
- 솔루션을 다시 빌드하십시오.
도구> 옵션> 디버깅> 기호> 제외 된 모듈 지정 제외 된 모듈 목록의 dll 또는 exe 인 경우
적어도 웹이 아닌 응용 프로그램의 경우 다음과 같이 작동합니다.
보낸 사람 : http://www.stellarpc.com/articles/board.aspx?id=40
2-디버깅 허용 ...
응용 프로그램에서 어셈블리 중 하나가 구축 된 특성으로 인해 Visual Studio Debugger에서 코드를 처리 할 수 있도록 몇 가지 설정을 변경해야합니다.
솔루션 탐색기에서 해당 프로젝트를 마우스 오른쪽 버튼으로 클릭하고 '속성'을 선택하십시오. 프로젝트 속성 패널이 열리고 프로젝트에 대한 다양한 옵션에 액세스 할 수 있습니다. 'Complile'탭 (또는 C # 환경의 경우 'Build')으로 이동하여 화면 하단에서 'Advanced Compile Options ...'를 선택하십시오. 이를 통해 두 가지 주요 관심 분야가있는 프롬프트가 표시됩니다.
1) 최적화- '최적화 활성화'를 선택 취소하십시오.
2) 디버그 정보 생성-옵션이 'Full'로 설정되어 있는지 확인하십시오.
특정 폴더에 솔루션 으로이 문제가 있었지만 다른 폴더로 옮기거나 다른 폴더로 옮길 경우 메시지가 표시되지 않습니다. 정리, 재 구축 및 재부팅을 수행했지만이 메시지없이 원본을 디버깅 할 수 없었습니다. 시스템에서 파일 사본을 검색하여 오류가 발생했으며 사본이
c : \ User \ 사용자 이름 \ AppData \ Local \ Assembly \ dl3
이것은 Win7-64에 있었지만 다른 Windows OS에서도 비슷합니다. 내가 찾은 사본을 모두 삭제했는데 더 이상 메시지가 표시되지 않습니다. "내 코드 만 활성화"를 선택 해제 할 필요가 없었습니다.
또한 이것은 WPF 앱 용이지만 검색 에서이 스레드를 발견 했으므로 다른 누군가를 도울 수 있기를 바랍니다.
다음 단계에 따라이 문제를 해결할 수있었습니다.
- 솔루션이 아닌 프로젝트를 마우스 오른쪽 버튼으로 클릭하고 '속성'을 선택하십시오.
- 왼쪽 패널에서 '구성 속성'을 선택하십시오.
- 오른쪽 패널에서 프로젝트의 '구성'열에서 '디버그'를 선택하십시오.
솔루션 탐색기에 솔루션이 표시되지 않으면 다음 단계를 수행하십시오.
- 메뉴 표시 줄에서 도구-> 옵션으로 이동하십시오.
- 왼쪽 패널에서 '프로젝트 및 솔루션'을 선택하십시오 (창 왼쪽 하단에서 '모든 설정 표시'를 확인해야 할 수도 있음).
- 오른쪽 패널에서 '항상 솔루션 표시'를 선택하십시오.
이게 도움이 되길 바란다.
I too have all these. And I've done all this. It appears this happens to me every time I get a fresh copy of the entire solution out of source control. So if we've done all these, deleted dlls & .pdb files for all references (Assemblies) in the web project, used the clean option on the solution, deleted temp files, closed out VS and reopened, made sure debug mode is selected and set at full and optimations are off, what more is there?!?!?!
I had the same issue on my web project in Visual Studio 2010, and finally I found the reason why I was getting this message. What I did was to change an existing debugging option on Visual studio:
- Go to Tools->Options->Debugging->Symbols->All modules
- Check the "unless excluded" radio button
- Click on the link "Specify excluded modules", then remove the DLL that you want to debug.
In my case it was my web dll file...
I had this when trying to remote debug an application on a computer that belongs to a different subnet. I was able to debug and step through the code when running it across the network if the machines were on the same subnet. After changing the subnet though I was unable to step through when running from the network and was getting the "The Following Module was built either with optimizations enabled or without debug information".
The solution? Easy. Copy the built solution across to the machine hosting the remote debugging and run it locally.
Had this happen to me on a VS 2010 winForms project. Seeing that the majority of people here have web projects, i think that it has to do with access to the folder in which the project is stored. I say this because when this problem occurred to me Google Drive was synchronizing the folder in which i keep my projects. It seems that just disabling the synchronization does not fix the problem.
My solution is similar to one of the answers above:
- Went to "Project Properties > Compile > Advanced Compile Options"
- Checked "Enable optimization"
- Set "General debug info:" to "None"
- Unchecked "Define DEBUG constant"
- And pressed OK
- Then went back and returned the options to their initial state.
Hope this helps someone as it seems this still happens.
For me, Checking the "Optimize code" box in the project properties, saving, unchecking it, then resaving did it for me.
Disabling "Enable Just My Code" also worked, but that was more of a work-around than a fix as I didn't want that setting.
I have had same problem, but with different cause and solution. The window was the same as that shown by Gustavo (above) but the path was in: "\users\zzz\AppSettings..." (where zzz is windows username)
I had an Excel addin - I was testing the install of the addin, so I had a copy installed through VS install function. VS was obviously trying to debug both the installed copy and the copy I had just launched, and could not find debug symbols on the installed copy.
None of the above solutions worked (without side affects),
SOLUTION: uninstalling the addin, and manually deleting the files in App Settings worked.
Follow this : (first STOP debuging)
1:right click on project solution name or project -> Properties
2:under Configuration Properties select configuration Manager
3:Change configuration to debug and click on close
4:Change configuration to debug and click on Apply -> OK
Now rebuild solution....!
You mentioned it's a web project...do you have
<compilation debug="true />
in your web.config?
I had the same problem after building with a Release configuration. It turned out that when I switched back to Debug, VS wasn't detecting any differences, so it was not updating the .dll and .pdb files in the bin folder.
Here's what worked for me:
- Run iisreset (to clean up the temporary folders)
- Save the web.config (to force VS to actually rebuild)
- Rebuild on Debug
- Start the project
Try a rebuild then debug.
My case is following: webservice referenced lib1.dll. Later I removed reference as it was no longer used. However lib1.dll remained in the bin folder. Because library was not referenced then Rebuild and Clean actions were not helpful. After manually deleting lib1.dll from bin folder I've get rid of this message.
If you are publishing to IIS and not using built in web server -or IIS express- make sure that your publish profile settings is in debug mode. In vs 11 by default it's in release mode.
Just to add, I was looking at this blog to find the solution to the same problem I was facing. Unfortunately the solutions mentioned above didn't help me. At last I figured out, I was installing my bits (along with .pdb) through installer and setting permission explicitly on the installation folder.
Because of which VS was not able to load the pdb even though the file browser was showing the correct file but it was giving the same error mentioned above.
Once I unchecked "Enable Just my code" and removed permission settings from the installer, VS started loading the module.
The one configuration that worked for me was the following
Project --> (Your Project) Properties --> Debug Tab make sure Configuration is set to Active (Debug) Under "Unable Debuggers", make sure "Enable unmanaged code debugging" is checked
I'm creating a Windows Service and here's what worked for me:
- Uninstall the service.
- Open a command prompt and go to c:\Windows\Microsoft.NET\Framework64\v4.0.30319
- installutil C:\MyFantabulusWindowService\bin\Debug\MyFantabulusWindowService.exe
Greatness has been achieved!
Case : testing assembly with Console project in SharePoint development - if you're doing SharePoint development and seeing this alert in VS, make sure you deploy your SP assembly to the GAC before testing your console app IF your core SP project has methods you need to call in your console test app.
'IT' 카테고리의 다른 글
D 현실에서 프로그래밍 언어? (0) | 2020.06.22 |
---|---|
더 이상 사용되지 않는 것으로 C ++ 표시 (0) | 2020.06.22 |
Sinatra로 정적 파일 제공 (0) | 2020.06.22 |
목록 교차점을 찾는 방법은 무엇입니까? (0) | 2020.06.22 |
쉼표로 구분 된 문자열로 목록 변환 (0) | 2020.06.22 |