Description
I have a problem with getting react.net to initialize on an azure web app. The problem occurs if I add the react nuget package after I have deployed the site the first time. I think this has to do with how azure web apps restart and store temporary files. I manage to recreate this locally and the solution then was to do an IIS reset and remove temporary asp.net files which I have not been able to do in azure. I have tried every hack for this I could find but no luck. In the end I solved this by adding the HTTPmodule in the web.config
<httpModules>
<add name="IocPerRequestDisposal" type="React.Web.WebInitializer.IocPerRequestDisposal"/>
</httpModules>
And initializing the react ioc container and config in one of my other initializers.
Initializer.Initialize(AsPerRequestSingleton);
ReactConfig.Configure();
If you have better solution it would be greatly appreciated. Otherwise might I suggest to make WebInitializer public and let override it properly if needed?
This is probably related to #191 but that issue was closed so I made new one. I did try to add owin publish, no luck and the remove owin and republish, still not working.