PC Review


Reply
Thread Tools Rate Thread

connection question

 
 
Mike
Guest
Posts: n/a
 
      24th Jun 2005
I'm getting an error while running an aspx page on a production server.

The error is that either the server can not be found or the access is
denied.

The following code fails at line 36.
Line 34: str = "Driver={SQL
Server};server=sallyserver;database=school;uid=www_intra;pwd=www_intra"
Line 35: C.ConnectionString = str
Line 36: C.Open()
Line 37: Dim R As New ADODB.Recordset

Other aspx pages that don't talk to the data server run correctly.

The same page run on the development PC (WinXp Pro) connects and dispays the
data correctly. (SQL server is on another box)

If I alter the code to run in an Access 2000 database on the same production
server, it runs correctly.

Thus I'm not sure how to go about getting this up and running.

Any thoughts would be appreciated.

Cheers

Mike


 
Reply With Quote
 
 
 
 
Mike
Guest
Posts: n/a
 
      24th Jun 2005
I should have added that in the development system the data is on an SQL
server, and in the production environment it is MSDE.

"Mike" <(E-Mail Removed)> wrote in message news:42bb556e$(E-Mail Removed)...
> I'm getting an error while running an aspx page on a production server.
>
> The error is that either the server can not be found or the access is
> denied.
>
> The following code fails at line 36.
> Line 34: str = "Driver={SQL
> Server};server=sallyserver;database=school;uid=www_intra;pwd=www_intra"
> Line 35: C.ConnectionString = str
> Line 36: C.Open()
> Line 37: Dim R As New ADODB.Recordset
>
> Other aspx pages that don't talk to the data server run correctly.
>
> The same page run on the development PC (WinXp Pro) connects and dispays
> the data correctly. (SQL server is on another box)
>
> If I alter the code to run in an Access 2000 database on the same
> production server, it runs correctly.
>
> Thus I'm not sure how to go about getting this up and running.
>
> Any thoughts would be appreciated.
>
> Cheers
>
> Mike
>



 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      24th Jun 2005
Mike,

Although this is not really a ADONET question more a DATA question for which
is a seperate dotnet newsgroup. Can this in the way you describe it in my
opinion only be in that user on your SQL server or/and his password.

Cor


 
Reply With Quote
 
Mike
Guest
Posts: n/a
 
      24th Jun 2005
Thanks Cor,

I guess that the key is that I'm not sure where to start, and thus this may
be in the wrong group.

Thanks for the pointer.

Cheers,

Mike
"Cor Ligthert" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Mike,
>
> Although this is not really a ADONET question more a DATA question for
> which is a seperate dotnet newsgroup. Can this in the way you describe it
> in my opinion only be in that user on your SQL server or/and his password.
>
> Cor
>



 
Reply With Quote
 
Paul Clement
Guest
Posts: n/a
 
      24th Jun 2005
On Fri, 24 Jun 2005 08:30:03 +0800, "Mike" <(E-Mail Removed)> wrote:

¤ I'm getting an error while running an aspx page on a production server.
¤
¤ The error is that either the server can not be found or the access is
¤ denied.
¤
¤ The following code fails at line 36.
¤ Line 34: str = "Driver={SQL
¤ Server};server=sallyserver;database=school;uid=www_intra;pwd=www_intra"
¤ Line 35: C.ConnectionString = str
¤ Line 36: C.Open()
¤ Line 37: Dim R As New ADODB.Recordset
¤
¤ Other aspx pages that don't talk to the data server run correctly.
¤
¤ The same page run on the development PC (WinXp Pro) connects and dispays the
¤ data correctly. (SQL server is on another box)
¤
¤ If I alter the code to run in an Access 2000 database on the same production
¤ server, it runs correctly.
¤
¤ Thus I'm not sure how to go about getting this up and running.
¤
¤ Any thoughts would be appreciated.

See if the following helps:

http://support.microsoft.com/default...b;en-us;328306


Paul
~~~~
Microsoft MVP (Visual Basic)
 
Reply With Quote
 
Mike
Guest
Posts: n/a
 
      25th Jun 2005
Thanks Paul.

I've been doing some more checking, and it appears as though it may be an
IIS issue, as I redid the pages to connect to an Access database, and I was
getting a similar error.

Does that make sense?

Cheers,

Mike
"Paul Clement" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Fri, 24 Jun 2005 08:30:03 +0800, "Mike" <(E-Mail Removed)> wrote:
>
> ¤ I'm getting an error while running an aspx page on a production server.
> ¤
> ¤ The error is that either the server can not be found or the access is
> ¤ denied.
> ¤
> ¤ The following code fails at line 36.
> ¤ Line 34: str = "Driver={SQL
> ¤ Server};server=sallyserver;database=school;uid=www_intra;pwd=www_intra"
> ¤ Line 35: C.ConnectionString = str
> ¤ Line 36: C.Open()
> ¤ Line 37: Dim R As New ADODB.Recordset
> ¤
> ¤ Other aspx pages that don't talk to the data server run correctly.
> ¤
> ¤ The same page run on the development PC (WinXp Pro) connects and dispays
> the
> ¤ data correctly. (SQL server is on another box)
> ¤
> ¤ If I alter the code to run in an Access 2000 database on the same
> production
> ¤ server, it runs correctly.
> ¤
> ¤ Thus I'm not sure how to go about getting this up and running.
> ¤
> ¤ Any thoughts would be appreciated.
>
> See if the following helps:
>
> http://support.microsoft.com/default...b;en-us;328306
>
>
> Paul
> ~~~~
> Microsoft MVP (Visual Basic)



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VPN connection question John Windows XP Work Remotely 0 5th Dec 2007 08:50 PM
Internet connection share/view wireless connection question Jim Marshall Windows XP Networking 3 12th Feb 2006 10:09 PM
Internet Connection Sharing and Internet Connection Firewall question Gary Windows XP Networking 2 6th Nov 2003 12:37 AM
Internet Connection Sharing and Internet Connection Firewall question Gary Windows XP Embedded 3 4th Nov 2003 04:16 PM
Internet Connection Sharing and Internet Connection Firewall question Gary Windows XP Security 0 3rd Nov 2003 11:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:20 PM.