Is there a general way to implement part of an application with JavaScript and supplying a persistent connection to a server? I need the server to be able to push data to the client, regardless of the client being behind a firewall. Thanks in advance
...
I switched my DAL from using LINQ over to Entity Framework. Because my application connects to different databases depending on the current user, I need to dynamically create the DataContext at run time and pass in the appropriate connection string. However, when I tried to programatically create an Entity Framework connection using my...
I am creating a database connection object, and I'm not sure what the best way would be...
If I create a dbConnection class which establishes the connection (using mysql_connect) can I then call mysql_query from anywhere in the main script?
what about from inside OTHER classes? Do i need to pass the object or attribute as parameters?
...
Wondering how to connect blackberry to desktop or the other around via tcp/ip? I assume both the desktop and the blackberry are connecting to the same router.
...
I am trying to add a remote server to "server explorer" (not a data connection) so I can view Event Logs, Services etc. I keep getting the following error:
"Could not reconnect to 'mail'. Make sure the machine name and path are valid."
'mail.domain.com' is what the IP address I enter resolves to (this is due to the email server being ...
I have a Windows 6 app I am developing (in VB). I am pulling data from a MSSQL 2005 database. Everything worked fine running it locally (with an emulator) but when I moved the database to a test box, I get the following error:
System.Data.SqlClient.SqlException {"Specified SQL server not found: xx.xx.xx.xxx\sql2005"}
My connection s...
Hi,
After I've succesfully logged into website using POST variables by httpwebrequest and got response by HttpWebResponse ..How do I query other websites with the "current logged in" instance? Do I save it to some variable??
...
I'm connecting to a remote sql server instance with the following connection string
"Network Library=DBMSSOCN;Data Source=xx.xxx.x.xxx,1433;Initial Catalog=MyDatabase;User Id=MyUserId;Password=MyPassword;Connect Timeout=120;"
Sql Server Browser is running
Local and remote connections are allowed using TCP/IP only
The application ran...
I'M NOT ASKING ABOUT THE CODE. I just want to know what are and all the steps involved in the connection other than coding. I'm using j2sdk1.4.0 and MySQL Server 4.1. Am very new to this area.
Thanks in advance
...
I want to use the wininet function InternetCheckConnection to check whenever the machine is connected to the internet and can access a specific host.
The problem is that this function is always returning false, no matter the URL I put on it.
MSDN link
...
This is part of a larger program; I'll explain only the relevant parts. Basically, my code wants to create a new connection to a remote host. This should return a Deferred, which fires once the connection is established, so I can send something on it.
I'm creating the connection with twisted.internet.interfaces.IReactorSSL.connectSSL....
I'm using the code from Apple's Document to do some HTTP communication.I can connect to the url sucessfully, but I failed to receive the data from my server.
// create the request
NSURLRequest *theRequest=[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://..."]
cachePolicy:NSURLRequestUseProtocolCachePoli...
Exact Duplicate: http://stackoverflow.com/questions/473465/firefox-plugin-to-simulate-slow-internet-connection
How do I simulate a slow internet connection (Edge/3g) on a Mac? Is there a Firefox plugin?
...
I want to write some code to handle exceptions when HTTP connection fails. I use the following codes:
-(void) connection:(NSURLConnection *)connection
didFailWithError: (NSError *)error {
UIAlertView *errorAlert = [[UIAlertView alloc]
initWithTitle: [error localizedDescription]
message: [error localizedFailureReaso...
I try to add a method to handle exception, but the program just crashes instead of pop up an AlertView.
1) I set up the connection:
-(void)connect:(NSString *)strURL
{
NSURLRequest *theRequest=[NSURLRequest requestWithURL:[NSURL URLWithString:strURL]
cachePolicy:NSURLRequestUseProtocolCachePolicy
...
I'm developing a website and I need to have my asp page connect to a VB script on a remote server send it some variables and get a string returned. Then spit out the returned data.
I've done similar work in Java.
Can anyone point me in the right direction to help me produce a simple proof of concept?
...
Hi,
I'm looking for a way to check if a server is still available.
We have a offline application that saves data on the server, but if the serverconnection drops (it happens occasionally), we have to save the data to a local database instead of the online database.
So we need a continues check to see if the server is still available.
W...
When using brctl, my latency on the notebook that is doing the bridging becomes horribly slow. Eventually, I cannot get the notebook to connect to anything, even the routers admin panel, or pinging the router.
The scenario is I have an 802.11b router upstairs, an 802.11b card in my notebook, and an eth port in my notebook. I am setting ...
Apparently (MSDN) sometimes OleDbConnection.ResetState() does nothing, so even if the connection fails OleDbConnection.State will still be set to Open. I am looking for best workaround for this, so that when I check connection state I can avoid raising exceptions (as long as connection hasn't failed between the last check and usage attem...
I try to connect to CVS through eclipse. After entering (host, repository path, user, password) and by clicking finish, it gives me the following error :
Error validating location : "Could not connect to :pserver:username@host:/CVS/Myproject:I/O exception occured: ProxyHTTP: java.IOEXCEPTION: proxy error (the specified socket layer (...