Database Connection Error

D

Dirk-Thomas Brown

Have a web (database front end) running on a member 2000 server. The backend
to the database is on the domain server. Both same network. When accessing
the default.aspx I get the page we want, you then need to logon and give the
password (maintained by the access database). I get errors see below. The
web.config file has the proper unc to the backend. I have created a virtual
dir within the site still same error. Any clues? What am I doing wrong?

BTW: If I place the backend locally in the same dir as the web and adjust
the web.config file all is well.

TIA
Dirk-Thomas

Server Error in '/dciw' Application.
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set
to an instance of an object.

Source Error:

Line 25: If Page.IsValid Then
Line 26: Dim ds As DataSet = db.GetData("SELECT UserID FROM Users
WHERE Username='" & username.text & "' AND Password='" & password.text &
"'")
Line 27: Dim dv As DataView = ds.Tables(0).DefaultView
Line 28: Dim i as integer
Line 29:

Source File: C:\Inetpub\wwwroot\dciw\Default.aspx Line: 27

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an
object.]
ASP.Default_aspx.Login_Click(Object Sender, EventArgs E) in
C:\Inetpub\wwwroot\dciw\Default.aspx:27
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108

System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePo
stBackEvent(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

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,610
Members
45,254
Latest member
Top Crypto TwitterChannel

Latest Threads

Top