VS2005 unable to debug - "no symbols have been loaded for this document"
-
Wednesday, June 13, 2007 12:14 PM
trying to debug an IIFP installation, builds just fine but when i set a breakpoint and attach to the MIIS process, the breakpoint turns off with the comment "no symbols have been loaded for this document".
any clues as to what vs2005 boxes need ticking?
Thanks
Wayne
Answers
-
Wednesday, June 13, 2007 4:04 PM
Wayne,
In the VS2005 IDE, Open Tools/Options and Select the Debugging node. Make sure the "Enable Just My Code (Managed Only)" is deselected. Even after deselecting this option you may still see the error until you start the preview and the libraries load into memory.
All Replies
-
Wednesday, June 13, 2007 2:14 PMModerator
Wayne,
is your extension configured to run in a separate process?
If so, uncheck the checkbox and try it again.
Cheers,
Markus
///////////////////////////////////////////////////////////////////////
Markus Vilcinskas
Technical Writer
Microsoft Identity Integration Server
mailto:markvi@microsoft.com.NO_SPAM
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/copyright.htm
/////////////////////////////////////////////////////////////////////// -
Wednesday, June 13, 2007 3:35 PM
it was not configured to run as a separate process
essentially it is an out of the box IIFP system.. i have had to add some tweaks to the supplied IIFP code.. which compile and run as expected. but want to ensure that i can debug in the future should the need arise
i can attach to the miisserver process but none of my breakpoints have any effect owing to the missing symbols..
any other ideas?
Thanks
Wayne
-
Wednesday, June 13, 2007 4:04 PM
Wayne,
In the VS2005 IDE, Open Tools/Options and Select the Debugging node. Make sure the "Enable Just My Code (Managed Only)" is deselected. Even after deselecting this option you may still see the error until you start the preview and the libraries load into memory. -
Wednesday, June 13, 2007 4:36 PM
This won't fix your problem, but a brute force workaround is to put a line in your code such as:
System.Diagnostics.Debugger.Launch
That will force the extension to stop and ask you to pick your favourite debugger.
-
Wednesday, June 13, 2007 4:40 PM
star turn..
does what it says on the tin :-)
i am surprised that no-one else has raised this as an issue
thanks again
Wayne
-
Wednesday, June 13, 2007 4:45 PM
i have managed to resolve the issue with Brads approach..
i am wondering why i have 'a problem', is this a known issue for which a 'fix' is planned or is it something we will just have to learn to live with?
Wayne
-
Wednesday, June 13, 2007 6:06 PMI'm not entirely sure, but I think it's just an odd default in VS that tends to cause issues with the type code MIIS is running.
-
Thursday, November 29, 2007 7:41 PM
Brad Turner wrote: Wayne,
In the VS2005 IDE, Open Tools/Options and Select the Debugging node. Make sure the "Enable Just My Code (Managed Only)" is deselected. Even after deselecting this option you may still see the error until you start the preview and the libraries load into memory.Brad,
You are the man. Thanks for this tidbit - it fixed my problem and now my breakpoints are being hit successfully.
-
Sunday, December 30, 2007 1:28 AM
I was also facing the same problem, did all the things got one more solution.
When I start VS 2005 (run as administrator mode -> right click on VS 2005 icon) it supports debugging / breakpoints and runs well, whereas If I start it directly by double clicking VS 2005 icon debugging doesn't works for web applications.
n'joy
Ram
-
Thursday, January 03, 2008 10:47 AM
Hi,
I have done this configuration tools/Options/Debugging (uncheck enabled just my code)
I attach de process miiserver.exe But doesn't works!
The breakpoints aren't hit.
when I push run code analysis this report 2 errors
Error 11 CA0058 : Not all assembly references could be resolved. Results might be compromised or incomplete. MVExtension
Error 12 CA0058 : Missing dependency 'Microsoft.MetadirectoryServices, Version=3.3.118.0, Culture=neutral, PublicKeyToken=null' could not be located. This module was referenced by: MVExtension.dll, MVExtension.dll MVExtension
What can I do??
Thanks
This is my code of MVExtensions :
Imports
Microsoft.MetadirectoryServicesPublic
Class MVExtensionObject Implements IMVSynchronization Public Sub Initialize() Implements IMvSynchronization.Initialize ' TODO: Add initialization code here Dim a As Stringa =
""System.Diagnostics.Debugger.Launch()
End Sub Public Sub Terminate() Implements IMvSynchronization.Terminate ' TODO: Add termination code here Dim a As Stringa =
""System.Diagnostics.Debugger.Launch()
End Sub Public Sub Provision(ByVal mventry As MVEntry) Implements IMVSynchronization.Provision Dim a As Stringa =
""System.Diagnostics.Debugger.Launch()
' TODO: Remove this throw statement if you implement this method Throw New Exception("Test") 'Throw New EntryPointNotImplementedException() End Sub Public Function ShouldDeleteFromMV(ByVal csentry As CSEntry, ByVal mventry As MVEntry) As Boolean Implements IMVSynchronization.ShouldDeleteFromMV ' TODO: Add MV deletion code here Dim a As Stringa =
""System.Diagnostics.Debugger.Launch()
Throw New EntryPointNotImplementedException() End FunctionEnd
Class -
Thursday, January 03, 2008 11:57 PM
Ramon,
which version/build of ILM/MIIS are you using?
Type/Version/Build Visual Studio?
Which .NET Framework version(s) installed?
Is the Microsoft.MetadirectoryServices.dll correctly loaded in the References of the project?
(Check project properties > tab references)
Is the Microsoft.MetadirectoryServices enabled as imported name space?
HTH,
Peter
-
Friday, January 04, 2008 8:38 AM
I'm using ILM 2007
VS 2005
Framework 2.0
References are added . I can build the project without problems.
Only give me errors when I run code analysis.
Anyway, I just want to put a breakpoint In a whatever function to debug.
I follow the instruccions.... atach the process missserver.exe... but doesn't works.
Thanks
-
Friday, January 04, 2008 10:56 AM
Talking about code analysis...
Did you check the "Visual Studio Code Analysis and Code Metrics" forum?
http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=98&SiteID=1One of the posts is handling a error message you're facing
(CA0058 : Not all assembly references could be resolved. Results might be compromised or incomplete)
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2205859&SiteID=1
Did you apply SP1 on Visual Studio?
Another part to check: is there a config file (miiserver.exe.config) in place that forces the miiserver.exe file/proces to use a specific .NET framework version?
(Not likely for the versions of ILM/VS/FW you are using...)
HTH,
Peter
-
Sunday, January 06, 2008 12:12 PM
I would like to share my solution to this problem.
In the project setup you find the settings for debugging, and me as many sets this to debug.
What I found is that if you click om the project-icon (the top icon) in the projectbrower you can see the properties where in my case the Active config value was set to Release and not to Debug even if I had set it to debug in the projectsetup.
Changed this to Debug and the problem was solwed !
-
Monday, January 07, 2008 9:01 AM
There was, Patrik, perfect.
The wizard of ILM that create VS 2005 project and configure the path of the release exe on extensions directory.
You must put the Debug exe on the extensions if you want to debug.
Thanks for all.
Ramon
-
Thursday, June 12, 2008 2:21 AM
Hi,
I have similar issue regarding the breakpoint in VS2005. I have tried all of the previous suggestions in this thread, but unsuccessful. By the way, what do you mean by "You must put the Debug exe on the extensions if you want to debug.".
Appreciate any further suggestions for me to try to rectify the issue.
Thanks.
-
Wednesday, October 15, 2008 6:28 PMHi All,
I would also like to share my solution with the world.
If i start a project in VC++2005 by going File/New/Project -> General/Empty Project,
I will occasionally get "No Symbol Loaded" when i run my code in debug mode.
However,
If i start a project by going File/New/Project -> Win32/Win32 Console Application,
then check the "Empty Project" checkbox, everything seemed to be working fine.
Hope that helps,
Calvin

