Win 10 Includes Linux Style Package Manager

In the previous post, I’m using chocolatey to install all my apps, when reformat my windows. I just notices in Win 10 powershell is includes package manager build-in out of box, Thanks MSFT. Continue reading


EntityFramework 7

After I upgrade my Win 10 to latest technical preview 10074 and upgrade my VS 2015 to RC. I got a lot of error into my project when I build it. I watch the Build 2015 to figure out what it has changes. Usually I using “k ef add migration addProfile” it not going work anymore. check out this docs the latest 5. DNX (Dot Net Execution Environment) dnx . ef migration add  addProfile

Git swap branch to master

Sometimes in the development we always commit into the master but at the end we want to make our branch source become master.
I feel this is easier way to do it.

git branch -m master abandonmaster //Move the master to Branch abandonmaster
git branch -m branchName master //Move the branchName to master
git push origin master //push master to remote
git push origin abandonmaster //pust abandonmaster branch to remote

A request to allocate an ephemeral port number from the global UDP port space has failed due to all such ports being in use

Such a long title of error message, I got this error on the Win Server 2012, The server is running for more than 2 years and suddenly all my apps is hang.

The first things we want to check is what is the UDP Port is currently using there is 2 ways to check it.
1. Is using TCPView
2. Is using Command Prompt (netstat) it.

Open the Command Prompt “netstat -anob -p UDP > 20150414_1521.txt” It will save in this file.

We will see there is alot of list of “Dnscache” which is using PPID 3312

UDP    [::]:49656             *:*                                    3312

Moving forward we want to know what is the PPID 3312.
tasklist /svc /fi “pid eq 3312”

svchost.exe 3312 CryptSvc, Dnscache, LanmanWorkstation,
NlaSvc, WinRM

Based on this article it said to turn off the LLMNR Listener, on the last comment

From what we capture the network traffic we saw that .48 is calling LLMNR destination which is also state in this article:

To fix this issue I use the last article “Disabling LLMNR Causing Slow Network” and it work.