Parser Error Could Not Load Type Masterpage
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 asp.net could not load type inherits of this site About Us Learn more about Stack Overflow the company
Could Not Load Type C#
Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges
Parser Error Message: Could Not Load Type
Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a
An Error Occurred During The Parsing Of A Resource Required To Service This Request Asp Net
minute: Sign up Master Page getting Could Not Load Type error when publishing up vote 4 down vote favorite 1 Everything works find locally, but when I publish my asp.net application to a remote server I get the following error: Server Error in '/' Application. Parser Error Description: An error occurred during the parsing of a resource required to service this request. parser error message could not load type global Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not load type 'JournalPages.MasterMain'. Source Error: Line 1: <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Main.master.cs" Inherits="JournalPages.MasterMain" %> Line 2: Line 3: Source File: /journalpages/Main.Master Line: 1 This happens on any page with a master page. I used Reflector to look at the assembly in the bin directory and the types are all there. Any ideas?? asp.net publishing master-pages share|improve this question asked Nov 10 '09 at 17:45 Ryan 1,73041320 Is .net 2.0 definitely installed on the server? –Paul Nov 10 '09 at 17:47 add a comment| 5 Answers 5 active oldest votes up vote 3 down vote accepted Ok it turns out they hadn't set up the site folder in IIS to be an Application. Once they did all worked well. share|improve this answer answered Nov 10 '09 at 18:50 Ryan 1,73041320 How exactly do you change it to be an Application instead of a Web Site? I have this exact same problem using II6 with
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 what is parser error this site About Us Learn more about Stack Overflow the company Business Learn could not load type iis more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question parser error could not load type inherits x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Could http://stackoverflow.com/questions/1709831/master-page-getting-could-not-load-type-error-when-publishing not load type 'WebApplication1.SiteMaster' up vote 1 down vote favorite 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: Could not load type 'WebApplication1.SiteMaster'. Source Error: Line 1: <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" http://stackoverflow.com/questions/19292886/could-not-load-type-webapplication1-sitemaster Inherits="WebApplication1.SiteMaster" %> Line 2: Line 3: Source File: /eco/Site.Master Line: 1 Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929 I can't find the error, when I publish to my localhost IIS server it works fine but when I'm publishing to my web server it gives me this error?? Can anyone help with this? c# asp.net site.master share|improve this question asked Oct 10 '13 at 10:06 Slobodan Jovanovski 612 try to clean build and publish again –Neelam Oct 10 '13 at 10:09 How does your publish process look like? Do you use the publish dialog? –citronas Oct 10 '13 at 10:56 I'm publishing right from Visual Studio, just right click on the Project and click publish and follow the steps. Before that I was publishing directly on the server (copy/paste). –Slobodan Jovanovski Oct 10 '13 at 11:00 I don't know if I understand you correctly. I hope you are talking about copy/paste the published files and not the source code. Check if your remote IIS server has all the required ASP.Net and .Net framework versions installed. Also check the app pool v
ASP.NET Community Standup Forums Help Home/ASP.NET Forums/General ASP.NET/Web Forms/Parser Error: could not load type masterpage Parser Error: could not load type masterpage [Answered]RSS 18 replies Last post Dec 27, 2013 02:06 PM by julowsky ‹ Previous Thread|Next Thread › http://forums.asp.net/t/1433207.aspx?Parser+Error+could+not+load+type+masterpage Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Support Options Advanced Search Related Links GuidanceSamplesVideos Reply brianhevans Member 2 Points 42 Posts Parser Error: could not load type masterpage Jun 09, 2009 10:15 AM|brianhevans|LINK I have an application that I developed locally. I placed this application in my stagin environment some time ago. Today I was attempting to load new changes and I keep getting a parser error related to could not the master page file. My master page does not do anything other than import a stylesheet and place an image in the header. This is done in the markup, not code-behind. Nothing fancy at all but I keep getting this Parser Error while I am able to run the application successfully on my local machine. I read something about VirtualPath but I have not been able to get that to work. I get a could not load circular reference error when I try and add a new page directive for virtual path. Please help. -Brian Reply kundan_ugale Member 10 Points 8 Posts Re: Parser Error: could not load type masterpage Jun 09, 2009 11:03 AM|kundan_ugale|LINK You might bemissing the referance to Master Page in the page directive You can add Virtual path like this in the page directive <%@ MasterType VirtualPath="~/FolderName/MasterPage.master" %>
Thanks, Kundan Reply brianhevans Member 2 Points 42 Posts Re: Parser Error: could not load type masterpage Jun 09, 2009 11:08 AM|brianhevans|LINK I had mentioned this above. This didn't work for me. I got a circular reference. Should I place this page directive in the master page or the content page? Reply brianhevans Member 2 Points 42 Posts Re: Parser Error: could not load type masterpage Jun 09, 2009 11:15 AM|brianhevans|LINK I added the directive to my content page. I am still able to get the application to run successfully locally but not on my testing server. I am getting an error specific to loading my content page... 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: Could not load type 'GlobalDataWarehouseDataExtensions.JournalEntry'. Source Error: Line 1: <%@ Page Language="C#" MasterPageFile="Site.master" AutoEventWireup="true" CodeBehind="Journal