System.NotSupportedException due to LoadSymbols();

View: New views
3 Messages — Rating Filter:   Alert me  

System.NotSupportedException due to LoadSymbols();

by yeeen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 
Hi Jb,
 
There is no Mono.Cecil.Pdb.dll in /cecil/pdb, I also can't compile the Mono.Cecil.Pdb solution due to "........\Visual Studio 2008\Projects\Mono.CompilerServices.SymbolStore\mcs\class\mono.snk' -- The system cannot find the file specified".
 
I think tt's why assemblyDefinition.MainModule.LoadSymbols(); keeps giving me "System.NotSupportedException"
 
Can help me with this?

I have tried to another post sth similar on the google group earlier today, but it says it requires approval from the moderator, so it is still pending. Here is the more detailed description of my problem.

Hope to hear fr u soon!
 
Thanks,
Li Yen
 

--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---


Re: System.NotSupportedException due to LoadSymbols();

by Jb Evain-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hey,

On 10/4/09, Wee Li Yen <weeliyen@...> wrote:
> There is no Mono.Cecil.Pdb.dll in /cecil/pdb, I also can't compile the
> Mono.Cecil.Pdb solution due to "........\Visual Studio
> 2008\Projects\Mono.CompilerServices.SymbolStore\mcs\class\mono.snk'
> -- The system cannot find the file specified".

Just change whatever path specified to the .snk to pick the one that
is in the Mono svn (mcs/class/mono.snk). And make sure you have a
Mono.Cecil.Pdb.dll near Mono.Cecil.dll when you call LoadSymbols, and
that the assembly you're reading has a pdb symbol file.

--
Jb Evain  <jb@...>

--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---


Re: System.NotSupportedException due to LoadSymbols();

by yeeen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I found a mono.snk in /gtk-sharp, so I compiled to mcs/class. I think it
works now, thank you so much!

The thread I found earlier
(http://www.mail-archive.com/mono-cecil@.../msg00943.html) says
"You need to either get Mono.Cecil.Pdb from /cecil/pdb in Mono' svn.
Mono.Cecil.Mdb is in /mcs/class/Mono.Cecil.Mdb, and of course,Mono.Cecil is
in /mcs/class/Mono.Cecil."
But Mdb doesn't seem to hv any effect on the variable names?

I still have variables with default names (starting with CS$) assigned, so I
guess it is cos they are just anonymous variables.

However why does "Console.WriteLine(a + " " + b + " " + c);" gives me an
additional variable with the name CS$0000?


--------------------------------------------------
From: "Jb Evain" <jb@...>
Sent: Sunday, October 04, 2009 11:27 PM
To: <mono-cecil@...>
Subject: [mono-cecil] Re: System.NotSupportedException due to LoadSymbols();

>
> Hey,
>
> On 10/4/09, Wee Li Yen <weeliyen@...> wrote:
>> There is no Mono.Cecil.Pdb.dll in /cecil/pdb, I also can't compile the
>> Mono.Cecil.Pdb solution due to "........\Visual Studio
>> 2008\Projects\Mono.CompilerServices.SymbolStore\mcs\class\mono.snk'
>> -- The system cannot find the file specified".
>
> Just change whatever path specified to the .snk to pick the one that
> is in the Mono svn (mcs/class/mono.snk). And make sure you have a
> Mono.Cecil.Pdb.dll near Mono.Cecil.dll when you call LoadSymbols, and
> that the assembly you're reading has a pdb symbol file.
>
> --
> Jb Evain  <jb@...>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---