Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 8th, 2004, 03:47 PM
Friend of Wrox
 
Join Date: Oct 2003
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
 
Old February 9th, 2004, 02:15 AM
Friend of Wrox
 
Join Date: Jun 2003
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.
 
Old February 9th, 2004, 09:11 AM
Friend of Wrox
 
Join Date: Oct 2003
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
 
Old February 9th, 2004, 09:15 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

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

 
Old February 9th, 2004, 11:24 AM
Friend of Wrox
 
Join Date: Oct 2003
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





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.