Visual studio debug - pdb not loaded

Visual studio debug - pdb not loaded

Anonymous
Not applicable
4,299 Views
13 Replies
Message 1 of 14

Visual studio debug - pdb not loaded

Anonymous
Not applicable

Hello, I have a problem with debuging from visual studio. All worked nice on Windows 7. I have new PC with Win 10 (same autocad same visual studio) and Iam unable to debug anything (even new "empty" project). When i started debug I get MgFoundation.pdb not loaded error. I tried to add MgFoundation.dll to references and it sas it's not "valid assembly or COM component". Please do you know where I can get working one?

 

Many thanks for any help

0 Likes
4,300 Views
13 Replies
Replies (13)
Message 2 of 14

fieldguy
Advisor
Advisor

Can you attach a screen shot of your Project Properties->Application and Debug screens?  Maybe attach some code as well.  Maybe a screen shot of your references as well.   

 

Samples are attached.vs_app.PNGvs_debug.PNG

0 Likes
Message 3 of 14

Anonymous
Not applicable

 

 

It doesn't work even for clean new VB/C# project. But here they are.

 

image.png

 

image.png

 image.png

 

0 Likes
Message 4 of 14

fieldguy
Advisor
Advisor

The only thing I can suggest is to try changing the path to the autocad apis.  It looks like you are using c:\autodesk\objectarx\inc.

 

I would try with the path to your autocad install folder.  Double check that copy local is false if you change them.

 

I am only quessing - it's hard to tell where the reference to "mgfoundation" is coming from.  I have the dll in the C:\Program Files\Autodesk\AutoCAD 2016\Map\bin\GisPlatform folder and have referenced the "OSGeo" apis several times but have never seen the warning for the "pdb" file. 

 

vs_osgeorefs.PNG

 

Do you my chance have the "Map ObjectArx SDK" for your version?  What autocad vertical are you using? 

   

  

0 Likes
Message 5 of 14

Anonymous
Not applicable

After some new tests I think that main problem is following. 

 

image.png

 

This could be caused by our proxy company policy. Is there a way to setup proxy in VS or better download this symbols manually

0 Likes
Message 6 of 14

fieldguy
Advisor
Advisor

Sorry - I have no idea where "mgfoundation" is coming from.  Unless you post code that will build and duplicate the error I cannot help you. 

0 Likes
Message 7 of 14

fieldguy
Advisor
Advisor

1 more guess.  Copy the target portion of your desktop icon and paste it in the "command line arguments" box.  You have to edit it to remove the portion already in the "start" box.

 

visualstudiodebug-2.PNGvisualstudiodebug.PNG

 

0 Likes
Message 8 of 14

Anonymous
Not applicable

I tried last thing with "command line arguments" and still same error. Also I added zip with whole solution. Now I dont know if is error in autocad or VS.

0 Likes
Message 9 of 14

fieldguy
Advisor
Advisor

>>this<< is the answer

 

uncheck "Enable native code debugging"

 

uncheck_vsdebug.PNG

 

 

 

 

0 Likes
Message 10 of 14

Anonymous
Not applicable

Thanks for advice. I allready tried this and if I turn of "Enable native code debugging" then autocad crash before start. (autocad stoepd working debug / close)

0 Likes
Message 11 of 14

fieldguy
Advisor
Advisor

Did you try "Enable Just My Code" as well?

 

>>link<<

0 Likes
Message 12 of 14

Anonymous
Not applicable

I Just tested all combinations of "Native code debugging" and "Enable just my code". Thinking that problem will be in communication with Microsoft symbol servers.

0 Likes
Message 13 of 14

fieldguy
Advisor
Advisor

I am out of ideas.  Your test project worked for me in win 10 and civil 3d 2016. 

0 Likes
Message 14 of 14

Anonymous
Not applicable

Thanks for your help and time. I will try to look closely on that HTTP error with microsoft symbol server.

 

btw I have folowing systems:

Windows 10 Enterprise

Autodesk AutoCAD Map 3D 2017

Visual studio 2015

 

 

0 Likes