473,387 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Error on deployment in ASP.NET 2.0

Don
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.

--
Don
Jul 11 '06 #1
3 2305
Me
Have you checked that :

1)You have the .net framework installed on the machine that youre
deploying to?
2)Your application is mapped under IIS to asp.net 2.0, to check this
right click your application in IIS and select proeprties. you will see
an asp.net tab, make sure you have the version of .net framework
selected
3)IIS serves up aspx pages written in .net 2.0 correctly
Don wrote:
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.

--
Don
Jul 12 '06 #2
Don
Thank you for the response. I have indeed checked the first two items you
mentioned. All seems well there - especially since on rare occasions one of
the pages will be displayed, error-free, but this is non-repeatable and
unpredictable. On nearly trivial sites without much programmer written code,
no database access, no master pages, etc., set up just to test something,
everything seems to work OK.

As far as item 3 on your list, it definitely seems there is a problem here
(unless there is another possibility I have not considered). How does one
determine the answer to your question other than by running into anomalies
like this one? What does one do to resolve the problem?

I should have noted that while the properties show that Net 2.0 is being
used for this site, the same server is still serving .net 1.1 sites that have
not been converted to .net 2.0. Is there a known issue with such situations?

Again, thank you for your response and your suggestions. I would appreciate
any further thoughts you may have.
--
Don
"Me" wrote:
Have you checked that :

1)You have the .net framework installed on the machine that youre
deploying to?
2)Your application is mapped under IIS to asp.net 2.0, to check this
right click your application in IIS and select proeprties. you will see
an asp.net tab, make sure you have the version of .net framework
selected
3)IIS serves up aspx pages written in .net 2.0 correctly
Don wrote:
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.

--
Don

Jul 12 '06 #3
Me
Hi

You can check whether asp.net pages are being served up correctly
simply by creating a page (call it test.aspx) and just placing a
response.write statement in it. However ensure that asp.net 2.0
framework is used to process this page.

If the page works, then asp.net framework is installed and working.
If it doesnt, then it sounds like you may have a problem with .net 2.0
framework. You may want to try a reinstall on this, (im not sure if you
can do a repair)

Im not fully understanding what you say about some sites saying 1.1
under IIS. From my understanding, asp,.net 1.1 and 2.0 can coexist
onthe same machine. However an application runs only under the context
of a single framework version and this is set under IIS

I hope this helps

Don wrote:
Thank you for the response. I have indeed checked the first two items you
mentioned. All seems well there - especially since on rare occasions one of
the pages will be displayed, error-free, but this is non-repeatable and
unpredictable. On nearly trivial sites without much programmer written code,
no database access, no master pages, etc., set up just to test something,
everything seems to work OK.

As far as item 3 on your list, it definitely seems there is a problem here
(unless there is another possibility I have not considered). How does one
determine the answer to your question other than by running into anomalies
like this one? What does one do to resolve the problem?

I should have noted that while the properties show that Net 2.0 is being
used for this site, the same server is still serving .net 1.1 sites that have
not been converted to .net 2.0. Is there a known issue with such situations?

Again, thank you for your response and your suggestions. I would appreciate
any further thoughts you may have.
--
Don
"Me" wrote:
Have you checked that :

1)You have the .net framework installed on the machine that youre
deploying to?
2)Your application is mapped under IIS to asp.net 2.0, to check this
right click your application in IIS and select proeprties. you will see
an asp.net tab, make sure you have the version of .net framework
selected
3)IIS serves up aspx pages written in .net 2.0 correctly
Don wrote:
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.
>
--
Don
Jul 12 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mart | last post by:
Hi, I have just written (my first) VB.net app using MS Visual Basic 2005 Express Edition Beta. It is fairly simple, it reads some configuration data from an XML file then opens a new window...
0
by: Uma | last post by:
Dear all, I have a problem while running a smart client application which was installed through CD-ROM. After installing the smart client setup the application is running properly. When running...
0
by: processendnow | last post by:
I have a vb.net form application, it works inside Visual Baisc Express Debugger, packages without errors or warning, and is publishable. Click on the setup.exe to install and it installs, but it...
6
by: Josef Brunner | last post by:
Hi, I published my application (VS 2005) and am now trying to install it when I get this error message. It worked before...even on a different machine. Here is the detailed description: ...
0
by: Marty Cruise | last post by:
I successfully deploy my application to 20 domain users. Only one new user is giving me a problem, although he can access all domain resources. When he clicks the installation link on the...
1
by: Chubbly Geezer | last post by:
I have an application that has previously been working correctly. However, having made some code changes today, the app still publishes correctly but when I try to run it I get the following...
8
by: Ryan | last post by:
I've created and deployed a VB.Net 2005 Application. I have it set as a FullTrust (ClickOnce) application. The install point is on a network server. I did not run into this issue at all while...
5
by: John | last post by:
Hi When I try to install a published app using a url like http://www.mydomain.com/publish.htm, it starts the download but then comes up with the eror given at the end below. I am installing the...
0
by: Tifer | last post by:
Hello, I am building my first .Net Application. The first couple of Publish and Installs I did went fine. But after a couple of builds, I get a modal dialogue box error every time upon trying...
2
by: kevinr | last post by:
Hi, I am brand new to VB, and I am trying to deploy Office 2007 on my network here at work. We used part of this script to do another deployment, and I have taken pieces and tried to edit for this...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.