Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 6th, 2005, 04:09 AM
Registered User
 
Join Date: Sep 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Roomee Send a message via Yahoo to Roomee
Default where 2 define IBuyAdventure.CartDB

Below is the error I've recieved in IBuyApplication Chap24 ..
I have VS2003, I ve Rebuild it several times.
i don't know where to define CartDB [IBuyAdventure.CartDB]
 

PLease do me a favour..

Thanks in advance



Server Error in '/IBuyAdventure' Application.
--------------------------------------------------------------------------------

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30002: Type 'IBuyAdventure.CartDB' is not defined.

Source Error:



Line 25:
Line 26: If Context.User.Identity.Name <> "" Then
Line 27: Dim cart As New IBuyAdventure.CartDB(ConfigurationSettings.AppSett ings("connectionString"))
Line 28: cart.ResetShoppingCart(GetCustomerID())
Line 29: FormsAuthentication.SignOut()


Source File: c:\inetpub\wwwroot\IBuyAdventure\UserControl\Heade r.ascx Line: 27



Show Detailed Compiler Output:


C:\WINDOWS\system32> "c:\windows\microsoft.net\framework\v1.1.4322\vbc. exe" /t:library /utf8output /R:"c:\windows\microsoft.net\framework\v1.1.4322\te mporary asp.net files\ibuyadventure\5a586b44\ce562547\ngzcnlvf.dll " /R:"c:\windows\assembly\gac\system.enterpriseservic es\1.0.5000.0__b03f5f7f11d50a3a\system.enterprises ervices.dll" /R:"c:\windows\assembly\gac\system.data\1.0.5000.0_ _b77a5c561934e089\system.data.dll" /R:"c:\windows\assembly\gac\system.web.mobile\1.0.5 000.0__b03f5f7f11d50a3a\system.web.mobile.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\te mporary asp.net files\ibuyadventure\5a586b44\ce562547\assembly\dl2 \62cf9503\859e7d0f_bbb2c501\ibuyadventure.dll" /R:"c:\windows\assembly\gac\system.drawing\1.0.5000 .0__b03f5f7f11d50a3a\system.drawing.dll" /R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__ b77a5c561934e089\system.xml.dll" /R:"c:\windows\assembly\gac\system.web.services\1.0 .5000.0__b03f5f7f11d50a3a\system.web.services.dll" /R:"c:\windows\assembly\gac\system.web\1.0.5000.0__ b03f5f7f11d50a3a\system.web.dll" /R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a 5c561934e089\system.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\ Temporary ASP.NET Files\ibuyadventure\5a586b44\ce562547\xw86xgc8.dll " /D:DEBUG=1 /debug+ /win32resource:"C:\WINDOWS\Microsoft.NET\Framework\ v1.1.4322\Temporary ASP.NET Files\ibuyadventure\5a586b44\ce562547\xw86xgc8.res " "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET Files\ibuyadventure\5a586b44\ce562547\xw86xgc8.0.v b"


Microsoft (R) Visual Basic .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322.573
Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.

c:\inetpub\wwwroot\IBuyAdventure\UserControl\Heade r.ascx(27) : error BC30002: Type 'IBuyAdventure.CartDB' is not defined.

         Dim cart As New IBuyAdventure.CartDB(ConfigurationSettings.AppSett ings("connectionString"))
                         ~~~~~~~~~~~~~~~~~~~~





Show Complete Compilation Source:


Line 1: '------------------------------------------------------------------------------
Line 2: ' <autogenerated>
Line 3: ' This code was generated by a tool.
Line 4: ' Runtime Version: 1.1.4322.573
Line 5: '
Line 6: ' Changes to this file may cause incorrect behavior and will be lost if
Line 7: ' the code is regenerated.
Line 8: ' </autogenerated>
Line 9: '------------------------------------------------------------------------------
Line 10:
Line 11: Option Strict Off
Line 12: Option Explicit On
Line 13:
Line 14: Imports ASP
Line 15: Imports Microsoft.VisualBasic
Line 16: Imports System
Line 17: Imports System.Collections
Line 18: Imports System.Collections.Specialized
Line 19: Imports System.Configuration
Line 20: Imports System.Text
Line 21: Imports System.Text.RegularExpressions
Line 22: Imports System.Web
Line 23: Imports System.Web.Caching
Line 24: Imports System.Web.Security
Line 25: Imports System.Web.SessionState
Line 26: Imports System.Web.UI
Line 27: Imports System.Web.UI.HtmlControls
Line 28: Imports System.Web.UI.WebControls
Line 29:
Line 30: Namespace ASP
Line 31:
Line 32: <System.Runtime.CompilerServices.CompilerGlobalSco peAttribute()> _
Line 33: Public Class header_ascx
Line 34: Inherits System.Web.UI.UserControl
Line 35:
Line 36: Private Shared __autoHandlers As Integer
Line 37:
Line 38:
Line 39: #ExternalSource("c:\inetpub\wwwroot\IBuyAdventure\ UserControl\Header.ascx",80)
Line 40: Protected signInOutMsg As System.Web.UI.WebControls.LinkButton
Line 41:
Line 42: #End ExternalSource
Line 43:
Line 44: Private Shared __initialized As Boolean = false
Line 45:
Line 46: Private Shared __stringResource As Object
Line 47:
Line 48:
Line 49: #ExternalSource("c:\inetpub\wwwroot\IBuyAdventure\ UserControl\Header.ascx",4)
Line 50:
Line 51:
Line 52: Sub Page_Load(sender As Object, e As EventArgs)
Line 53: updateSignInOutMessage()
Line 54: End Sub
Line 55:
Line 56: Private Function GetCustomerID() As String
Line 57:
Line 58: If Context.User.Identity.Name <> "" Then
Line 59: Return Context.User.Identity.Name
Line 60: Else
Line 61: If Session("AnonUID") = "" Then
Line 62: Session("AnonUID") = Guid.NewGuid()
Line 63: End If
Line 64: Return Session("AnonUID").ToString()
Line 65: End If
Line 66:
Line 67: End Function
Line 68:
Line 69:
Line 70: Private Sub SignInOut(sender As Object, e As EventArgs)
Line 71:
Line 72: If Context.User.Identity.Name <> "" Then
Line 73: Dim cart As New IBuyAdventure.CartDB(ConfigurationSettings.AppSett ings("connectionString"))
Line 74: cart.ResetShoppingCart(GetCustomerID())
Line 75: FormsAuthentication.SignOut()
Line 76: Response.Redirect("/IBuyAdventure/default.aspx")
Line 77: Else
Line 78: Response.Redirect("/IBuyAdventure/login.aspx")
Line 79: End If
Line 80: End Sub
Line 81:
Line 82: Private Sub updateSignInOutMessage()
Line 83:
Line 84: If Context.User.Identity.Name <> "" Then
Line 85: signInOutMsg.Text = "Sign Out (" & Context.User.Identity.Name & ")"
Line 86: Else
Line 87: signInOutMsg.Text = "Sign In / Register"
Line 88: End If
Line 89:
Line 90: End Sub
Line 91:
Line 92:
Line 93: #End ExternalSource
Line 94:
Line 95: Public Sub New()
Line 96: MyBase.New
Line 97: If (ASP.header_ascx.__initialized = false) Then
Line 98: ASP.header_ascx.__stringResource = System.Web.UI.TemplateControl.ReadStringResource(G etType(ASP.header_ascx))
Line 99: ASP.header_ascx.__initialized = true
Line 100: End If
Line 101: End Sub
Line 102:
Line 103: Protected Overrides Property AutoHandlers As Integer
Line 104: Get
Line 105: Return ASP.header_ascx.__autoHandlers
Line 106: End Get
Line 107: Set
Line 108: ASP.header_ascx.__autoHandlers = value
Line 109: End Set
Line 110: End Property
Line 111:
Line 112: Protected ReadOnly Property ApplicationInstance As ASP.Global_asax
Line 113: Get
Line 114: Return CType(Me.Context.ApplicationInstance,ASP.Global_as ax)
Line 115: End Get
Line 116: End Property
Line 117:
Line 118: Public Overrides ReadOnly Property TemplateSourceDirectory As String
Line 119: Get
Line 120: Return "/IBuyAdventure/UserControl"
Line 121: End Get
Line 122: End Property
Line 123:
Line 124: Private Function __BuildControlsignInOutMsg() As System.Web.UI.Control
Line 125: Dim __ctrl As System.Web.UI.WebControls.LinkButton
Line 126:
Line 127: #ExternalSource("c:\inetpub\wwwroot\IBuyAdventure\ UserControl\Header.ascx",80)
Line 128: __ctrl = New System.Web.UI.WebControls.LinkButton
Line 129:
Line 130: #End ExternalSource
Line 131: Me.signInOutMsg = __ctrl
Line 132:
Line 133: #ExternalSource("c:\inetpub\wwwroot\IBuyAdventure\ UserControl\Header.ascx",80)
Line 134: CType(__ctrl,System.Web.UI.IAttributeAccessor).Set Attribute("style", "font: 8pt verdana")
Line 135:
Line 136: #End ExternalSource
Line 137:
Line 138: #ExternalSource("c:\inetpub\wwwroot\IBuyAdventure\ UserControl\Header.ascx",80)
Line 139: __ctrl.ID = "signInOutMsg"
Line 140:
Line 141: #End ExternalSource
Line 142:
Line 143: #ExternalSource("c:\inetpub\wwwroot\IBuyAdventure\ UserControl\Header.ascx",80)
Line 144: AddHandler __ctrl.Click, AddressOf Me.SignInOut
Line 145:
Line 146: #End ExternalSource
Line 147: Return __ctrl
Line 148: End Function
Line 149:
Line 150: Private Sub __BuildControlTree(ByVal __ctrl As System.Web.UI.Control)
Line 151: Dim __parser As System.Web.UI.IParserAccessor = CType(__ctrl,System.Web.UI.IParserAccessor)
Line 152:
Line 153: #ExternalSource("c:\inetpub\wwwroot\IBuyAdventure\ UserControl\Header.ascx",1)
Line 154: __parser.AddParsedSubObject(Me.CreateResourceBased LiteralControl(0, 1028, true))
Line 155:
Line 156: #End ExternalSource
Line 157:
Line 158: #ExternalSource("c:\inetpub\wwwroot\IBuyAdventure\ UserControl\Header.ascx",1)
Line 159: Me.__BuildControlsignInOutMsg
Line 160:
Line 161: #End ExternalSource
Line 162:
Line 163: #ExternalSource("c:\inetpub\wwwroot\IBuyAdventure\ UserControl\Header.ascx",1)
Line 164: __parser.AddParsedSubObject(Me.signInOutMsg)
Line 165:
Line 166: #End ExternalSource
Line 167:
Line 168: #ExternalSource("c:\inetpub\wwwroot\IBuyAdventure\ UserControl\Header.ascx",1)
Line 169: __parser.AddParsedSubObject(New System.Web.UI.LiteralControl("</TD>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.Visu alBasic.ChrW(10)&" </TR>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.Visu alBasic.ChrW(10)&" <TR>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.Vis ualBasic.ChrW(10)&" <TD> "&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualB asic.ChrW(10)&" <IMG SRC=""/IBuyAdventure/images/spacer.G"& _
Line 170: "IF"" ALIGN=RIGHT WIDTH=100 ALT="""">"&Microsoft.VisualBasic.ChrW(13)&Microsof t.VisualBasic.ChrW(10)&" </TD>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.Visu alBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(13)&Mi crosoft.VisualBasic.ChrW(10)&" <TD COLSPAN=5>"&Microsoft.VisualBasic.ChrW(13)&Microso ft.VisualBasic.ChrW(10)&" "&Microsoft.VisualBasic.ChrW(13)&Microsoft.VisualB asic.ChrW(10)&" </TD>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.Visu alBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(13)&Mi crosoft.VisualBasic.ChrW(10)&" </TR>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.Visu alBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(13)&Mi crosoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic .ChrW(13)&Microsoft.VisualBasic.ChrW(10)&"</table>"&Microsoft.VisualBasic.ChrW(13)&Microsoft.V isualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(13) &Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBa sic.ChrW(13)&Microsoft.VisualBasic.ChrW(10)))
Line 172:
Line 173: #End ExternalSource
Line 174: End Sub
Line 175:
Line 176: Protected Overrides Sub FrameworkInitialize()
Line 177: SetStringResourcePointer(ASP.header_ascx.__stringR esource, 1028)
Line 178: Me.__BuildControlTree(Me)
Line 179: End Sub
Line 180: End Class
Line 181: End Namespace
Line 182:





--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

Roomee Panhwar





Similar Threads
Thread Thread Starter Forum Replies Last Post
IBuyAdventure Problem shivendra012 ASP.NET 1.x and 2.0 Application Design 0 September 30th, 2006 06:38 AM
IBuyAdventure URL? bachakhan General .NET 2 December 18th, 2004 10:03 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.