Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Dotfuscator causing exception when loading resource?

  • 24-06-2012 12:29PM
    #1
    Registered Users, Registered Users 2 Posts: 7,544 ✭✭✭


    My build works fine before using dotfuscator but after it gives an exception when my code tries to load the resource manager.

    I assume this is because the code to load the resources contains a string reference to my namespace which probably gets renamed by dotfuscator.

    Anyway to get around this?
    ResourceManager SqlQueries = new ResourceManager("MyNameSpace.Properties.Resources", Assembly.GetExecutingAssembly());
    

    Could not find any resources appropiate for the specified culture or the neutral culture. Make sure "MyNameSpace.Properties.Resources.resources" was correctly embedded or linked into assembly "MyAssembly" at compile time, or that all the satellie assemblies required are loadable and fully signed.


Comments

  • Registered Users, Registered Users 2 Posts: 7,544 ✭✭✭BrokenArrows


    Actually nevermind. I figured it out.

    In Dotfuscator i needed to select the "Rename" tab and select my resources to be excluded.

    Works after this.


Advertisement