Server Error in '/' 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 '/MasterPage.master' does not exist.
Source Error:
Line 1: <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
Line 2:
Line 3: <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
Try replacing the tilde before ~/MasterPage.master with a period ./MasterPage.master.
Or try to reinstalled iis 7 from windows components. while installing iis 7 don't forget to select asp.net check box .
Best Regards
Cathy
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
74 Points
271 Posts
Site will not load
Dec 20, 2016 09:59 PM|Ruthless23|LINK
I made a site many years back in VS 2005 and it ran on an XP box that just died
I made a could of adjustments in VS2015 so it would connect to a 2012 SQL DB and put it on the XP box and all ran fine.
We installed IIS & ASP.net on a Windows 7 pro PC and copied the site to it in the same state it was in the XP box.
We have killed 8 hours trying to get the site to load.
At best we have the IIS 7 Welcome screen when going to it from a remote PC.
We get all sorts of folder permission errors or web.config errors.
We make a small change on the web config and get a new error
ASP.NET 3.5 C# IIS 7.0 on Windows 7 Pro
the sites folder name is 9ishNewInternal. Not sure if the "9" is causing an issue where it did not before
It is just an internal web site never to be published to the web
Any suggestions what to do or how to correct this issue?
All-Star
52171 Points
23257 Posts
Re: Site will not load
Dec 20, 2016 11:03 PM|mgebhard|LINK
That's a bit vague... what are the errors?
Can you share the IIS configuration? Is the site using Windows Auth? Did you upgrade the app or is it running 2.0?
Member
74 Points
271 Posts
Re: Site will not load
Dec 21, 2016 02:43 AM|Ruthless23|LINK
We upgraded from 2.0 to 4. I changed the reference in the web config
where's my latest error
Line 1: <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> Line 2: Line 3: <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
All-Star
52171 Points
23257 Posts
Re: Site will not load
Dec 21, 2016 10:25 AM|mgebhard|LINK
Usually there an error message that goes with the yellow screen.
Member
74 Points
271 Posts
Re: Site will not load
Dec 21, 2016 01:24 PM|Ruthless23|LINK
Server Error in '/' 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 '/MasterPage.master' does not exist.
Source Error:
Line 1: <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
Line 2:
Line 3: <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
Source File: /9ishNewInternal/default.aspx Line: 1
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1087.0
All-Star
52171 Points
23257 Posts
Re: Site will not load
Dec 21, 2016 01:31 PM|mgebhard|LINK
Does /MasterPage.master exist in the application root?
Is the web app root folder configured as an IIS application?
https://technet.microsoft.com/en-us/library/cc772042(v=ws.10).aspx
Is ASP registered in IIS?
https://msdn.microsoft.com/en-us/library/k6h9cz8h.aspx
IS the web app's application pool targeting the expected .NET version?
https://technet.microsoft.com/en-us/library/cc754523(v=ws.10).aspx
Member
74 Points
271 Posts
Re: Site will not load
Dec 21, 2016 02:04 PM|Ruthless23|LINK
both yes.
This site was running fine on XP and works fine in visual studio.
Once we tried to run it on a Windows 7 and IIS 7 it started to have one issue after the other.
The home folder is 9ishNewInternal
Is that a legal folder name? It was before
Star
8670 Points
2882 Posts
Re: Site will not load
Dec 28, 2016 07:07 AM|Cathy Zou|LINK
Hi Navneet saini,
Try replacing the tilde before ~/MasterPage.master with a period ./MasterPage.master.
Or try to reinstalled iis 7 from windows components. while installing iis 7 don't forget to select asp.net check box .
Best Regards
Cathy
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
74 Points
271 Posts
Re: Site will not load
Dec 28, 2016 03:00 PM|Ruthless23|LINK
We got the XP box to work and have given up on this course of action. We found that the subnet mask did not match our current network which caused the
connection issue to the SQl servers.
thanks for your reply