I have a couple of websites I am building that display the same or similar data in pages. To reduce code duplication, what i did was created a 3rd project/website and figured I'd use that as the location for shared HTML, java-script, CSS, images, etc.
I am able to include JavaScript, CSS, and images fine from the shared project using relative paths. however i am not able to render partial pages of HTML. when trying to access the two websites that are trying to load partial page using code like this:
@RenderPage("/SharedArtifacts/Views/MySharedViewscshtml")
I get the following response:
The virtual path '/SharedArtifacts/Views/MySharedViewscshtml' maps to another application, which is not allowed.
Now I've googled and tried using ~ prefix to specify the root of the path to solve the problem, but to no avail... still the same error.
Any thoughts on how to resolve this issue?