CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.commerce_starter_kit Tags:
Item Type: NewsGroup Date Entered: 4/25/2005 7:22:01 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 21 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
1 Items, 1 Pages 1 |< << Go >> >|
SAM
Asp.Net User
err :connection string property has not been initialized4/25/2005 7:22:01 AM

0/0

hi

i'm using the register.aspx just to enter data, and i'm not using the code for cookies so my code when preesing register button (note i'm using instead of customer , auther)

Sub Button1_Click(sender As Object, e As EventArgs)

' Only attempt a login if all form fields on the page are valid

  If Page.IsValid = True Then

' Add New Customer to CustomerDB database
  Dim accountSystem As ASPNET.StarterKit.Commerce.AutherregisterDB = New ASPNET.StarterKit.Commerce.AutherregisterDB()

 Dim Autherid_table as String = accountSystem.AddAuther(Name.Text, Email.Text, Password.Text)

 End If

End Sub
and i'm using same classess and declare connection string in webconfig localhost

but i'm getting the error message after filling the register form textboxes

The ConnectionString property has not been initialized.

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.InvalidOperationException: The ConnectionString property has not been initialized.

Source Error:

Line 15:     
Line 16:     
Line 17:       Dim Autherid_table as String = accountSystem.AddAuther(Name.Text, Email.Text, Password.Text)
Line 18:     
Line 19:     

Source File: E:\AbdCommerce\Autherregfrm.aspx    Line: 17

Stack Trace:

[InvalidOperationException: The ConnectionString property has not been initialized.]
   System.Data.SqlClient.SqlConnection.Open() +432
   ASPNET.StarterKit.Commerce.AutherregisterDB.AddAuther(String fullName, String email, String password) +380
   ASP.Autherregfrm_aspx.Button1_Click(Object sender, EventArgs e) in E:\AbdCommerce\Autherregfrm.aspx:17
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +83
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
   System.Web.UI.Page.ProcessRequestMain() +1277
 is there any idea for the cause??

thanks

1 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Proceedings, IEEE Compcon 97: San Jose, California, February 23-26, 1997 Authors: IEEE Computer Society, Institute of Electrical and Electronics Engineers, IEEE computer society, Pages: 342, Published: 1997

Web:
err :connection string property has not been initialized - ASP.NET ... err :connection string property has not been initialized. Last post 04-25-2005 3 :22 AM by SAM. 0 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
ExecuteReader: Connection property has not been initialized. - ASP ... ExecuteReader: Connection property has not been initialized. ... Also, please use parameters and not string concetenation to build your SQL ...
MSDN Visual Basic IDE The ConnectionString property has not been ... The ConnectionString property has not been initialized. (Error Msg) ... Please let me knw whether any extra code needs to be added or figure out the err. ...
TheMSsForum.com >> Dotnet >> The ConnectionString property has not ... Tag: The ConnectionString property has not been initialized Tag: 160221 .... EventArgs) Try Shell("eztilehorz.bat") Catch err As Exception MessageBox. ...
Analysis of the Class - Creating a Datagrid Class in classic ASP ... When the Class initializes we set our connection object and recordset .... Dim strOrderBySQL 'As String 'Detect if OrderBy property has been poulated. ...
Upgrade error and prescan.exe - The SharePoint Farmer's Almanac InvalidOperationException: the connectionstring property has not been initialized. at System.Data.SqlClient.SqlConnection.Open () ...
[RESOLVED] [2005] error retrieving data [Archive] - VBForums The ConnectionString property has not been initialized. ... strMess = Err. Description oCmd.Connection.Close() Return Nothing ...
Copyright (c) 1998 by Gefion software. * * Permission to use, copy ... + "Make sure db.properties is in the CLASSPATH"); return; } String logFile = dbProps. ...

* If no connection is available and the max number has been ...
Doc'XP - Windows Update 5 : Les erreurs Error Code, Dec Error Code, Error String, Description ...... 0x8024d004, - 2145071100, WU E SETUP NOT INITIALIZED, Setup has not been initialized correctly . ...
VSJ | Articles | Moving up the technology stack: VB6 migration ... By the way, the class has been renamed as UserInfo as ā€œCā€ prefix is not ... read connection string from configuration Private Const ConnectionString As ...





Search This Site:










loop through checkboxes to get selected items

exceptions not caught when debugging asp.net application

solpart menu - settings question - vertical menu

namespace not found?? oh it's there all right... very strange

minor technical difficulty with displaying a directory-info on the web

creating new websites from vb.net code

web user controls... really need some help please

where is dnn updates posted?

detecting iis default page

where's sourcesafe options in july ctp of studio?

control name and documentation

background-image

acls overwritten when merging files from vss2005

lots of help

how to use cookies with login controls and membership engine

info class from a stored proc

enterprise library question about storing connection string

postal address control or strategy

sending email with asp.net 2.0 into the domain network

could use some help with santry paypal ipn

file cleanup when session ends

preventing autologin with windows authentication

usercontrol.rendercontrol problem

dynamicially adding webpart problem

how to write my own passport application?

please reply to this problem

not impersonating

is the "discussions" module the same as "forum" module?

global search feature on master page

web.sitemap + navigation control

 
All Times Are GMT