The file '/MasterPage.master' does not exist. I'm getting this error after uplaoding to web . It was running fine in local host .
How can i correct this ?
How can i correct this ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vahid BakhtiaryPosted Jul 18, 2013, 12:26 PM
you can use from <%= ResolveUrl("~")%>
for example :
<%= ResolveUrl("~")%>MasterPage.master
I hope to be usefulSanjeeb LenkaPosted Jul 18, 2013, 4:53 AM
<%@ Page Language="C#" MasterPageFile="./MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="Untitled Page" %>
or directly write like this
<%@ Page Language="C#" MasterPageFile="MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="Untitled Page" %>
if it helps you mark it as answered.
Iftikar HussainPosted Jul 18, 2013, 4:49 AM
Please share your project folder structure after deploying into web.
Regards,
Iftikar
Ravi ShekharPosted Jul 18, 2013, 4:13 AM
On the root or in any folder