Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deployment and location of Site.Master
Message
 
 
À
10/12/2013 18:31:28
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01589778
Message ID:
01589792
Vues:
27
>>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"?
>
>A SWAG, have you tried MasterPageFile="~/tempfolder/Site.Master" ? (guessing that ~ might be shorthand for "site root").

I have not tried it but I am pretty sure it would work. But then I will have problems when deploying on a customer site.
Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform