Friday, October 27, 2006

Class doesn't support automation

Annoying problem - Class doesn't support automation: JScript Error
Every time I browse the Internet with IE, had to live up with this error, was really annoying.
As usual was not on the top of priority so didnt look into that as an issue.
Today I thought this is the day, lets put an end to it. Looked for help on Net using gooooogle and ended up with
http://www.techgroup21.com/sub2page.asp?sub2navID=19
followed the steps mentioned, except the step with WScript.exe, as it was already there.
And got rid of it :-)

Friday, October 20, 2006

Form Authentication Login Page

Using MS VisualStudio.Net 2005, developing an ASP.Net web application with forms authentication [VS.Net builtin web server], then look further.
Wonder why the login page images / style sheets are not loaded in forms
authentication.
This is because the built in webserver passes all request through ASP.Net.
For futher details http://weblogs.asp.net/scottgu/archive/2006/01/31/437027.aspx

Thursday, June 01, 2006

IgnoreSectionHandler

When you add custom configurations in application config, then you will have to provide configuration handlers in config sections, when you dont want to handle them seperately, instead plan to read the xml and get values use

Add section with type of System.Configuration.IgnoreSectionHandler, System for the custom config that you want to ignore

this would prevent the system from throwing exception

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.