“Unable to read data from the transport connection: net_io_connectionclosed.” – Windows Vista Business and SMTP

There are several things that can cause this problem, and here are some of the things that I’ve found. Questions: You mention “Exchange” — Is this an exchange server? Does the host require authentication (maybe you need to add authentication to the client)? What I would try doing first is assigning the host to the … Read more

How can I detect if my process is running UAC-elevated or not?

For those of us working in C#, in the Windows SDK there is a “UACDemo” application as a part of the “Cross Technology Samples”. They find if the current user is an administrator using this method: private bool IsAdministrator { get { WindowsIdentity wi = WindowsIdentity.GetCurrent(); WindowsPrincipal wp = new WindowsPrincipal(wi); return wp.IsInRole(WindowsBuiltInRole.Administrator); } } … Read more

How to change maven repository folder in windows?

Look at your settings.xml in ${maven.home}/conf or, preferrably, ${user.home}/.m2/settings.xml (see this for details about the settings.xml). You can add (or uncomment) the following section: <!– localRepository | The path to the local repository maven will use to store artifacts. | | Default: ~/.m2/repository –> <localRepository>/path/to/local/repo</localRepository> as suggested by the commented out section already there by … Read more

Can I listen on a port (using HttpListener or other .NET code) on Vista without requiring administrator priveleges? [duplicate]

While you can write your own HTTP server using normal TCP/IP (it’s relatively simple), it is easier to use HttpListener, which takes advantage of the HTTP.SYS functionality added in Windows XP SP2. However, HTTP.SYS adds the concept of URL ACLs. This is partly because HTTP.SYS allows you to bind to sub-namespaces on port 80. Using … Read more

What is the difference between the new TFileOpenDialog and the old TOpenDialog?

TOpenDialog executes TFileOpenDialog when the following conditions are met: the program is running under Vista (and up) UseLatestCommonDialogs is true (which is the default) no OnIncludeItem, OnClose or OnShow events are set So while still using TOpenDialog on your system you may likely end up automagically executing TFileOpenDialog in most cases, which explains why they … Read more

How do I find which application is using up my port? [closed]

How about netstat? http://support.microsoft.com/kb/907980 The command is netstat -anob. (Make sure you run command as admin) I get: C:\Windows\system32>netstat -anob Active Connections Proto Local Address Foreign Address State PID TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 4 Can not obtain ownership information TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 692 RpcSs [svchost.exe] TCP 0.0.0.0:443 0.0.0.0:0 LISTENING 7540 [Skype.exe] TCP 0.0.0.0:445 0.0.0.0:0 … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)