++ operator in VB.Net

We do miss the power of ++ operator in Vb.Net. Here is a quick way to achieve the same result
Use System.Math.Max(System.Threading.Interlocked.Increment(i),i – 1)
to achieve the same result as i++

Hope it helps!


How to run asp.net development server from command line

With help of couple of posts on web and stackoverflow.com

to run asp.net 2.0 webdev server, copy the following command in a .bat file

C:\Windows\Microsoft.NET\Framework\v2.0.50727\Webdev.WebServer.exe /port:[PORT NUMBER] /path: [PATH TO ROOT]

to run asp.net 4.0 webdev server, replace the location of webdev server

“C:\Program Files\Common Files\Microsoft Shared\DevServer\10.0\Webdev.WebServer40.exe” /port:[PORT NUMBER]/path:[PATH TO ROOT]

Hope it helps!



error : The Web Application Project * is configured to use IIS. The IIS Web server is not installed on this computer.

This problem arises when you try to load an existing web project, configured to run on IIS. A simple quick solution can be to open the project in a text editor and update the property UseIIS from True to False. <UseIIS>False</UseIIS>

Save the file and reload the project. This will enable you to use WebDAV server instead of IIS to run the application.

Happy programming!