Msgstr "Symbols for module MyLibrary.dll have not been loaded"?

I am trying to learn Windows Phone dev by creating a basic application that provides information about Pokemon. To do this, I created a portable class library (PokeLib.dll) so that it is compatible with universal applications. I tested this through a project in the same solution ("Test"), and it works great. You can take a look at the code for them on my Github , but as far as I can tell, everything is fine. These two projects are in one solution. To solve the Windows Phone application, I added PokeLib as an "existing project", added links, and wrote a few lines of code to make sure I can call it normal:

MainPage.xaml:

<Grid> <Grid.RowDefinitions> <RowDefinition Height="auto"/> <RowDefinition Height="*"/> </Grid.RowDefinitions> <Button Name="GetDataButton" Content="GetData" Click="GetDataButton_Click" Grid.Row="0" HorizontalAlignment="Center"/> <TextBlock Name="DataText" Text="Click to get data" Grid.Row="1" Padding="10"/> </Grid> 

MainPage.xaml.cs:

  protected override void OnNavigatedTo(NavigationEventArgs e) { p = new Pokemon(1); // gets data for Pokemon #1 (Bulbasaur) } Pokemon p; int counter = 0; private async void GetDataButton_Click(object sender, RoutedEventArgs e) { DataText.Text = "Fetching... Count: " + ++counter; if (counter == 1) // first time button clicked { await p.Create(); // populates the data container DataText.Text = String.Format("Pokemon #{0}: {1}", p.Id, p.Name); } } 

When I try to run this on a phone emulator, I get the following message: . I create the project as "debug" and disabled "Include only my code." I'm not sure what to do under the "Symbols" panel, but I can also add a screenshot if it were useful.

In any case, the application opens, but freezes when I click the GetData button. I expected it to freeze for a moment, since this call is synchronized, but it is constant. However, no errors / exceptions occur. The debugger also does not respond when I try to enter the p.Create () call (probably from the message in the screenshot).

Does anyone have an idea of ​​what I'm doing wrong? Thank!

+20
c # win-universal-app windows-phone-8
Nov 29 '14 at 18:20
source share
13 answers

You can go to the menu "Project Properties" β†’ "Create" - "Advanced" β†’ "Debug" and change its value to "full".

+13
Feb 12 '15 at 11:47
source share

In Visual Studio, I selected Build -> Clean Solution. It got rid of this message

+6
Apr 26 '16 at 10:27
source share

I just fixed the same error. I went to Tools -> Options -> Debugging -> Symbols and clicked the Empty Symbol Cache icon in Visual Studio 2013. Probably destroying folders in the bunker and obj does almost the same thing in a much less elegant style.

+4
Nov 11 '15 at 21:12
source share

I had this error when I had an assembly that was in the GAC and Visual Studio did not delete it before compiling / debugging. I was able to solve this by removing this library (dll) from the GAC.

 //if pokelib.dll contained assembly: PokeLibrary.Pokemon //and it showed up in the GAC (c:\windows\assembly\) with that assembly name gacutil /u PokeLibrary.Pokemon 

This resolved the warning condition and allowed me to debug again.

+3
Jun 30 '15 at 13:48
source share
  • close the visual studio.
  • Performs quick cleaning using cclener.
  • Clear project and rebuild project

& it worked for me. (I really don't know how)

+3
May 25 '16 at 6:58 a.m.
source share

You are debugging your code using a reference DLL that is not compiled for debugging mode.

Compile the dll link in debug and use it.

Check the dll reference addresses to make sure you are using the correct dll.

+2
Mar 25 '16 at 13:11
source share

Make sure that you do not have several open VS windows, in particular the same project! :)

+1
Jun 08 '16 at 23:19
source share

You can use DotPeek to create PDB files for the library and then put them in the same folder as your dll. Another option, if the code is open source, is to clone the repo, add the project to the project, add the dependency, set the build order and start debugging.

0
Feb 12 '15 at 12:12
source share

I found that the project I was getting the message about was optimized when building.

I turned on project properties, the Compilation tab, Advanced Compilation Options ... and uncheck Enable Optimizations

DeselectEnableOptimizations

0
Jul 14 '16 at 14:57
source share

this is how i fixed it

I had the same page open in two browsers, and first I select the 1st browser, then the 2nd browser for debugging without closing the 1st browser, closing one of them, fixing it ...

0
Mar 13 '17 at 9:31 on
source share

I also ran into the same error, and in my case the problem was due to the web.config conversion file that I wanted to configure other than debug.config.

I had to track the error using the stage branch, and so I am configuring the active solution as Stage.

  • Go to the properties option for your design solution.
  • Click the Configuration Manager button at the top right of the page.
  • Now expand the drop-down configuration option of the active solution, and you select the configuration (network) file for your project to act when you run it.

I selected the scene, and when I create the project, I got this error and because of this, the debuggers became inactive.

But when I returned the option for debugging, the problem was resolved.

0
Jun 30 '17 at 11:30
source share

In my case, I had a different version of the application using the same .dll. This prevented the GAC from being updated with the debug version. I killed the process through the task manager.

0
Sep 19 '17 at 21:34 on
source share

The only way I can get around this message is to go to "Debug"> "Parameters and Settings"> "Debug"> "Symbols", and then select the radio button "All modules, unless it is excluded."

I'm not sure if this is the perfect solution, but it works for now.

0
Jan 25 '18 at 13:40
source share



All Articles