Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Database Connection Problem?

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  Publishing a web  
Author Message
youhadtoask

External


Since: Sep 09, 2003
Posts: 1



(Msg. 1) Posted: Tue Sep 09, 2003 3:47 pm
Post subject: Database Connection Problem?
Archived from groups: microsoft>public>inetserver>iis (more info?)

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

 >> Stay informed about: Database Connection Problem? 
Back to top
Login to vote
qbernard

External


Since: Sep 05, 2003
Posts: 407



(Msg. 2) Posted: Wed Sep 10, 2003 1:35 pm
Post subject: Re: Database Connection Problem? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You will get better response if you post it to aspnet group.

--
Regards,
Bernard Cheah
<a style='text-decoration: underline;' href="http://support.microsoft.com/" target="_blank">http://support.microsoft.com/</a>
Please respond to newsgroups only ...


"Dirk-Thomas Brown" <youhadtoask.TakeThisOut@hotmail.com> wrote in message
news:OTwOFtwdDHA.1448@TK2MSFTNGP12.phx.gbl...
 > 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
 >
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Database Connection Problem? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
IIS 5 connection actively refused problem - I suprisingly found this error message this morning when trying to connect REMOTELY to my web servers: "the server actively refused the connection" (it works locally fine) when I go to the IIS Management, I found on the Security tab that the b...

IIS Path for Access Database. - Hello, How do I setup the path in IIS for an Access Database. Thanks. Mario.

PLEASE HELP! connection refused - Hello I have a nt4 server, using IIS4 over 3 ip's, hosting about 1000 sites. A few days ago I started getting a "connection refused" message on port 80, intermittently, on the first ip. I get the error, a while after everything works fine, a ...

IIS 5 (SP4) stalls with too many connections - IIS 5 running on Windows 2k with SP4 seems to stall when concurrent connections reaches a high enough level. This problem started after installing SP4. This server is running for a small to medium-sized eCommerce firm. I have already searched the..

ASP Appn: ADODB.Connection Is OK on XP#1, Fails on XP#2 - Hope you guys can suggest where to start looking. I've loaded subject app on a new XP notebook, gotten IIS's dirs and ODBC defined OK - AFAIK. The new XP is at SP#1 with 282010, the old XP isn't. The problem is that I can't get past the first..
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]