>All my .aspx pages refer to Master page as MasterPageFile="~/Site.Master" I probably copied it from one of the default ASP.NET Web Forms project. Even though the Site.Master will be in the root folder of the site, when deployed at a customer. Now I have the following problem: for testing I want to deploy this project on my site, in a subdirectory. That is, the directory of the project will be:
>
www.mysitename.com/tempfolder/ >When I navigate to a page of the project as
www.mysitename.com/tempfolder/default.aspx I get error that Site.Master not found. Do I understand correctly is that the reason is the "~/" in front of the Site.Master.
>Therefore, my questions is, do you see a problem if I remove the "~/" from the MasterPageFile pointer? and make it MasterPageFile="Site.Master"?
>
>TIA
I believe that will make it use the Site.Master file in the current directory. If you have pages in subdirectories, that may cause an issue for them.