I found many posts very similar to this, but I did not find anything that would work for me.
I have an asp.net Web Api2 application (not vnext) running under IIS and using the Owin startup class.
When setting the root url for this will be something like
http:
where appvirtualdirectoryis the name of the virtual directory for which it is configured to work in IIS.
Is there a way at startup where I don't have the Request property, i.e. in the method Startup.Configureto get the root url including the virtual directory used?
source
share