Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i Have A master Page in Directory Of Application ( App/Masterpage.master )
i am Using This Master Page In Many pages and no problem in Visual Studio
WHen i Published My Application On IIS its can't found it
For Eg:-
ASP.NET
<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpage.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="HR.Default" %>

i found error
HTML
Parser Error Message: The file '/Masterpage.Master' does not exist.
Posted
Comments
Arkadeep De 3-Dec-14 8:43am    
i think you didn't upload the master page or you uploaded in the wrong path..check the path once again.

in iis its getting an extra folder in the url, and the page is loking for the master page from the root. for this reason you may be get this error.
yallakorra 3-Dec-14 9:07am    
what should i do step by step please ?

1 solution

This is because it is under the App directory, not the root. Using ~ means the root of the site. So, if you changed the App folder to a directory in IIS it would fix this issue.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900