.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

C# reverse connection remote screen capture tool

Posted By:      Posted Date: October 09, 2010    Points: 0   Category :.NET Framework

Hello , I am coding a reverse connection remote screen capture tool.The server can connect to the client but I cannot make screen capture to work. can someone help me out? this is my code :

<strong>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using System.IO;

namespace ScreenCap_Client
  public partial class Form1 : Form

    private TcpListener captureListener;
    private TcpListener severListener;

    private TcpClient tcpServer;

View Complete Post

More Related Resource Links

An existing connection was forcibly closed by the remote host


I get this message when I try to launch a report (.rdl) from Windows Sharepoint 2007.  I have followed the steps to integrate SQL 2005 SP2 with Sharepoint 2007.  I can launch the report by navigating to "http://server:880/reportserver/.."  I am using a shared datasource that I created within sharepoint.  Any help would be appreciated.

How to Establish a Remote Web Site Connection in SharePoint Designer 2007


I am modifying a SharePoint site and so far so good.  Some of the objects were created using Visual Studio 2008 (C#).  I was able to modify these objects and implement them on the targete machine without issue.  The final step is to implement the ASPX pages that were modified using SharePoint Designer 2007.  These are aspx pages that are used to modify items in lists.  All the pages involved in this upgrade are customized.  I need to upgrade the target site with the modified version of these pages.  My intent is to copy the code from the page in the source site and past it into the same page on the target site.  I tried using the Remote Web Site connection tool in SharePoint Designer 2007 but received the following error message:

"Unable to open 'https://(site address)'.  Server Error:  Could not find a Web server at 'website'.  Please check to make sure that the Web server name is valid and your proxy settings are set correctly.  If you are sure that everything is correct, the Web server may be temporarily out of service."

I am not sure how to first check to see if the Web Server is temporarily out of service.  I would appreciate your input on how to verify this.

Background information of target machine:  WinServer 2008, IIS 7, Sharepoint (MOSS2007), site on port 80

Web Site Admin Tool - cannot establish connection



I have a question with this tool.  I have a database listed in the App_folder, and the database has a connection in Server explorer.  The connection string is listed in the web.config file, and I am able to add users and roles with the Web Admin Tool.  However, when in the Web Admin Tool, under Configuration tab, I receive an error when I click on the "test" button.  The error reads

 " Could not establish a connection to the database.
If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider."

How can this be, and how do I correct this?



Remoting from WebService throws: An existing connection was forcibly closed by the remote host

Hello everyone, I have a problem with using .NET remoting from webservice. When using remoting from console application, there is no problem. I suppose problem is somewhere in IIS. My system is Windows Vista. Thank you for any help. Best regards, Jozef

WCF issues sending large data - "An existing connection was forcibly closed by the remote host"

Hi Guys I have posted the following on www.asp.net but thought it might be productive posting here too.I have been pulling my hair out trying to fix an issue with sending data over WCF, I have read pretty much every THREAD on this forum regarding or similar to this issue without any successful solution.  I have a simple data object which has a [DataMember] with a data type of byte[]. I use this to send binary data from my web app as follows: Asp.net MVC website --> WCF Client (Has my Service References) --> My Services (MyServices.svc) --> Business/Data Tier Everything is being executed from within VS 2008 Pro.   Now I have successfully sent data up to 2.2MB, however it fails if i try and send a file such as 2.3MB or larger i get the following exceptions: General Exception Exception rethrown at [0]:    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)   at SoftApp.WCFClient.MyServiceReference.IMyService.Document_Save(DtoDocument dtoDocument, Int32 usercode)   at SoftApp.WCFClient.MyServiceReference.MyServiceClient.Document_Save(DtoDocument dtoDocument, Int32 usercode) in c:\dev\softapp\softapp.wcfclient\service references\myservicereference\refe

Remote Connection Unavailable

Hello, I am attempting to attach to my new Windows 2008 R2 SQL Server 2005 standard clustered remotely.  The firewall is temp off, remote connections in the surface area configuration is set to pipes and tcp/ip.  I have attempted to check the browser configuration but I can't find this. I can attach to the sql server on my cluster but am unable to on a remote machine error is: Cannot connect to clustered name\instance name Addtional info A network-related or instance-specific error occured while establishing a connection to sql server.  The server was not found or was not accessible.  Verify that the instance name is correct and the SQL Server is configured to allow remote connections. Ideas? Thx -- Paul Bergson MVP - Directory Services MCITP: Enterprise Administrator MCTS, MCT, MCSE, MCSA, Security+, BS CSci 2008, Vista, 2003, 2000 (Early Achiever), NT4 http://www.pbbergs.com    Twitter @pbbergs Please no e-mails, any questions should be posted in the NewsGroup This posting is provided "AS IS" with no warranties, and confers no rights.

Yet another WPF Screen Capture (with Rectangle) App

  The Plan:         I had plan on adapting the following, which is an old Microsoft sample implementing of a rubberband rectangle for my app               http://support.microsoft.com/kb/314945         To simulate a selectable area to capture i would display a wpf window over the entire desktop and make it transparent. Then i would use the window as the surface on which to do the mouse area selection and draw the rubberband rectangle on the mouse move.  I would then pass the point coordinates of the rectangle to this bit of code to do the actual capture. public static BitmapSource Copy(int left, int top, int right, int bottom) { using (var screenBmp = new Bitmap(right - left, bottom - top, PixelFormat.Format32bppArgb)) { using (var bmpGraphics = Graphics.FromImage(screenBmp)) { bmpGraphics.CopyFromScreen(left, top, right, bottom, screenBmp.Size); return Imaging.CreateBitmapSourceFromHBitmap( screenBmp.GetHbitmap(), IntPtr.Zero, Int32Rect.Empty, BitmapSizeOptions.FromEmptyOptions()); } } } The Malady:         When i make the wpf window transparent i completely loose it as a surfa

Remote Connection to SQL Server 2008

Hi everyone,    I'm allowing remote connections, have started the SQL Server Browser, and have the TCP/IP protocol enabled for my server instance, but I still can't connect to my SQL server remotely.   I have my router forwarding to the local IP for it when using port 1433 and it works when I put the router ip with 1433 locally, but it gives me an error when I try this remotely. It throws a timeout error, so it isn't even reaching it.   Any suggestions?

Remote Desktop Connection Over Internet

Hi Guys.. I want to connect a remote system over internet connection .. through vb.net Code. Any one help me to coding.. I dont know where to start.. and I go through lot of articles finally i got  Ts gateway to use for remote internet connection. but i am not able to start coding ,bcoz i dont to how to use this Ts Gateway..   thanks ...

Reverse C# Connection Question

Hi I am coding a  C# Reverse Connection Tool and it is working fine only when connecting within LAN (ex. 192.168.1.x) . When I use host like no-ip or dyndns or direct ip address it will not connect ? Any ideas ?  I have properly configured my router to forward the host connection to my LAN computer and the 3 ports are opened!     Here is how I initialize the connections : private void InitializeConnection() { try { IPHostEntry hostInfo = Dns.GetHostEntry(""); IPAddress ipaddress = hostInfo.AddressList[0]; //MessageBox.Show(ipaddress.ToString()); // Start a new TCP connections to the chat Client tcpClient = new TcpClient(); tcpClient.Connect(ipaddress, 8000); tcpClientFileView = new TcpClient(); tcpClientFileView.Connect(ipaddress, 8001); tcpClientCommunication = new TcpClient(); tcpClientCommunication.Connect(ipaddress, 8002); // Helps us track whether we're connected or not connected = true; Thread clientThread = new Thread(new ParameterizedThreadStart(HandleClientComm)); clientThread.Start(tcpClient); Thread fileViewThread = new Thread(new ParameterizedThreadStart(HandleFileView)); fileViewThread.Start(tcpClientFileView); } catch (Exception e) { tcpClie

BIDS Connection Manager Cannot Connect to Remote Oracle Db

Hi All,
I'm not having much luck getting an 'Oracle Provider for OLE DB' remote connection in connection manager to work when creating an SSIS package in BIDS.

I've covered off all the steps in the following link

The local machine is running SQL 2005 Sp2 Enterprise Edition on W2003 Sp2 Standard Edition X64

Using the Oracle 'Net Configuration Assistant' I can connect successfully to the remote service

I'm using ODAC 10g Release 2.

The steps to reproduce the error are as follows

1. in BIDS after creating an SSIS Solution
2. Right click in the  Connection Manager and select new OLE DB Connection
3. Click 'New'
4. Select 'Oracle provider for OLE DB'
5. Under server I enter the service name that I created in the Oracle 'Net Configuration Assistant'
6. Enter the user name and password as I entered in the Oracle 'Net Configuration Assistant'
7. When I click 'Test Connection' I get the following error

Test connection failed because of an error in initializing provider. ORA-12154: TNS could not resolve the connect identifier specified

I've spent a lot of time trying to get this to work and tried othe

trapping connection to remote object


I have a .net Remoting application.   I would like to do some tracking when connections are made.   Is there a way to interrogate connections being made to my remote object?

I have a singleton object, running as a service.   Basically when a ui connects I want to report back the state, and any pending messages.   So by looking at the connections I can keep a ptr to the next group of messages based on the client that connected.

Any insight into this would be a big help.



Problem with remote connection using NetTcpBinding in WCF...



I try to implement a file storage and recovery system using WCF and NetTcpBinding, when I test the system locally (in the same sub-red) all work fine, but I can't communicate with my server application from another domain (not in the same sub-red). I was verify all the configuration for my machine firewall, router and application, but I not see the problem. My question is: Is possible that WCF or more precisely NetTcpBinding require extra configuration for remote access? It is my app.config file...

<?xml version="1.0"?>
    <compilation debug="true"/>
      <service behaviorConfiguration="BackUpBehavior"
        <endpoint address=""

what the configuartion to Enable Remote Connection on SQL Server 2008


I have  server and I install windows server2003 With sqlserver 2008

and I have Application with vb.net2008  and i want to make connection between the application and sql server 2008

wht Is steps to make them>>>>??



i want remote connection in my office network

plz help me...

Like Teamviewer remote connection



i want to develop a remote pc desktop visualizer. just like as in team viewer. any help regarding to this

Like Teamviewer remote connection



i want to develop a remote pc desktop visualizer. just like as in team viewer. any help regarding to this

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend