Is this possible:
I have web application with usercontrols in the following directory : C:\Users\Visual Studio 2010\WebSites\MS\Controls
I have another web application on my machine with the following location : C:\Users\Visual Studio 2010\WebSites\TestSite
Can TestSite load the userwebcontrol from different directory.
I tried the following in TestSite:
myUserControl = (UserControl)LoadControl("../WebSites/CMS/Controls/test.ascx");
But i get the error: The virtual path '/WebSites/MS/Controls/test.ascx' maps to another application, which is not allowed.
Tried using ~ at the beginning but comes up with The file '/TestSite/MS/Controls/Editor.ascx' does not exist.
Can this be done?