views:

301

answers:

1

Before obfuscation, the call to the webservice works like a charm.

After obfuscation i get this error.

Method obfuscatedText.GetStringFromWebService can not be reflected. There was an error reflecting ".

What could i do? Why do i get this error after obfuscation?

+4  A: 

Assuming you actually need to obfuscate the web service code, consider splitting the service into two parts: one part would only be the service contract (or the WebMethods if you're still using ASMX).

All the real work should be split out into a separate assembly. You can obfuscate that separate assembly in order to hide details of your implementation. But leave the "service layer" assembly untouched.

John Saunders