Problem with obfuscation when changing discs
Matias
Posts: 2 New member
Hello, I have used smart assembly for my project for about 2 years. Everything worked properly until I changed the hard disk of my notebook to a solid disk. Install on my new drive all my tools. Same version of Visual Studio Professional (2015), and download Smart Assembly 6. The project of both visual studio and smart assembly is the same, but when compiling my application and obfuscating with smart assembly fails. The fault is in a call to a web api. The error is :
System.Exception: System.MissingMethodException: Method not found: 'System.Threading.Tasks.Task`1 <System.Net.Http.HttpResponseMessage> System.Net.Http.HttpClientExtensions.PostAsJsonAsync (System.Net.Http. HttpClient, System.String, !! 0) '.
in .ctor (String [] args)
in (String [] args)
If you do not obfuscate the project, it works correctly.
Previously, with the hard disk, with smart assembly generated a single file.exe and everything worked correctly. This is what I discovered by testing:
If I do not apply the merge to the dll that contains the api web call, it works fine.
If I remove the obfuscation of the dll that contains the call, it does not work. I checked the code with .Net Reflector and okay, the call string is correct.
If I use the compilation of my project made with the previous hard disk and obfuscate it, the call works! But it's exactly the same project. Compiling it with the solid disk does not work
I do not know what to try, please help!
regards
Matias
System.Exception: System.MissingMethodException: Method not found: 'System.Threading.Tasks.Task`1 <System.Net.Http.HttpResponseMessage> System.Net.Http.HttpClientExtensions.PostAsJsonAsync (System.Net.Http. HttpClient, System.String, !! 0) '.
in .ctor (String [] args)
in (String [] args)
If you do not obfuscate the project, it works correctly.
Previously, with the hard disk, with smart assembly generated a single file.exe and everything worked correctly. This is what I discovered by testing:
If I do not apply the merge to the dll that contains the api web call, it works fine.
If I remove the obfuscation of the dll that contains the call, it does not work. I checked the code with .Net Reflector and okay, the call string is correct.
If I use the compilation of my project made with the previous hard disk and obfuscate it, the call works! But it's exactly the same project. Compiling it with the solid disk does not work
I do not know what to try, please help!
regards
Matias
Tagged:
Comments
So sorry to hear you're running into an issue with SmartAssembly!
Hm, that is odd that everything is the same but it's only throwing an error on the new hard disk. Would it be possible for you to share the two dlls from the different hard disks so that we can analyze them? If so, can you please zip these up and send them to support@red-gate.com with subject "DLL files for #97999"?
(Note: if the zip file is larger than 20mb, we'll need to create an upload link for you- just let me know if so.)
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?