Tuesday, August 05, 2008

Error while trying to run project: Unable to start debugging on the web server

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

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());
}

About Me

Software Professional