473,587 Members | 2,550 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can't run aspnet_regsql.e xe on remote machine

I cannot run aspnet_regsql.e xe on a remote machine. The remote machine is
running MSSQL 2000 and is behind my local network. Its basically a sandbox
machine.

I specify my remote machine's name (Nightcrawler), SQL Server user name and
password at the "Select the Server and Database" screen.

I get the following error.

System.Web.Http Exception: Unable to connect to SQL Server database. --->
System.Data.Sql Client.SqlExcep tion: Timeout expired. The timeout period
elapsed prior to completion of the operation or the server is not responding.

I also have tried entering the IP address of the remote machine with no luck.

Please help!!

Thanks
Dec 9 '06 #1
4 5461
Hello Amit,

Create a new .NET 2.0 console application on your client machine and copy
paste the following code. In this code I assume that you use a trusted connection,
you can try with SQL Server authentication by removing the trusted_connect ion
from the connection string and specifying the UID and PWD:

using System;
using System.Data.Sql Client;

namespace ConsoleApplicat ion1
{
internal class Program
{
private static void Main(string[] args)
{
string connectionStrin g = "server=Nightcr awler;Trusted_C onnection=true; UID=userid;PWD= password;";
using (SqlConnection connection = new SqlConnection(c onnectionString ))
{
connection.Open ();
SqlCommand command = new SqlCommand("SEL ECT name FROM sysdatabases
ORDER BY name", connection);
using (SqlDataReader reader = command.Execute Reader())
{
while (reader.Read())
{
Console.WriteLi ne(reader.GetSt ring(0));
}
}
}
Console.ReadKey ();
}
}
}

If you run this on the same machine from where you are trying to run ASPNET_REGSQL.e xe
it should throw the same exception. As far as I know you can't change the
command timeout that for ASPNET_REGSQL.e xe, the command timeout is defaulted
to 30 secs.

Gabriel Lozano-Morán
The .NET Aficionado
http://www.pointerx.net
Dec 9 '06 #2
As replied on your other post enter the following text as your server name:

Nightcrawler;Co nnect Timeout=180

This will increase the connection timeout to 3 minutes but it might be
interesting investigating why connecting to the server takes longer than 15
secs. You could ask for help on this matter on one of the SQL Server
newsgroups.

Gabriel Lozano-Morán
The .NET Aficionado
http://www.pointerx.net
"Gabriel Lozano-Morán" <ab***@frontbri dge.comwrote in message
news:e9******** *************** ***@news.micros oft.com...
Hello Amit,

Create a new .NET 2.0 console application on your client machine and copy
paste the following code. In this code I assume that you use a trusted
connection, you can try with SQL Server authentication by removing the
trusted_connect ion from the connection string and specifying the UID and
PWD:

using System;
using System.Data.Sql Client;

namespace ConsoleApplicat ion1
{
internal class Program
{
private static void Main(string[] args)
{
string connectionStrin g =
"server=Nightcr awler;Trusted_C onnection=true; UID=userid;PWD= password;";
using (SqlConnection connection = new
SqlConnection(c onnectionString ))
{
connection.Open ();
SqlCommand command = new SqlCommand("SEL ECT name FROM
sysdatabases ORDER BY name", connection);
using (SqlDataReader reader = command.Execute Reader())
{
while (reader.Read())
{
Console.WriteLi ne(reader.GetSt ring(0));
}
}
}
Console.ReadKey ();
}
}
}

If you run this on the same machine from where you are trying to run
ASPNET_REGSQL.e xe it should throw the same exception. As far as I know you
can't change the command timeout that for ASPNET_REGSQL.e xe, the command
timeout is defaulted to 30 secs.

Gabriel Lozano-Morán
The .NET Aficionado
http://www.pointerx.net


Dec 9 '06 #3
As replied on your other post enter the following text as your server name:

Nightcrawler;Co nnect Timeout=180

This will increase the connection timeout to 3 minutes but it might be
interesting investigating why connecting to the server takes longer than 15
secs. You could ask for help on this matter on one of the SQL Server
newsgroups.

Gabriel Lozano-Morán
The .NET Aficionado
http://www.pointerx.net
"Gabriel Lozano-Morán" <ab***@frontbri dge.comwrote in message
news:e9******** *************** ***@news.micros oft.com...
Hello Amit,

Create a new .NET 2.0 console application on your client machine and copy
paste the following code. In this code I assume that you use a trusted
connection, you can try with SQL Server authentication by removing the
trusted_connect ion from the connection string and specifying the UID and
PWD:

using System;
using System.Data.Sql Client;

namespace ConsoleApplicat ion1
{
internal class Program
{
private static void Main(string[] args)
{
string connectionStrin g =
"server=Nightcr awler;Trusted_C onnection=true; UID=userid;PWD= password;";
using (SqlConnection connection = new
SqlConnection(c onnectionString ))
{
connection.Open ();
SqlCommand command = new SqlCommand("SEL ECT name FROM
sysdatabases ORDER BY name", connection);
using (SqlDataReader reader = command.Execute Reader())
{
while (reader.Read())
{
Console.WriteLi ne(reader.GetSt ring(0));
}
}
}
Console.ReadKey ();
}
}
}

If you run this on the same machine from where you are trying to run
ASPNET_REGSQL.e xe it should throw the same exception. As far as I know you
can't change the command timeout that for ASPNET_REGSQL.e xe, the command
timeout is defaulted to 30 secs.

Gabriel Lozano-Morán
The .NET Aficionado
http://www.pointerx.net


Dec 9 '06 #4
Dude, thank you! I didn't even realize injecting a connect timeout would
work, but it did. I used Nightcrawler;Co nnect Timeout=180 and it was able to
find all the databases on that server. It took maybe 15-20 seconds....don' t
know why, maybe because its a slow machine or its going over wireless.

Much thanks Gabriel! Ahh...relief.

Amit

"Gabriel Lozano-Morán" wrote:
As replied on your other post enter the following text as your server name:

Nightcrawler;Co nnect Timeout=180

This will increase the connection timeout to 3 minutes but it might be
interesting investigating why connecting to the server takes longer than 15
secs. You could ask for help on this matter on one of the SQL Server
newsgroups.

Gabriel Lozano-Morán
The .NET Aficionado
http://www.pointerx.net
"Gabriel Lozano-Morán" <ab***@frontbri dge.comwrote in message
news:e9******** *************** ***@news.micros oft.com...
Hello Amit,

Create a new .NET 2.0 console application on your client machine and copy
paste the following code. In this code I assume that you use a trusted
connection, you can try with SQL Server authentication by removing the
trusted_connect ion from the connection string and specifying the UID and
PWD:

using System;
using System.Data.Sql Client;

namespace ConsoleApplicat ion1
{
internal class Program
{
private static void Main(string[] args)
{
string connectionStrin g =
"server=Nightcr awler;Trusted_C onnection=true; UID=userid;PWD= password;";
using (SqlConnection connection = new
SqlConnection(c onnectionString ))
{
connection.Open ();
SqlCommand command = new SqlCommand("SEL ECT name FROM
sysdatabases ORDER BY name", connection);
using (SqlDataReader reader = command.Execute Reader())
{
while (reader.Read())
{
Console.WriteLi ne(reader.GetSt ring(0));
}
}
}
Console.ReadKey ();
}
}
}

If you run this on the same machine from where you are trying to run
ASPNET_REGSQL.e xe it should throw the same exception. As far as I know you
can't change the command timeout that for ASPNET_REGSQL.e xe, the command
timeout is defaulted to 30 secs.

Gabriel Lozano-Morán
The .NET Aficionado
http://www.pointerx.net


Dec 9 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
14215
by: PRM | last post by:
Hi I have an ASp.net application using C#. I need to copy a file present on the web server machine to a remote machine on the network. Although this seems to be a trivial matter I am having difficulties copying the exe I am Trying string Source = @"c:\temp\test.exe" string Destination = @"Z:\test.exe" File.Copy(Source, Destination,...
1
2417
by: PRM | last post by:
Hi I have an ASp.net application using C#. I need to copy a file present on the web server machine to a remote machine on the network. Although this seems to be a trivial matter I am having difficulties copying the exe I am Trying string Source = @"c:\temp\test.exe" string Destination = @"Z:\test.exe" File.Copy(Source, Destination,...
2
5723
by: Jeff | last post by:
hey asp.net 2.0 I have created several asp.net 2.0 projects on my development box (small projects). Now I want to deploy one of my projects to a live server. This project is using a aspnetdb.mdf database. I've read that I need to use aspnet_reqsql to deploy this sql database over to the live server.... My problem is this:
0
1271
by: Bryan | last post by:
I run aspnet_regsql.exe and it crashes. D:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regsql.exe I have MS SQL server Standard installed. Does anyone know what the problem is or what the fix is? I have a clean WinXP machine with all of the updates (SP2, etc.). I've installed Visual Studio 2005.
2
1254
by: Owen Richardson | last post by:
I have been running and testing stuff ok on my dev machine, but have been forced to consolidate my databases at my hosting company - i created a db there, and i ran the aspnet_regsql wizard. I filled that out, and sure enough i created the tables etc on my remote database. What i dont know and cant seem to understand or figure is how or...
3
17986
by: Keithb | last post by:
My application is giving me this error message: "To enable a database for SQL cache notification, please use the System.Web.Caching.SqlCacheDependencyAdmin.EnableNotifications method, or the command line tool aspnet_regsql. To use the tool, please run 'aspnet_regsql.exe -?' for more information" I have 2 computers running VS2005 and SQL...
15
7064
by: =?Utf-8?B?TVNU?= | last post by:
To demonstrate my problem, I have a very simple VB Windows application. It has a text box that is used to display a counter, a button to reset the counter, and a timer that increments the counter every second. I remote desktop to the computer hosting this application and run the application. It starts up and displays the counter...
5
2901
by: Mahernoz | last post by:
Hi Everyone! I have a problem here. I have used the latest asp.net membership & profiles functionality in my site. I have 2 roles admin and user. I also have a user named admin. Now, my website is running perfectly, but i want to deploy it.
3
6615
by: Yves Gagnon | last post by:
Hi, I try to debug a WCF hosted in a windows services on a serveur that is on an other domaine then my developpement machine. I tried many things without succes. Here is what I tried: First I installed on the server I want to debug, the remote debugger tools from the VS 2005 CD. I just install the windows application. I tried from there...
0
8215
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8347
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6626
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5718
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3844
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2358
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1454
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1189
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.