Resolution:
1. Open IE and go to Tools -> Internet Options -> Security -> Local Intranet -> Custom Level -> User Authentication
check 'Automatic logon with current User & password
2. Go to virtual directory of project and select appropriate ASPNET version.
3. Right click to Project under solution explorer and go to properties, select Configuration settings and go to 'Dubugging' and select 'Enable ASP.NET Debugging' as TRUE
Tuesday, August 05, 2008
ActiveX control 'xxx' cannot be instantiated because the current thread is not in a single-threaded apartment.
Please use appropriate attribute:
///
/// The main entry point for the application.
///
[STAThread] // !!!!!!!!!!!!!!!
static void Main()
{
Application.Run(new MainForm());
}
///
/// The main entry point for the application.
///
[STAThread] // !!!!!!!!!!!!!!!
static void Main()
{
Application.Run(new MainForm());
}
Subscribe to:
Posts (Atom)
Blog Archive
Links
About Me
- Nitin
- Software Professional