Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all

i uplload my website to my web host server.

the website was running good in my local computer but on the server it's showing me this error :

<pre lang="msil">Server Error in &#39;/&#39; Application.
--------------------------------------------------------------------------------

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The file &#39;/MasterPage.master&#39; does not exist.

Source Error:


Line 1: &lt;%@ page title=&quot;&quot; language=&quot;VB&quot; masterpagefile=&quot;~/MasterPage.master&quot; autoeventwireup=&quot;false&quot; inherits=&quot;news, App_Web_giiaopeh&quot; %&gt;
Line 2:
Line 3: &lt;%@ Register Assembly=&quot;AjaxControlToolkit&quot; Namespace=&quot;AjaxControlToolkit.HTMLEditor&quot;


Source File: /news/news.aspx Line: 1


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4200; ASP.NET Version:2.0.50727.4016</pre>


can you help me please


the master page already in the server but i can't understand from where did this code came from <pre lang="vb">inherits=&quot;news, App_Web_giiaopeh&quot; %&gt;</pre>


because my original code is :
<code>
&lt;%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="news.aspx.vb" Inherits="news" %&gt;</code>
Posted
Comments
Sandeep Mewara 9-Aug-10 13:04pm    
Update from OP: Master file is there.

The master page file is obviously not there.
 
Share this answer
 
The path that you have given for the Master File is not correct when you have hosted it. Might be, the path in local environment was working fine but not in hosted environment.

Use ResolveUrl to refer the path of the MasterPage. It would make sure that the path is correct in both the cases.
Have a look at this Tip/Trick: For resolving URL's[^]
 
Share this answer
 
thnak you all , i had solved this one , the problem was in the "~/masterpage.master" i just change it to "masterpage.master" in all my pages ,so just delete "~/" and every thing will works very well.:thumbsup:


any way thank you alll guys :-O
 
Share this answer
 
v2

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