I lost the custom source code of Umbraco (controllers, models) but I have my site running on IIS.
Can I recover the code from the compiled version. If yes, how can I achieve this ?
Any help will be highly appreciated.
Strictly speaking, you won't recover your source code, but as already said you can decompile using a tool like ILSpy or dotPeek to see a code representation of what the .NET binary is doing.
I've had the unfortunate position of having to decompile a website of a new client that had lost its source code due to extenuating circumstances, so here is what I ended up doing to get back to square one.
Since you've tagged your post as Umbraco, I assume that this is an Umbraco site. Make sure that you're using the same versions of Umbraco as your existing site, otherwise you'll be in for a world of hurt. Also make sure that all your third-party libraries are configured correctly and any assets/artefacts are backed up. The last thing you want to do when you deploy new code is to wipe out your media library or kill off all of your logs.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.