Getting Harmony to work in IIS 4 with AppInit #684
stevenroman760
started this conversation in
General
Replies: 1 comment
-
Hello,
I am not familiar with running custom code in IIS. So unless you can get
the Harmony initialisation running, I cannot help you.
I would suggest visiting a dedicated IIS forum or the C# discord.
Regards,
Andreas Pardeike
…On Fri, Jul 11, 2025 at 10:27 PM stevenroman760 ***@***.***> wrote:
Hello,
I wrote my own Harmony code to override some code that runs in IIS. The
app pool is .net 4, classic pipeline, I've added the 0Harmony.dll, pdb and
unedited 0Harmony.xml to the bin folder under my application in IIS. My dll
name is App_Init.dll because I thought that is what it needed to be for IIS
to pick it up on startup. In the constructor I instantiate the Harmony
library and run patchAll. I've got a try catch around that with logging to
a file but I never see my log file get generated. I don't have the ability
to debug locally because this is a silverlight app and there are certs
involved, any idea why I'm not getting any logging?
This is kind of a passion project but it looks so fun I just wish I could
get it to work or at least give me a log as to what exception is being
thrown but it seems IIS has no idea I want my AppInit to run. Thoughts?
Thanks,
Steven
—
Reply to this email directly, view it on GitHub
<#684>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGQMUBLZBW4FSFONFUQTND3IAMZPAVCNFSM6AAAAACBKWZE5GVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZYGU3DSNBYGE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I wrote my own Harmony code to override some code that runs in IIS. The app pool is .net 4, classic pipeline, I've added the 0Harmony.dll, pdb and unedited 0Harmony.xml to the bin folder under my application in IIS. My dll name is App_Init.dll because I thought that is what it needed to be for IIS to pick it up on startup. In the constructor I instantiate the Harmony library and run patchAll. I've got a try catch around that with logging to a file but I never see my log file get generated. I don't have the ability to debug locally because this is a silverlight app and there are certs involved, any idea why I'm not getting any logging?
This is kind of a passion project but it looks so fun I just wish I could get it to work or at least give me a log as to what exception is being thrown but it seems IIS has no idea I want my AppInit to run. Thoughts?
Thanks,
Steven
Beta Was this translation helpful? Give feedback.
All reactions