Dotfuscator : Error after obfuscation

时光怂恿深爱的人放手 提交于 2019-12-08 07:21:13

问题


I am using dotfuscator to obfuscate my vb.net application(myapp.exe). But i am getting error while running the obfuscated file.

Below is the error when i open the exe which is obfuscated.

"The settings property 'Import' was not found. ImportSetting"

My application uses .config(myapp.exe.config) file which has setting like below

<userSettings>
    <myapp.My.MySettings>
        <setting name="Import" serializeAs="String">
            <value>True</value>
        </setting>
    </myapp.My.MySettings>
</userSettings>

If i don't obfuscate then application works fine. The error comes only if i obfuscate the my application.

Procedure i follow during obfuscation:

First i open create new project in dotfuscator.

In add input assembly i add myapp.exe and myapp.vshost.exe file from the bin folder of my project.

In build menu i select destination directory and click on build.

Now obfuscated file will be generated which i will use.

So please help me to solve this error.


回答1:


Note that running the obfuscator will rename everything to hide it's purpose. See here, http://msdn.microsoft.com/en-US/library/ms227212(v=vs.80).aspx.

My guess is that your <myapp.My.Settings> would have to be changed to the obfuscated name. I'm not sure how you would determine that however.

Edit: It looks like dotfuscator outputs a map.xml file that specifies all the stuff that was renamed. You should be able to lookup myapp and see what it got renamed to, then update the .config file.




回答2:


You may have to manually exclude ImportSetting from renaming. If this doesn't solve your problem you should probably contact Dotfuscator Support



来源:https://stackoverflow.com/questions/17215726/dotfuscator-error-after-obfuscation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!