473,395 Members | 1,975 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,395 software developers and data experts.

can't reference page anymore?

howdy,

using the postbackurl of a button to send data to another page. This script
was working fine but now blamo
Server Error in '/newcartApplication.
--------------------------------------------------------------------------------

Unable to cast object of type 'ASP.productdetail_aspx' to type
'productdetail'.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.InvalidCastException: Unable to cast object of
type 'ASP.productdetail_aspx' to type 'productdetail'.

Source Error:

Line 37: Else
Line 38: Dim prev As New productdetail
Line 39: prev = CType(Page.PreviousPage, productdetail)
Line 40: partno = prev.PartNo
Line 41: name = prev.Name

Source File: c:\inetpub\wwwroot\newcart\addtobag.aspx.vb Line: 39
In the code-behind, the productdetail is underline blue and reporting type
'productdetail' is not defined. When I go to that page, in the ASPX file,
the <%@ Page ... %is underlined blue reporting type
ASP.common_user_control.ascx is not defined. So its complaining about my
user controls, I checked them out and they all appear to be fine, and again,
I didnt touch these files. When I compile my project I get a few errors
pertaining to the above and "Error 1 could not find library
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\newcart\bea62603\9c73a00a\App_Web_pr6xm09i.d ll' vbc : Command line
"
Any ideas?

I'm going to bed, 2AM EST.... Thanks!!

--
David Lozzi
dlozzi@(remove)delphi-ts.com
www.delphi-ts.com

Jul 20 '06 #1
1 1105
David,
Try deleting the temporay files for you application in
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files

you'll need to close your devenv and seeing that your runing through IIS
stop IIS or kill the aspnet process to release any locks on the temp files.

Bring up the devenv and recompile your web site.

I find that this correct many strange issues that I have during development,
I think its something to do with the temp files getting out of sync. You can
also try the 'Clean Solution' option before rebuilding.

Garth.

"David Lozzi" wrote:
howdy,

using the postbackurl of a button to send data to another page. This script
was working fine but now blamo
Server Error in '/newcartApplication.
--------------------------------------------------------------------------------

Unable to cast object of type 'ASP.productdetail_aspx' to type
'productdetail'.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.InvalidCastException: Unable to cast object of
type 'ASP.productdetail_aspx' to type 'productdetail'.

Source Error:

Line 37: Else
Line 38: Dim prev As New productdetail
Line 39: prev = CType(Page.PreviousPage, productdetail)
Line 40: partno = prev.PartNo
Line 41: name = prev.Name

Source File: c:\inetpub\wwwroot\newcart\addtobag.aspx.vb Line: 39
In the code-behind, the productdetail is underline blue and reporting type
'productdetail' is not defined. When I go to that page, in the ASPX file,
the <%@ Page ... %is underlined blue reporting type
ASP.common_user_control.ascx is not defined. So its complaining about my
user controls, I checked them out and they all appear to be fine, and again,
I didnt touch these files. When I compile my project I get a few errors
pertaining to the above and "Error 1 could not find library
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\newcart\bea62603\9c73a00a\App_Web_pr6xm09i.d ll' vbc : Command line
"
Any ideas?

I'm going to bed, 2AM EST.... Thanks!!

--
David Lozzi
dlozzi@(remove)delphi-ts.com
www.delphi-ts.com

Jul 20 '06 #2

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

Similar topics

33
by: LRW | last post by:
http://gto.ie-studios.net/index.php When you view the above site in IE, if the 1st of the three product images is tall enough to push the cell down a couple of pixels, IE somehow doesn't show...
2
by: Wayne Wengert | last post by:
I built a project in VSNET 2003 and it initially named the first form "WebForm1". I changed the name of the form to "Eval1" but when I look at the HTML code I see that it still shows WebForm1 in...
0
by: Friso Wiskerke | last post by:
Hi all, Instead of placing the Javascript in an page we've put the script in a separate .js file and reference it from the page where it's being used using a <script language="js"...
4
by: BusEdge | last post by:
Hi all. I apologize if this has been asked/answered already, I couldn't find any info. In 1.1, my standard web application structure includes a front end website, and a management site (or...
4
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How can I access the client-side filesystem?...
35
by: Chris | last post by:
Hi, I tried to create a class which must change the propety 'visible' of a <linktag in the masterpage into 'false' when the user is logged. But i get the error: "Object reference not set to an...
9
by: =?Utf-8?B?RnJpdHo=?= | last post by:
Hi all, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: ======= The...
22
by: clicwar | last post by:
A simple program with operator overloading and copy constructor: #include <iostream> #include <string> using namespace std; class Vector { private: float x,y; public: Vector(float u, float...
9
by: Matthew Wells | last post by:
OK, I've narrowed down the problem. This works when in the aspx page <script type="text/javascript" > function btnFirst_Click() { alert("Hello");...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.