Asp.net Parser Error Message The File Does Not Exist
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more
Parser Error Message The File '/masterpage.master.cs' Does Not Exist
about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users the file site master does not exist Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each
Error Aspparse: The File Does Not Exist.
other. Join them; it only takes a minute: Sign up Parser Error Message: The file '/Site.master' does not exist up vote 2 down vote favorite Evening folks!! Stuck with this rather dull problem. I have deployed my website could not load type _default on my localhost (i.e. C:\inetpub\wwwroot\MyWebSite) but when i access it in the browser, I get this error message: Parser Error Message: The file '/Site.master' does not exist. It's weird coz the Site.Master is right there in the root folder. I have got 2 more folders in my website that have got a web.config each and i have converted these folders to applications from within the IIS. This error occurs when i access pages from these folders as the file '/install/installwizard.aspx.cs' does not exist. well. so the urls: http://localhost/mywebsite and http://localhost/mywebsite/mysubfolder, both have the aforementioned problem. And in both cases, the master page file does exist in the corresponding folders. I have checked the path of the MasterPageFile in my Default.aspx page and its "~/Site.Master" and the i can successfully run the web app from within Visual Studio (i.e. Cassini). It would be really great if anyone can help me solve this mystery. Let me know if you need more info. Much appreciated. c# asp.net iis-7 share|improve this question edited Apr 8 '14 at 16:35 leppie 83.6k13145253 asked Dec 29 '11 at 17:09 Amn 4051410 guys, someone please help??? –Amn Dec 29 '11 at 18:00 add a comment| 4 Answers 4 active oldest votes up vote 2 down vote You probably need to set the mywebsite folder as an application in IIS. share|improve this answer answered Dec 29 '11 at 17:11 SLaks 538k9313381510 when i created a new website in IIS7, i selected the physical path to be the root folder of the website (i.e. mywebsite). this root folder contains all the pages and other sub-folders (2 of which, as i have pointed out, have been converted to applications). I would imagine that mywebsite is by default an application since its the root folder which contains Default.aspx and Site.Master. Did i understand you correctly? –Amn Dec 29 '11 at 17
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About
Could Not Load Type Masterpage
Us Learn more about Stack Overflow the company Business Learn more about hiring parser error message the file aspx cs does not exist developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the
Codefile Vs Codebehind
Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up asp.net deploy - Main.Master.cs file not http://stackoverflow.com/questions/8670899/parser-error-message-the-file-site-master-does-not-exist found up vote 4 down vote favorite 2 I am currently deploying my website on azure. One of my pages works ok, yet I have another page which uses a master page, which is not loading because I am getting this error: Server Error in '/' Application. Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the http://stackoverflow.com/questions/10437371/asp-net-deploy-main-master-cs-file-not-found following specific parse error details and modify your source file appropriately. Parser Error Message: The file '/Main.master.cs' does not exist. Source Error: Line 1: <%@ Master Language="C#" AutoEventWireup="true" CodeFile="Main.master.cs" Inherits="ThirdEye.Main" %> Line 2: Line 3: <%@ Register Src="~/controls/Footer.ascx" TagName="Footer" TagPrefix="ThirdEye" %> Source File: /Main.master Line: 1 Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272 I can't figure out what I have wrong. I have uploaded the executable, the pages are in the same directory of the bin folder. Do you think I have to add a period or tilde in front of CodeFile attribute or Inherits attribute? I am using .net framework v4. I cant use 3.5 and I don't think that that should be the problem. Main.Master <%@ Master Language="C#" AutoEventWireup="true" CodeFile="Main.master.cs" Inherits="Main" %> Main.Master.cs using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; using ThirdEye; public partial class Main : System.Web.UI.MasterPage {.... c# asp.net azure share|improve this question edited Jun 23 '12 at 8:36 asked May 3 '12 at 18:35 test 1,17912041 add a comment| 4 Answers 4 active oldest votes up vote 11 down vote Are you using a Web Application project (rather than a Web Site project)? If
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies http://stackoverflow.com/questions/18666145/parser-error-message-the-file-site1-master-does-not-exist-but-it-does of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask https://forums.iis.net/t/next/1174816 Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign the file up Parser Error Message: The file '/Site1.Master' does not exist — but it does up vote 0 down vote favorite Seems like an easy-to-fix error, but I've been banging my head on this for a while. App works fine in the VS built-in webserver, but not after moving it to the dev server with IIS7. The default.aspx file refers to the master does not exist page in the page directive... <%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="MyApp.Default" %> Site1.Master is in the site's root directory, along with default.aspx. The folder permissions are read to Everyone at this point. This is an intranet site so IIS authorization is anonymous disabled, windows auth enabled, impersonation enabled. App pool is .NET v4, managed pipeline integrated. I've looked through this site and others for answers and while others have had the same problem, it was for different reasons. Thanks. asp.net iis-7 master-pages share|improve this question asked Sep 6 '13 at 20:32 mpavitt 612 1 Why not try by making it MasterPageFile="Site1.Master" –Irfan TahirKheli Sep 6 '13 at 20:35 add a comment| 5 Answers 5 active oldest votes up vote 0 down vote I have had a similar issue before. The underlying problem is that I assumed that the paths would stay the same and they did not. Log into your dev server and navigate to your master page. Open the page's properties in Explorer and view the path. Now in a test page on your application run a HttpRuntime.AppDomainAppPath() and view where
Web Platform Installer Get Help: Ask a Question in our Forums More Help Resources Blogs Forums Home IIS.NET Forums IIS 7 and Above General Parser Error Parser Error [Answered]RSS 3 replies Last post Jan 18, 2011 05:02 PM by ronald_yoh ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Advanced Search Reply ronald_yoh 8 Posts Parser Error Jan 17, 2011 09:13 PM|ronald_yoh|LINK having the parse error message when the application is accessed from my hosting server. However it works perfect when the application is accessed from the local IIS. Can anyone please help? thanks Server Error in '/Account' 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 '/Account/Site.master' does not exist. Source Error: Line 1: <%@ Page Title="Register" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"Line 2: CodeBehind="Register.aspx.cs" Inherits="Tranzhop.Account.Register" %>Line 3: Source File: /account/register.aspx Line: 1 Version Information:Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1 Reply KristoferG 1360 Posts Moderator Re: Parser Error Jan 18, 2011 12:41 AM|KristoferG|LINK Hi, Are you missing any files that got lost when moving to the hosting server? I saw this thread the other day, which may be useful for you. Many interesting tips: http://forums.asp.net/t/1119228.aspx Kristofer Gafvert http://www.it-notebook.org Reply nashwin 3 Posts Re: Parser Error Jan 18, 2011 06:41 AM|nashwin|LINK Hello Ronald, It seems that the 'Site.master' file doesn't exist under the account folder & that's the reason you are getting error while accessing your site. I would suggest you to upload the 'Site.master' files & recompile your .net application in asp.net 4, it will definitely resolved your problem. Regards, Ashwin, Reply ronald_yoh 8 Posts Re: Parser Error Jan 18, 2011 05:02 PM|ronald_yoh|LINK why would you need the site.master file in the account folder anyway? In the r