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

Top 5 Contributors of the Month
Post New Web Links

C# Application DynDNS support without router setup (port forwarding)

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :WPF

Hi to all!

I'm not too experienced with networking and I have a request for my application that i'm not sure how to implement.

My client want's to be able to connect to his office machine from his home using the remote desktop. Now, that wouldn't be a problem if it was one machine connected directly to the internet. But it's most often a LAN in the office and he wants to be able to connect to the one where my application is installed on. Now, I know about port forwarding on the router to dispatch connections to specific machine but I was wondering if there is some way to circumvent router setup?

I was wondering how MSN or Skype work? For example, i have MSN&Skype installed on several machines on my LAN and all of them work properly without any router setup so there must be some way of doing this.

Obviously, i would program a little server routine that my application would notice every so often about its current IP address (but that's routers IP address, not the specific machines one).

Any ideas would be highly appreciated.


View Complete Post

More Related Resource Links

How to setup port forwarding for SharePoint server on home network

I have a SharePoint 2010 server running on my home network.  I want to be able to access the server from the internet and edit pages, create sites etc.  The web applications is running on a specific port (1234) not port 80. I've configured my router to forward port 1234 to the server's IP address and I can access the site fine from the internet using the routers IP address and adding the port number.  Viewing the site works fine but the problem is when I try to access a page in the _layouts folder for any of the sub sites I get a "File not found" error.  Also, if I go to a sub site and create a new site (no _layouts page required) it works but the new site is created directly under the root and not the sub site. It seems that the port forwarding from the router is messing up the context for the _layouts folder.  Is there any way around this? Thanks.

SQL Server Express 2008 Setup fails. Support Rule "Restart Computer" Failed

Hi, I have been trying to install SQL Server Express for most of the day now without any luck.  Whatever I do setup fails at the stage of Setup Support Rules, Rule "Restart Computer" - Failed.  Needles to say I have restarted (several times!) and I have tried downloading  and installing the "Advanced", "Tools" and "Basic" versions, all give the same error.  Trying a repair does the same.  I have been searching the net for an answer without success, any help would be MUCH appreciated. Further info: I am trying to install a stand-alone installation on to a single PC running under XP SP 3 with .NET 3.5 SP1 installed.  The PC did have some earler versions of SQL server installed but I (?hopefully?) removed all of these through Control Panel.  Before trying the first SQL install I installed Windows installer 4.5 and PowerShell 1.0 as per the Microsoft Instructions. Running SQL Server Configuration Manager results in an error (MMC could not create the snap-in. The snap in might not have been installed correctly).  A directory structure for SQL server exists in "Program Files".  Services MSC shows SQL Server (SQLEXPRESS) as Automatic Statup (not running).  Trying to start this manually gives error 14001: "application configuration incorrect - re-install to fix" .......... Which is precisely what I'm trying to do.........:(

Adding Twitter authentication support to ASP.NET application

In my last posting I introduced my idea about common membership provider for ASP.NET that is able to support multiple authentication providers. Before writing membership provider we need support for some authentication providers to get an better idea how to use them together. In this posting I will introduce you how to use OAuth protocol with Twitter. Before we start . . let me make some important notes and give some advises so you know better what is going on: OAuth is secure open-source authentication API that is used by Twitter and many other providers. You can find out more details about OAuth from their homepage at http://oauth.net/. There is also official specification for OAuth by Internet Engineering Task Force (IETF): The OAuth 1.0 Protocol. To make our sad lives easier there is library for .NET that makes it for us easier to support OAuth and OpenID protocols in our systems. This cool library is called DotNetOpenAuth. This library is also used by stackoverflow and MySpace. We will use the same library, so go and download it before starting with code. You need to register Twitter application. Go to page Twitter's application registration page and register new application. You need consumer key and consumer secret parameters of your application later. Copy "Sign in with Twitter" to some of your web application's folders where other images are. You need

Using a Port for WCF chat application

Hi All. I have a chat project using WCF over the internet. I will user TCPbinding for it. I will choose a port for connect from client. Anybody suggest me choose  the best port for me  ? Thanks so much!  

know the port No. Of my web application at Runtime

I have many application in my solution. I have to move from a application to another. At the localhost, port no of different appliction is different. i want to know the port no for other application at run time so that i make a url to move another application.  

Search server 2010 setup - error creating search service application

I am running in a very similar siutation as this post:

I am configuring a new Search Server 2010 production environment.

I used the search setup account to run the setup and run the SharePoint Products Configuration Wizard.

During the first run of the SharePoint configuration wizard (where the farm account and service applications are setup), the process failed because the search service application could not be created.  

Errors were encountered during the configuration of the Search Service Application.
System.Data.SqlClient.SqlException: User does not have permissiont to perform this action.

I was under the assumption that the setup account had securityadmin and dbcreator SQL Server roles.  However, this was not the case and I had them added.  My original thought was the setup failed because of this.  After those roles were added, I tried to recreate the search service application and I still get a failure.

I am pretty sure I have followed the prerequisites as prescribed by Microsoft in terms of account setup (

How make setup of a winforms application

I am making a winforms application. I would like to about how to make a setup of my winforms application after its completion ?? secondly i have 3 computers at home with windows XP professional SP2, whenever i try to install .net framework it fails and gives some SUIT TOOLKIT error....m worried whether it will work on my client's machine or not.... Your opinions are requested.. Thanks n Regards

SQL Server 2008 r2 - Setup support files - Install error / reading from file


I'm installing SQL server 2008 r2 on a Win2003 R2 x86 system.

After i start the setup, the "setup support files" box begins installing, after a while i get this error:

"Error reading from file f:\1033_ENU_LP\x86\setup\sqlsupport_msi\PFiles\SqlServr\100\Setup\ewbfphdh\x86\Patch\rs2000.msp verify that the file exists and that you can access it."

I've tried another DVD, i've tried a mounted share on another machine...no go....i've tried an ISO file mounted on this server... same error.

Is there any way i can install this "setup support files" from another location? (download)

Is there a switch soo it won't install reporting services? (...i think this file rs2000.msp is from reporting services)





C# How to use SharpSsh like Putty with port forwarding

Hi all,

i try to connect a client C# application to a remote server through ssh connexion with sharpssh library like putty, you can see my putty settings:



and my code:
string user = "admin";

string pass = "mypass";

string host = "";

SshExec exec = new SshExec(host, user, pass);


JSch jsch = new JSch();

Session session = jsch.getSession(user, host, 22);


Hashtable _table = new Hashtable();


_table.put("StrictHostKeyChecking", "no");


session.setPortForwardingL(3390, "", 3389);

But i have an "auth fail

Serial Port Application Leaks Handle After Exit Forcing Reboot to Clear


The application (C# .Net 3.5) available at www.redondowa.com/porttest demonstrates a problem encountered with a Sony VAIO multimedia laptop related to use of its serial modem port.  A discussion with MS support is included in a doc with the VS solution.

If the base stream or port is not closed before nulling the port, the port cannot be recreated and the application leaves the port inaccessible.  The machine requires a reboot to clear the error.  Other machines clear the error without requiring a reboot.

<!-- /* Font Definitions */ @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:"Arial Unicode MS"; mso-font-charset:134; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:variable; mso-font-signature:1 135135232 16 0 262144 0;} @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} @font-face {font-family:"\@SimSun"; panose-1:0 0 0 0 0 0 0 0 0 0; mso-font-charset:134; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch

SQL2008TrainingKit.Setup.20090505.exe - No Windows 7 support


I am trying to install SQL 2008 training kit.  I am running the much touted
Windows 7 and this install does not support Win7.  I am confused here.


Profile Service Application Setup


I am running SharePoint 2010 in a farm environment.  I have 2 app servers and 3 web front ends.    I want to have the profiles running on 2 servers.  Does anyone know of a best way to do this.    If I reboot the app server, trying to get to profiles throws an error...    "Internal server error exception"   The way we have our MOSS farm setup is user access the web front ends and we can reboot index server at anytime and no one is ever affected...    I want to do the same setup.   

How can I load balance the profiles or atleast have them on 2 servers in case one goes down.


Setup for client application



Which Software or which projekt type in VS 2010 can be recommended for the following requirements:

- Installation of a client application
- target systems are: XP, Vista, Windows 7, Server 2003 + 2008 (both 32-bit and 64-bit)
- user need to give some input:
          - name, company, path for installation, path for data storage (configuration, temp files, etc.)
          - serial number (should be checked by own code, preferrable in c# or InstallShield script)
- there will be about 30 files for the application and the size is about 40 MB

Just for better understanding: The application will use a database (this is already installed on the user system).

Is the MSI-project in VS 2010 good enough? Or maybe the InstallShield LE (free vor VS 2010)? Or is a full InstallShield needed?
Or some complete other software?

What would you recommend? And which should definately not be used because of limitations?

Thanks in advance!

Viele Grüße / Best regards CSN22

SQL Server Setup Support Files Installation

Is there any way to install the SQL Server setup support files to a different partition/drive?

Reg How to create a setup for windows application with integrated database (.mdf)


Hi All,

 How to generate the setup file for windows application (VS 2008) and how to install the SQL server (2005) at client system. Should i install complete SQL Server or anything else..? or Can i integrate the database file (.mdf) into setup file...   Before install these setup at client system, should i install .NET 3.5 framework..?

Please Help me....



Balaji Chandaka.

writing web application with language support



My client has few requirements for his website he want to built. want to discuss best practices to start this project and make this a learning experience. 

  1. accessible from all browsers and platforms. (mobile as welll)
  2. language support
  3. scalable
  4. should be CMS style so he can assign roles etc for editing.

except above my question is what will be best to use as a new project in VS2010 (MVC, web application etc)

Any ideas?

.NET bug or my fault?: Serial port fail to open from C# because spoolsv.exe and my application try t

Dear all,
after browsing around I could not find any answer to my issue.

I'm writing a program in C# to access a serial device. The serial device comes with a legacy DLL probably written in C++ that provides an OpenDevice (which I call via DLLImport). The device is connected to a USB port via a Prolific USB to serial converter.
My problem is that 1 out of 5 times, the OpenDevice fails when I run my application. I have workaround to call it until it succeeds and it never goes beyond 3 or 4 tries.
By monitoring the serial port with Portmon I noticed that:
1) when running the application in debug mode from Visual studio the Com port is open from my process (MyApplication.EXE)
2) when running from windows the Com port communication belongs to windows print spooler service (spoolsv.exe) but Portmon also tracks an open command from MyApplication.EXE and here the collision happens: I'm suprised to see that the main communication from MyApplication is managed by spoolsv.exe so it is not just spoolsv.exe running in the background: I'm calling it!
3) the demo software from the supplier uses the same DLL but it is written in C++ and when I run it, spoolsv.exe does not show up (and open port never fails!)

I do not understand what is the trigger that makes the calls going through spoolsv.exe or directly to the port and
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