Forum Moderators: open
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 'CalendarView'.
Source Error:
Line 1: <%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/ClickableCommunity.Master" CodeBehind="CalendarView.aspx.vb" Inherits="CalendarView"
Line 2: title="Untitled Page" %>
Line 3:
Source File: /ClickableCommunity/CalendarView.aspx Line: 1
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
Now that line in my aspx file looks like this
<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/ClickableCommunity.Master" CodeBehind="CalendarView.aspx.vb" Inherits="CalendarView"
title="Untitled Page" %>
My Vb code behind looks like this
Imports System.Data.SqlClient
Imports Telerik.Web.UI
Partial Public Class CalendarView
Inherits System.Web.UI.Page
Dim listCalendarEvents As IList(Of calendarItem)
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End Sub
Protected Sub loadEntityEvents()
Dim myTree As RadTreeView
Dim myTreeNode As RadTreeNode
myTree = Me.Master.FindControl("RadTreeView1")
If Not Page.IsPostBack Then
myTree.DataBind()
End If
For Each myTreeNode In myTree.Nodes
If myTreeNode.Checked Then
'addMarkerToCollection(myTreeNode.Value(), 0)
End If
For Each childNode As RadTreeNode In myTreeNode.Nodes
If childNode.Checked Then
'addMarkerToCollection(childNode.Value(), 0)
End If
Next
Next
End Sub
End Class
I can't help but think it is because I moved this project from TFS. Any ideas?
In Web Application Mode (Web Application project) the website cs files are compiled into one dll for the project. (This was the original Project type supported by Visual studio for web applications.)
If the website cs files are in "app_code" its more likely a "Web Site project" which will rebuild the files in individual dlls as needed.