G
Guest
I have an ASP.NET 2.0 application (in VB) based on the Personal Site Starter
kit that runs perfectly (no erros, no warnings, no exceptions) when run from
Visual Studio 2005 Team Suite using the development server VS contains. When
I publish it to a real server running Windows Server 2003, IIS 6, and .NET
Framework 2.0, I get strange compiler errors (even though the app was built
(to IL) on the development machine). All of the errors have to do with
either the @ Page directive or on an "Eval" or "Bind" operation with a
database table displayed in a Gridview. All of them claim that some field of
the @Page direction such as Title is not a member of the page or they claim
that "Eval" or "Bind" is not a member of the page class.
The weird thing is that if I refresh the page in the browser several times,
I always have some error, but the nature of the error may be different for
different refreshes. It will usually cycle back to the first error
eventually.
====================================================
Here is one such error that occurs frequently:
Compiler Error Message: BC30456: 'Title' is not a member of
'ASP.courses_4956aspnet_aspx'.
Source Error:
Line 1: <%@ page language="VB" masterpagefile="~/Default.master"
autoeventwireup="false" inherits="Courses_ASPNET,
App_Web_4956aspnet.aspx.9c22a962" title="Don Bailes | ASP.NET"
maintainscrollpositiononpostback="true" stylesheettheme="White" %>
Line 2:
Line 3: <asp:Content ID="Content1" runat="server"
ContentPlaceHolderID="Main">
=====================================================
Here is the @ Page directive from the actual page:
<%@ Page Language="VB"
MasterPageFile="~/Default.master"
AutoEventWireup="false"
CompilationMode="Auto"
CodeFile="4956ASPNET.aspx.vb"
Inherits="Courses_ASPNET"
Title="Don Bailes | ASP.NET"
MaintainScrollPositionOnPostback="true"%>
====================================================
Another frequent error is shown below:
Compiler Error Message: BC30456: 'Eval' is not a member of
'ASP.courses_4956aspnet_aspx'.
Source Error:
Line 83: <asp:TemplateField HeaderText="Link" SortExpression="Link">
Line 84: <EditItemTemplate>
Line 85: <asp:TextBox ID="TextBox1" runat="server"
Text='<%# Bind("Link")
%>'></asp:TextBox>
Line 86: </EditItemTemplate>
=====================================================
Again, there are no errors and no warnings and no exceptions when run from
VS2005 using the developer's server. There are no errors or other issues
when publishing to the real server. Almost every page exhibits some error
like the above, however, when one browses to site with a browser (IE6, IE7
beta 3, FireFox, Opera, etc.).
Any help or suggestions for where to look that you can offer would be most
welcome. I've not had any luck with MSDN, the KB, or any other resource so
far.
Thank you in advance - very much.
kit that runs perfectly (no erros, no warnings, no exceptions) when run from
Visual Studio 2005 Team Suite using the development server VS contains. When
I publish it to a real server running Windows Server 2003, IIS 6, and .NET
Framework 2.0, I get strange compiler errors (even though the app was built
(to IL) on the development machine). All of the errors have to do with
either the @ Page directive or on an "Eval" or "Bind" operation with a
database table displayed in a Gridview. All of them claim that some field of
the @Page direction such as Title is not a member of the page or they claim
that "Eval" or "Bind" is not a member of the page class.
The weird thing is that if I refresh the page in the browser several times,
I always have some error, but the nature of the error may be different for
different refreshes. It will usually cycle back to the first error
eventually.
====================================================
Here is one such error that occurs frequently:
Compiler Error Message: BC30456: 'Title' is not a member of
'ASP.courses_4956aspnet_aspx'.
Source Error:
Line 1: <%@ page language="VB" masterpagefile="~/Default.master"
autoeventwireup="false" inherits="Courses_ASPNET,
App_Web_4956aspnet.aspx.9c22a962" title="Don Bailes | ASP.NET"
maintainscrollpositiononpostback="true" stylesheettheme="White" %>
Line 2:
Line 3: <asp:Content ID="Content1" runat="server"
ContentPlaceHolderID="Main">
=====================================================
Here is the @ Page directive from the actual page:
<%@ Page Language="VB"
MasterPageFile="~/Default.master"
AutoEventWireup="false"
CompilationMode="Auto"
CodeFile="4956ASPNET.aspx.vb"
Inherits="Courses_ASPNET"
Title="Don Bailes | ASP.NET"
MaintainScrollPositionOnPostback="true"%>
====================================================
Another frequent error is shown below:
Compiler Error Message: BC30456: 'Eval' is not a member of
'ASP.courses_4956aspnet_aspx'.
Source Error:
Line 83: <asp:TemplateField HeaderText="Link" SortExpression="Link">
Line 84: <EditItemTemplate>
Line 85: <asp:TextBox ID="TextBox1" runat="server"
Text='<%# Bind("Link")
%>'></asp:TextBox>
Line 86: </EditItemTemplate>
=====================================================
Again, there are no errors and no warnings and no exceptions when run from
VS2005 using the developer's server. There are no errors or other issues
when publishing to the real server. Almost every page exhibits some error
like the above, however, when one browses to site with a browser (IE6, IE7
beta 3, FireFox, Opera, etc.).
Any help or suggestions for where to look that you can offer would be most
welcome. I've not had any luck with MSDN, the KB, or any other resource so
far.
Thank you in advance - very much.