In a asp.net c# project hosted on iis how to edit dll file to small change in code?

smita naik 0 Reputation points
2023-02-10T04:43:10.95+00:00

In a asp.net c# project hosted on iis how to edit dll file to small change in code?Without getting whole project and debug it and again hosting full project

patching single dll file is possible?

Windows development | Internet Information Services
Developer technologies | ASP.NET | Other
{count} votes

2 answers

Sort by: Most helpful
  1. Lan Huang-MSFT 30,186 Reputation points Microsoft External Staff
    2023-02-10T09:26:28.1333333+00:00

    Hi @smita naik,

    Hope this post can help you.

    I think there are a few options you can try:

    I think you can use ildasm.exe to disassemble the DLL you have, then fix the code, then use ilasm.exe to reassemble.

    https://learn.microsoft.com/en-us/dotnet/framework/tools/ildasm-exe-il-disassembler

    dnSpy:dnSpy is a debugger and .NET assembly editor. You can use it to edit and debug assemblies even if you don't have any source code available. https://github.com/dnSpy/dnSpy

    ClickOnce deployment: with ClickOnce deployment, you can provide updates automatically. Only those parts of the application that have changed are downloaded, and then the full, updated application is reinstalled from a new side-by-side folder.

    https://stackoverflow.com/a/9621161

    https://learn.microsoft.com/en-us/visualstudio/deployment/clickonce-security-and-deployment?view=vs-2022

    Best regards,
    Lan Huang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. SurferOnWww 4,706 Reputation points
    2023-02-11T01:54:33.12+00:00

    In a asp.net c# project hosted on iis how to edit dll file to small change in code?Without getting whole project and debug it and again hosting full project

    I suggest that you use the Web Site Projects. See the following document for details:

    Web Application Projects versus Web Site Projects

    https://learn.microsoft.com/en-us/previous-versions/dd547590(v=vs.100)

    "Advantages of the deployment strategy for Web site projects include the following: If you make a small change to a Web site, you do not have to redeploy the whole site. Instead, can copy just the changed file or files to the production IIS server. You can also edit files directly on the production server."

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.