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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Dotfuscator causing exception when loading resource?

  • 24-06-2012 11:29AM
    #1
    Registered Users, Registered Users 2 Posts: 7,529 ✭✭✭


    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,529 ✭✭✭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