I have a working project website in visual studio. I can view all pages without problems.
Now I copied 2 files from another web application project. I have: search.aspx search.aspx.vb
source fragment of search.aspx file
<%@ Page EnableViewState="true" EnableEventValidation="false" MetaDescription="<%$Resources:metadescription%>" Title="<%$Resources:pagetitle %>" Language="VB" MasterPageFile="~/main.master" AutoEventWireup="false" Inherits="search" Codebehind="search.aspx.vb" %>
<%@ MasterType VirtualPath="~/main.master" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
search.aspx.vb source fragment
Imports System
Imports System.Net
Imports System.IO
Imports GlobalFunctions
Imports System.Xml
Imports System.Collections.Generic
Imports System.Collections
Imports System.Linq
Imports System.Resources
Imports generalMethods
Imports System.Globalization
Partial Class search
Inherits System.Web.UI.Page
But when I try to request the page: www.test.com/search.aspx, I get this error: Description. An error occurred while analyzing the resource needed to service this request. Review the following parsing error details and modify the source file accordingly.
Parser error message: Failed to load search type.
Source Error:
Line 1: <%@ Page EnableViewState="true" EnableEventValidation="false" MetaDescription="<%$Resources:metadescription%>" Title="<%$Resources:pagetitle %>" Language="VB" MasterPageFile="~/main.master" AutoEventWireup="false" Inherits="search" Codebehind="search.aspx.vb" %>
Line 2:
Line 3: <%@ MasterType VirtualPath="~/main.master" %>
Source File: /search.aspx Line: 1
, : "".
, .