-
-
Notifications
You must be signed in to change notification settings - Fork 40
Description
Hi Rick,
We use your wwDotnetBridge many years now. Although a bit rewriten over time. It runs very stable in our classic asp application.
I saw you had a newer bridge to the .net core versions. For a normal desktop application it seems to work. But in an asp environment it is crashing. I also found your question (from 2019) on the github issue page of dotnet about the issue.
From there I picked up the sample code of microsoft, using the nethost / hostfxr approach, and rewrote it. I only had to add a delegate to your wwDotnetBridge factory class matching the CreatewwDotnetBridgeByRef factory method which is called from the unmanaged code and returns an IDispatch pointer.
So, I have implemented the new functionality, based on the nethost / hostfxr approach, in the ClrHost which I now use in our asp application. It is not crashing anymore and on every request our vfp dll can re-attach to the .net 8 runtime. It is still in an early test phase, but it seems promissing. Our c# assemblies could be upgraded to .net core (VS .Net Upgrade Assistent extension) with little modifications afterwards.
Are you interested in the code? I can also zip the whole project and upload it. You probably have to rewrite some code to fit it in your project. But that's probably piece of cake.
Regards, Wijnand