Friday, May 26, 2006

Batch Build - VS.Net 2003

Batch build option is available in VS.Net 2005 [Solution with C# projects], that allows you to build for all configuration. User could select multiple project and various build configuration.

But "Batch Build" option would not be available even if one VB.Net project is added to the solution.

System Tray Application

Trying to do a system tray application,

points to note:
1) ShowInTaskbar property of the window should be set to false
2) on Form_Load function call the hide function
3) Add NotifyIcon object
3) Add ContextMenu, and menu event handlers
4) Set the contextmenu object to NotifyIcon's contextmenu

Monday, May 22, 2006

HttpRuntime - Max request length

When using Input type file and trying to upload huge files, returns an error "Maximum request length exceeded" or page not available error, thats because the ASP.Net max request length is set to 4 megs.

Incase you want to upload bigger files, then config has to be changed.

to be added in web.config [this would accept till 100 megs]

for further info refer http://support.microsoft.com/default.aspx?scid=kb;EN-US;295626

Friday, May 05, 2006

Difference between Build Solution and Rebuild Solution option in VS.Net

Source of information : http://dotnetjunkies.com/WebLog/nilapenn/archive/2004/05/22/14251.aspx

VisualStudio.Net provides us with two options for compiling and creating builds for our application. They are Build Solution and Rebuild Solution options which can be accessed from the Build menu. The differences between these two options are

1. The Build Solution option compiles only those project files and components that have changed since the last build. For example consider that you have two projects Proj1 and Proj2 in your solution MySolution. When you compile the solution using Build Solution option after making some changes to Proj1 only Proj1 will be compiled and built but Proj2 will not be compiled since there are no changes to it.

2. On the other hand the Rebuild Solution option builds all project files and components irrespective of the changes made to them. For example consider that you have two projects Proj1 and Proj2 in your solution MySolution. When you compile the solution using Rebuild Solution option after making some changes to Proj1, both Proj1 and Proj2 will be compiled and built even though there are no changes made to Proj2.