So, for context - I have a website that I am publishing to a server which has ASPX pages that read from C# classes. On the server, the website is not on the root of the server, this is due to web applications that work on this server and communicate with said website.
When I publish the website - the code will only work if the Bin file containing the DLL is on the server root, it will not pick up from the website dir. Is there any way to make sure the bin file is read from the website dir and not the server root? Server paths can be variable, so, if possible it needs to be relative to the website dir.
Ideally, this needs to be done in a way (if it is indeed possible) without changing anything directly in IIS. This is because it is part of a solution that integrates into a pre-existing IIS config.