When am running visual studio in debug mode am getting below error but in release mode its working fine.
iisexpress.exe' has exited with code -1 (0xffffffff)
Strange but that has probably nothing todo with episerver. Most likely it is an issue with you installation or something bad in the project setup. Could you try to create a complete vanilla epi project or asp.net project and try the same. If everything is working with the vanilla epi project then you have something wrong in your project.
You could try to change the portnumner in your project settings to another and run the solution again.
Have a look in this thread at stackoverflow: http://stackoverflow.com/questions/19472682/asp-net-mvc5-iis-express-unable-to-debug-code-not-running