Parser Error In Vb.net
ASP.NET Community Standup Forums Help Home/ASP.NET Forums/General ASP.NET/Web Forms/Parse Error in VB.NET application Parse Error in VB.NET application [Answered]RSS 8 replies Last post May 16, 2012 12:04 AM by sriramabi ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Support Options Advanced Search Related Links GuidanceSamplesVideos Reply frndz293 Member 11 Points 30 Posts Parse Error in VB.NET application May 14, 2012 08:35 AM|frndz293|LINK Hi All, Im getting parse error when i execute the belwo code. My error is Parser Error Message: Could not load type 'MonthEnd.frmMonthEnd'. Source Error: Line 1: <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="MonthEnd.aspx.vb" Inherits="MonthEnd.frmMonthEnd" %> code behind: <% @ Page Language="vb" AutoEventWireup="false" CodeBehind="MonthEnd.aspx.vb" Inherits="MonthEnd.frmMonthEnd" %> Aspx.VB Page: Public Class frmDisclosure Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load End Sub Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click End Sub Class Kindly suggest how to proceed with this. Thanks Reply tusharrs Participant 1953 Points 646 Posts Re: Parse Error in VB.NET application May 14, 2012 08:37 AM|tusharrs|LINK try this @Page Language="vb" AutoEventWireup="false" CodeBehind="MonthEnd.aspx.vb" Inherits="frmDisclosure" %> Regards ( ) View my Blog Reply adeelehsan Star 14742 Points 3106 Posts Re: Parse Error in VB.NET application May 14, 2012 08:39 AM|adeelehsan|LINK Change the Inherits attributes like the following: <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="MonthEnd.aspx.vb" Inherits="MonthEnd.frmDisclosure" %> Please Mark As Answer if it helped. MCSD[ASP.NET 4.5, SharePoint 2013], MCTS [WSS 3.0, MOSS 2007, SharePoint 2010], MCT Microsoft Community Contributor Award 2011 Reply frndz293 Member 11 Points 30 Posts Re: Parse Error in VB.NET application May 14, 2012 08:39 AM|frndz293|LINK Not working friend. Tried that also...and my code is in VS2008, 3.5 framework Reply frndz293 Member 11 Points 30 Posts Re: Parse Error in VB.NET application May 14, 2012 08:5
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 developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges 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 minute: Sign up Parser Error Message: Could not load type 'TestMvcApplication.MvcApplication' up vote 144 down vote favorite 30 I am getting the following http://forums.asp.net/t/1803467.aspx?Parse+Error+in+VB+NET+application error on one of our production servers. Not sure why it is 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 http://stackoverflow.com/questions/1598829/parser-error-message-could-not-load-type-testmvcapplication-mvcapplication if anybody came across this error before and how it was solved, but I have reached the end. 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 56.2k49187272 asked Oct 21 '09 at 5:07 Riaan Engelbrecht 814277 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. –RickAndMSFT 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 150 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
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 http://stackoverflow.com/questions/25050246/parser-error-while-debugging-new-asp-net-webform more about Stack Overflow the company Business Learn more about hiring developers or http://www.codeproject.com/Questions/376141/Parser-error-Could-not-load-type posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges 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 minute: Sign up Parser Error while debugging new ASP.NET webform up vote parser error 0 down vote favorite I created a new webform using "ADD NEW ITEM" icon in ASP.NET. I literally haven't added anything on its mark-up and code-behind yet but whenever I try to debug it (or view it in browser), I get a PARSER Error. All other webforms in the project works perfectly fine except for this new webform. I tried checking if DLLs are in the /BIN directory parser error in (and they are). I haven't yet deployed this (I am not yet permitted to do so), so I'm not comfortable using the IIS Manager yet. Please advice. Thanks and Regards. Update: This is the vb code behind: Public Partial Class Real_Time Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load End Sub End Class And the mark-up: <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Real_Time.aspx.vb" Inherits="Real_Time_PEN.Real_Time" %>