Could Not Load Type Error In Master Page
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the asp.net could not load type inherits workings and policies of this site About Us Learn more about Stack could not load type c# Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs parser error message: could not load type Documentation Tags Users 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 other. Join
Parser Error Master Page
them; it only takes a 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 parser error could not load type inherits 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 '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,72041319 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,72041319 How exactly do you change it to be a
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 could not load type global about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users
Could Not Load Type Iis
Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping
Could Not Load Type Inherits Codebehind
each other. Join them; it only takes a minute: Sign up Parser Error Message: Could not load type : the file of the master page up vote 1 down vote favorite I have the following error in parsing my http://stackoverflow.com/questions/1709831/master-page-getting-could-not-load-type-error-when-publishing web - based application: Parser Error Message: Could not load type 'Hamla.Masouma_Program'. Source Error: Line 1: <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Masouma_Program.Master.cs" Inherits="Hamla.Masouma_Program" %> Line 2: Line 3: My web based application has master page and this is the header of the master page: <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Masouma_Program.Master.cs" Inherits="Hamla.Masouma_Program" %> problem is that it can not load the code under inherits. The page is working fine in the programming mode, but once I put in http://stackoverflow.com/questions/22179854/parser-error-message-could-not-load-type-the-file-of-the-master-page inetpub/wwwroot/ it does not work and gives this error. Can you please help me to fix this error. BR// c# asp.net master-pages share|improve this question edited Mar 4 '14 at 18:36 Brian Mains 39.3k2699205 asked Mar 4 '14 at 18:21 user2103335 7418 Did you build and publish the site? How is it getting to inetpub/wwwroot? –Rick S Mar 4 '14 at 18:34 No, I did not publish the site. I directly put it in the inetpub/wwwroot. Do I need to publish it? –user2103335 Mar 4 '14 at 20:35 add a comment| 2 Answers 2 active oldest votes up vote 3 down vote Read up on publishing ASP.NET websites. You're not putting the compiled version of your site in wwwroot, that's why you are getting that error. http://msdn.microsoft.com/en-us/library/1y1404zt(v=vs.90).aspx share|improve this answer answered Mar 4 '14 at 20:38 Rick S 3,69041228 Dear bro, I have published the web site. Now, what to do? How to use it after the publish as there is not setup file. –user2103335 Mar 5 '14 at 8:38 add a comment| up vote -1 down vote I had the same issue to after making some modifications on my proj. and now its online again; Instead of change the CodeBehind to CodeFile on your file.aspx, check Inherits; On Inherits field: Inherits="yourproject.yourfolder.yourfile" one of my conf. file for ex: Page Title="" Language="C#" MasterPageFile="~/Site.Master
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 http://forums.asp.net/t/1433207.aspx?Parser+Error+could+not+load+type+masterpage Thread › 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 could not parser error related to 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 could not load to work. I get a 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