This is a migrated thread and some comments may be shown as answers.

Code not generated properly

4 Answers 41 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Brijesh
Top achievements
Rank 1
Brijesh asked on 01 Mar 2021, 09:16 AM
When I decompile code for one of the method I am getting below error. Can someone please guide what can be done to resolve that ?

 

// Current member / type
: System.Threading.Tasks.Task`1<System.Boolean> TPluginRegistrator.Registrator::AuhorizeAndStoreTokens()
// File path: sample.exe
//
// Product version: 2019.1.118.0
// Exception in: System.Threading.Tasks.Task<System.Boolean> AuhorizeAndStoreTokens()
//
// Specified method is not supported.
//    at Telerik.JustDecompiler.Common.Extensions.(TypeReference ‹, TypeReference& ‚) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Common\Extensions.cs:line 113
//    at ž..(Expression –, TypeReference& ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Steps\FixBinaryExpressionsStep.cs:line 240
//    at ž..•(BinaryExpression –) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Steps\FixBinaryExpressionsStep.cs:line 221
//    at †”.‰Ÿ.—š(ICodeNode ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Ast\BaseCodeTransformer.cs:line 97
//    at †”.‰Ÿ.Visit(ICodeNode ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Ast\BaseCodeTransformer.cs:line 276
//    at ž..•(BinaryExpression –) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Steps\FixBinaryExpressionsStep.cs:line 75
//    at †”.‰Ÿ.—š(ICodeNode ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Ast\BaseCodeTransformer.cs:line 97
//    at †”.‰Ÿ.Visit(ICodeNode ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Ast\BaseCodeTransformer.cs:line 276
//    at ž..œ(DecompilationContext ™, •Ÿ €–) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Steps\FixBinaryExpressionsStep.cs:line 44
//    at Telerik.JustDecompiler.Decompiler.ExpressionDecompilerStep.œ(DecompilationContext Ž, •Ÿ €–) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Decompiler\ExpressionDecompilerStep.cs:line 91
//    at ‚–.™“.(MethodBody €–, •Ÿ Ÿ, ILanguage ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Decompiler\DecompilationPipeline.cs:line 88
//    at ‚–.™“.‹(MethodBody €–, ILanguage ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Decompiler\DecompilationPipeline.cs:line 70
//    at Telerik.JustDecompiler.Decompiler.Extensions.“(MethodBody €–, DecompilationContext †, Œ Ÿ“, Func`2 ”, DecompilationContext& ”“) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Decompiler\Extensions.cs:line 104
//    at Telerik.JustDecompiler.Decompiler.Extensions.”(MethodBody €–, DecompilationContext †, ‡& ‡) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Decompiler\Extensions.cs:line 150
//    at ž.Ž.Ž() in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Steps\RebuildAsyncStatementsStep.cs:line 148
//    at ž.Ž.Match() in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Steps\RebuildAsyncStatementsStep.cs:line 57
//    at ž.Ž.œ(DecompilationContext ™, •Ÿ €–) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Steps\RebuildAsyncStatementsStep.cs:line 31
//    at ‚–.™“.(MethodBody €–, •Ÿ Ÿ, ILanguage ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Decompiler\DecompilationPipeline.cs:line 88
//    at ‚–.™“.‹(MethodBody €–, ILanguage ) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Decompiler\DecompilationPipeline.cs:line 70
//    at Telerik.JustDecompiler.Decompiler.Extensions.›“(™“ œ“, ILanguage , MethodBody €–, DecompilationContext& ™) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Decompiler\Extensions.cs:line 95
//    at Telerik.JustDecompiler.Decompiler.Extensions.š“(MethodBody €–, ILanguage , DecompilationContext& ™,  œ–) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Decompiler\Extensions.cs:line 58
//    at ——.ƒ˜.—(ILanguage , MethodDefinition €,  œ–) in C:\DeveloperTooling_JD_Agent1\_work\15\s\OpenSource\Cecil.Decompiler\Decompiler\WriterContextServices\BaseWriterContextService.cs:line 117
//
// mailto: JustDecompilePublicFeedback@telerik.com

4 Answers, 1 is accepted

Sort by
0
Nick Iliev
Telerik team
answered on 04 Mar 2021, 06:44 AM

Hello Brijesh,

 

If possible please provide more details about the code you are trying to decompile like the versions of the NET it is using and if possible the target library itself.

 

Regards,
Nick Iliev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Brijesh
Top achievements
Rank 1
answered on 07 Mar 2021, 10:51 AM
I am tryin to decompile on version of .NET framework 4.7.2. I am not sure targeted version so, I have selected latest version of .NET framework. 
0
Nick Iliev
Telerik team
answered on 10 Mar 2021, 05:59 AM

Hello Brijesh,

 

The supported .NET Framework versions are 4.5.1, 4.5, 4.0, 3.5, 2.0 which is probably why you are experiencing the issue (as on your side the NET version is 4.7.2).

 

Regards,
Nick Iliev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Kasim
Top achievements
Rank 2
commented on 06 May 2021, 06:52 AM

Is there any plan to add support for latest versions of .Net Framework / .Net Core?
0
Nick Iliev
Telerik team
answered on 08 May 2021, 07:40 AM

Hello Kasim,

 

The team is focused on other priorities and products and at this point, there is no plan of providing support for the newer NET versions.

 

Regards,
Nick Iliev
Progress Telerik

Тhe web is about to get a bit better! 

The Progress Hack-For-Good Challenge has started. Learn how to enter and make the web a worthier place: https://progress-worthyweb.devpost.com.

Tags
General Discussions
Asked by
Brijesh
Top achievements
Rank 1
Answers by
Nick Iliev
Telerik team
Brijesh
Top achievements
Rank 1
Share this question
or