Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 8th, 2004, 03:47 PM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cairo, , Egypt.
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default can't connect to remote server

hi all,
i am using asp.net,
i was trying to connect to a new sqlserver but a return error msg returned "sql server does not exist or access denied", i transfer the program to the remote sqlserver server and it works fine, also i use the same connection string to connect to the remote sqlserver from my machine using vb.net(desktop application) and it works fine, so the problem here with asp.net, any help !!!
do any face this problem.:(




Ahmed Ali
Software Developer
__________________
Ahmed Ali
Senior Software Developer
  #2 (permalink)  
Old February 9th, 2004, 02:15 AM
Friend of Wrox
Points: 3,558, Level: 25
Points: 3,558, Level: 25 Points: 3,558, Level: 25 Points: 3,558, Level: 25
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: California, USA
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

Fast judge! It might be from ur Network Connection.
did u tried from another PC or not?! Does ur PC connected to LAN or not?!
Kepp in touch.

Always:),
Hovik Melkomian.
  #3 (permalink)  
Old February 9th, 2004, 09:11 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cairo, , Egypt.
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default

my pc is on a lan with the server,
i can connect to the server using client QA from pc also i can connect using a test Desktop application(vb.net) the problem when connecting using asp.net

Ahmed Ali
Software Developer
  #4 (permalink)  
Old February 9th, 2004, 09:15 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 1,111
Thanks: 0
Thanked 3 Times in 3 Posts
Default

How are you trying to connect to the server with ASP.NET?

  #5 (permalink)  
Old February 9th, 2004, 11:24 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cairo, , Egypt.
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default

i am using ado.net,

for ex.
dim conStr as string="data source=XXXXX;Initial Catalog=XXXXX;User id=XXXXX;Pwd=XXXXX;"
dim conn as new sqlconnection(connStr)
dim cmd as new sqlcommand(QueryStr,conn)
conn.open
cmd.executescalar
conn.close

note : i use the same code as check in Desktop App with the same connection string and it works fine



Ahmed Ali
Software Developer
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to connect to the remote server rstelma ASP.NET 2.0 Professional 0 May 30th, 2008 07:56 PM
Need to connect to Remote Exchange Server. arul1976 .NET Framework 2.0 1 March 10th, 2008 10:20 AM
How to connect to a remote SQL Server? mizimizi SQL Server 2000 3 July 4th, 2006 01:47 PM
I can't connect to remote MySQL server pmnghi MySQL 2 January 24th, 2006 06:38 AM
unable to connect remote server Harendra .NET Web Services 1 April 25th, 2005 02:10 AM



All times are GMT -4. The time now is 02:42 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.