I’m hosting a web on a server (the server is not on my pc). When I need to debug a page sometimes I download it from the server and test it locally. When this page is using a masterpage I can’t access it.
I can’t use the tilde in the “masterpagefile=” because the masterpage is not on the local pc, but online, that’s why I wanted to use an absolute url like: MasterPageFile=”http://www.pcgroup.co.il/MasterPages/menu.Master”. But this is giving me an error that it is not a virtual path.
Any workaround? (please don’t reply: download the masterpage and then edit it, I’m looking for something more elegent than that..).
Thank you all.
The masterpagefile property must point to a virtual path. Is the masterpage in a physical directory that you have access to? In other words could you get to the masterpage via a UNC file path like \server\share\masterpages\menu.master? If so, you could create a Virtual Directory on your local IIS that points to that path. Call the virtual directory something like remote. Then you should be able to use ~/remote/[rest of the path here].