Author: v.iacono | Posted on: 7/29/2010 3:03:40 PM | Views : 327

I try to write on clipborad the HtmlTextWriter in Render Event of Web Page.
Why do i recive this error ?
Prima di effettuare chiamate OLE, occorre impostare il thread corrente sulla modalità Single Thread Apartment (STA). Assicurarsi che la funzione Main sia contrassegnata con STAThreadAttribute. Before OLE calls, set the current thread to single thread mode on Apartment (STA). Make sure the Main function is marked with STAThreadAttribute.
This is the of ASP.NET page that throw the error
public partial class _Default : System.Web.UI.Page { public delegate void ClipBoardEventHandler(object sender, EventArgs e); public event Cli ...

Go to the complete details ...