yck1509 / ConfuserEx

An open-source, free protector for .NET applications
http://yck1509.github.io/ConfuserEx/
Other
3.56k stars 1.62k forks source link

Confused .exe uses default app.config #185

Closed mrjohnr closed 9 years ago

mrjohnr commented 9 years ago

Hi! I've migrate from Eazfuscator to confuserEx but I have a problem: when I upgrade my application to new confused .exe,it uses default app.config ignoring the existing one,and all settings inside(database path,server ip,etc),there are couple implementations and that is a problem to lost settings,I revert to Eazfuscator and problem is gone,is there any solution to use confuser and have all settings back? thanks!

yck1509 commented 9 years ago

Hi, There are two possible reason to this problem.

  1. Eazfuscator renames the settings class. If this is the case, then there is really no way to do a seamless migration to ConfuserEx --- you'll have to convert the old settings file to the new file.
  2. Eazfuscator did not rename the settings class. If this is the case, then the latest build should fix it, as I added special handling to exclude settings class from being renamed.
mrjohnr commented 9 years ago

Hi,thanks for your answer I've made some tests: with default exe build (no obfusation done) I moved database from default path and also changed the setting for the path, with Eazfuscator : no error (used changed file) but with Confuser I got error,database not found in default location,so there is the problem Where I can find latest binary build,I've downloaded source and tried build from .bat file and from solutions but I got errors ....? thanks!

yck1509 commented 9 years ago

You can find the latest builds at the CI Server.

mrjohnr commented 9 years ago

Using latest build problem is just the same,thanks

mrjohnr commented 9 years ago

There are differences between user.config files,with confused exe I can see something like this: name="_x202Cx206Dx200Ex202Cx200Ex200Fx206Ax202Bx206Ex206Bx202Ex200Fx206Bx202Bx202Ex206Fx200Cx206Ex206Bx202Bx202Bx206Ex206Fx200Dx206Ex202Bx202Ax200Fx200Fx206Ax206Bx206Ax206Dx200Fx206Fx200Ex200Bx206Ex206E_x202E"

there you can find them both: https://www.dropbox.com/s/rdrtqipkl7clcnl/files.ZIP?dl=0

thanks!

yck1509 commented 9 years ago

I cannot reproduce the issue here. Do you mind sharing your *.crproj file?

mrjohnr commented 9 years ago

there is https://www.dropbox.com/s/pvp23yvu2r6undy/conf.zip?dl=0

thanks!

yck1509 commented 9 years ago

Sadly I still cannot recreate the problem here. Did you try clearing the obfuscated output and settings and redo the whole obfuscation process?

mrjohnr commented 9 years ago

You're right there was a problem on my side,seems to work now Thanks a lot!