A Parser Error Has Occurred Could Not Load Type
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 about hiring parser error could not load type inherits developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question
Parser Error Could Not Load Type Mvcapplication
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;
Parser Error Message: Could Not Load Type
it only takes a minute: Sign up Parser Error Message: Could not load type 'TestMvcApplication.MvcApplication' up vote 143 down vote favorite 30 I am getting the following error on one of our production servers. Not sure why it is
Parser Error Message Could Not Load Type '_default'
working on the DEV server? 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 'TestMvcApplication.MvcApplication'. Source Error: Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="TestMvcApplication.MvcApplication" Language="C#" %> Source File: /global.asax Line: 1 Not sure if anybody came across this error before and how it was solved, but I have reached the end. parser error message could not load type global Any help would be appreciated. I also need to mention that this is the published code, so all is compiled. Can there be something wrong with my compiler settings? .net asp.net-mvc share|improve this question edited Nov 28 '10 at 16:33 p.campbell 55.8k49186270 asked Oct 21 '09 at 5:07 Riaan Engelbrecht 809277 possible duplicate of Could not load type MvcApplication –Alexander Prokofyev Mar 17 '11 at 14:07 15 Exit Visual Studio & restart fixed it for me. –RickAnd - MSFT May 3 '13 at 18:05 delete global.asax file and add a new one, and you will be alright. –DotNetGeek Jul 8 '13 at 7:51 This happened to me when deploying a previously working application. Something in IIS (7) got into a bad state; resetting IIS fixed the problem. –BurnsBA Sep 21 at 12:34 add a comment| 38 Answers 38 active oldest votes 1 2 next up vote 147 down vote None of the other answers worked for me. I fixed my error by changing the web project's output path. I had had it set to bin\debug but the web project doesn't work unless the output path is set to simply "bin" share|improve this answer edited Jul 7 '15 at 19:25 Community♦ 1 answered Oct 13 '11 at 18:16 Brian Leeming 5,28131639 This was my problem, caused me so much grief because none of the other solutions here w
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 an error occurred during the parsing of a resource required to service this request asp net Learn more about Stack Overflow the company Business Learn more about hiring developers or could not load type inherits posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow what is parser error 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 Parser Error when deploy ASP.NET application up vote http://stackoverflow.com/questions/1598829/parser-error-message-could-not-load-type-testmvcapplication-mvcapplication 5 down vote favorite 1 I've finished simple asp.net web application project, compiled it, and try to test on local IIS. I've create virtual directory, map it with physical directory, then put all necessary files there, including bin folder with all .dll's In the project settings, build section, output path is bin\ So when i try to browse my app i got: Server Error in '/' Application. -------------------------------------------------------------------------------- http://stackoverflow.com/questions/14800550/parser-error-when-deploy-asp-net-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 'AmeriaTestTask.Default'. Source Error: Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="AmeriaTestTask.Default" %> Line 2: Line 3: <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajaxToolkit" %> Source File: /virtual/default.aspx Line: 1 Have read similar problem posts and solution was to set output path to bin\, but it is defalut for my project. asp.net parsing deployment share|improve this question asked Feb 10 '13 at 17:36 igorGIS 46331021 1 Parser errors tend to mean that your ASPX pages are not well formed. –Oded♦ Feb 10 '13 at 17:37 Thanks for reply. I've no warnings in VS2010 and from IDE project runs just fine. –igorGIS Feb 10 '13 at 17:40 It will. Did you load the page up in your local environment? (dev web server, IIS express or full IIS locally) –Oded♦ Feb 10 '13 at 17:41 Yes it is local enviroment, i've workstation Win7 x64 and IIS 7.5 installed –igorGIS Feb 10 '13 at 17:43 Look at the
ASP.NET Community Standup Forums Help Home/ASP.NET Forums/Community/Tips & Tricks/Tip: "Parser Error: Could not load type" Tip: "Parser Error: Could not load type" RSS 20 http://forums.asp.net/t/928924.aspx?Tip+Parser+Error+Could+not+load+type+ replies Last post Jul 23, 2010 11:21 AM by Gweeeto ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Support Options Advanced Search Reply bluekiwi Member 10 Points 316 Posts Tip: "Parser Error: Could not load type" Oct 16, 2005 08:21 AM|bluekiwi|LINK I hope this post can save someone hours parser error of frustration! If, in your application, you want to have subfolders and in those, .aspx pages, you will run into a parser error. On appearance, when you try to do this in Visual Studio there is no report of problems. VS lets you make the sub folder and create .aspx pages in it. Compilation goes smoothly as well. However, could not load when you try to open the .aspx page in the sub folder you get a parser error. How nice! According to http://www.eggheadcafe.com/forums/ForumPost.asp?ID=37901&INTID=6 it is not possible to have subfolders in an application where the content is .aspx files. The reason, seemingly, is that the code-behind file for the page in the subfolder is not compiled into the .dll that is made for the pages not in the subfolder. There can only be one "/bin" (and so one.dll) folder for a project. If you want to make an application where you have .aspx pages in sub folders, you need to make those .aspx pages as a seperate project. So, for each "folder", you would make a standalone project. When everything is compiled, by hand create the virtual folder(s) in IIS and copy the files (.aspx, .dll) into the respective folders. Enjoy Reply braingogglin... None 0 Points 1 Post Re: Tip: "Parser Error: Could not load type" Dec 13, 2005 01:56 AM|braingoggling|LINK Thanks for the solution Reply Blake05 Member 40 Points 482 Posts Re: Tip: "Parser Error