Is there a recommended practise for supporting self-hosting and web-hosting simultaneously?

I had a lot of issues to work through. Because HttpContext.Current is not set and The GlobalConfiguration is not accessible in self-hosting, autofac does not work properly.

Are there any other issues to be aware of?

More detail required. For example https://autofac.org doesn't tell me enough along with your reference to HttpContext.Current and such.

"Self Hosting is a form of running your own website or application by setting up a server and network yourself."

For decades we could do this with the usual LAMP (tutorial: https://www.udemy.com/course/web-design-lab/ )

My answer is to learn about the usual Linux Apache MySQL and PHP setups. If you want to talk about autofac or such, supply more detail.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.