I
Icarus
Hi, this is my scenario.
I have a win forms application (EXE), this app uses an assembly that I also
build (DLL). That assembly encapsulate several classes, for example,
cTeachers, cStudents, cSchedules, etc.
Some classes in the assemble have a custom attribute named IsThisAnApp that
holds a boolean value. This value indicates if the assemble will expose
properties like AplicationName, LevelOfProvilegesRequired, etc.
A third application (EXE) is a generix security application that should,
using reflection, scan a compiled assembly (DLL) looking for IsThisAnApp tag
for every Assembly.GetExportedTypes.
Once the security app detects a valid class, extract app info and insert it
in a SQL Server Database.
The Security app reads that info and allow users to custom security
privileges for that app.
Everithing works fine.
My problem starts when, for the production environment, I deploy an
obfuscated assembly and then everything crashes. For security reasons, when
I obfuscate the assembly using a 3rd part software, I add wrong metadata
information for the assembly.
Is there a way that reflection works equal in obfuscated environments?
TIA
Sergio
I have a win forms application (EXE), this app uses an assembly that I also
build (DLL). That assembly encapsulate several classes, for example,
cTeachers, cStudents, cSchedules, etc.
Some classes in the assemble have a custom attribute named IsThisAnApp that
holds a boolean value. This value indicates if the assemble will expose
properties like AplicationName, LevelOfProvilegesRequired, etc.
A third application (EXE) is a generix security application that should,
using reflection, scan a compiled assembly (DLL) looking for IsThisAnApp tag
for every Assembly.GetExportedTypes.
Once the security app detects a valid class, extract app info and insert it
in a SQL Server Database.
The Security app reads that info and allow users to custom security
privileges for that app.
Everithing works fine.
My problem starts when, for the production environment, I deploy an
obfuscated assembly and then everything crashes. For security reasons, when
I obfuscate the assembly using a 3rd part software, I add wrong metadata
information for the assembly.
Is there a way that reflection works equal in obfuscated environments?
TIA
Sergio