Friday, August 24, 2007

CLR has been unable to transition from COM context for 60 seconds

this problem was bugging me, and this blog provided me solution for it.

http://wpfwonderland.wordpress.com/2007/08/16
/clr-has-been-unable-to-transition-from-com-context-for-60-seconds/

Cheers

Tuesday, January 09, 2007

SOAP Exception, with trace or without

When a Web service returns a SOAP Exception, you could decide on whether to pass on the trace or not.
If the web service consumer could be indicated with the trace, so as to help in fixing the problem then pass on the trace.
Or when business layer validations are thrown as exception all you need is "Server was unable to process --> User name is invalid", instead of the lengthy SOAP exception.
To enable exception, with trace, Web.config of web service, set the customErrors mode to "RemoteOnly" or "Off"
To disable trace in the exception, Web.config of web service, set the customErrors mode to "On"

Cheers

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