deployment - Living on the edge: can I change a constant string in a deployed asp.net website page dll? -
(Unfortunately, this question is about a non-recommended practice. I know that There is no good practice, but every now and then we just have to open our tricks; -))
In such a situation where we have accidentally published an asp. Pure website, with a wrong URL, pure website, we just want to open that DLL and want to change the URL to prevent waiting for another publication for another week.
In the old native DLL I knew how to change resources, but how would I try with this .net DLLs? What else is the easy method, or is only a hacker (I know of ildasm
and ilasm
)?
If it means that string is a literal inside event handler.
Here are some ways to consider:
- Reflective , Is able to edit the IL of a compiled assembly. If you are using code signing, then maybe you have to be tweaking the headache in a signed assembly.
- Robocopy is a useful tool for publishing web sites, only minor changes can be made. Robocopy is only capable of copying files that have been modified. I have some websites that take 8 hours for raw publishing, but take less than 10 minutes to publish changes through Robocopi (and they are non-disruptive on most Web sites for 10 minutes).
Comments
Post a Comment