Welcome to WebmasterWorld Guest from 34.236.145.124

Forum Moderators: ocean10000

Message Too Old, No Replies

Team Foundation Server Migration Problem

     
4:04 pm on Jul 28, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 10, 2008
posts: 1130
votes: 0


I have a web site that I am trying to migrate out of Team Foundation Server. How I have done this is by creating an exact file structure of the project and then pasting in code to the corresponding files. The problem is, when I run the project I get this error.

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?

4:24 pm on July 28, 2009 (gmt 0)

Administrator

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month

joined:Jan 14, 2004
posts:864
votes: 3


Are you working in "Web Application Mode"? If you are you have to recompile the site before it will work, since the binary's will not be there yet.
4:44 pm on July 28, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 10, 2008
posts: 1130
votes: 0


How do I know if I am working in web application mode. I tried building the site and the build works fine.
3:22 pm on July 30, 2009 (gmt 0)

Administrator

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month

joined:Jan 14, 2004
posts:864
votes: 3


In visual Studio 2008 & 2005, there are two ways to develop a website. 1)Web Application project, 2)Web Site project.

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.