问题描述
publicpartialclassWebForm1:System.Web.UI.Page{protectedvoidPage_Load(objectsender,EventArgse){}WebBrowserwebbrowser1=newWebBrowser();//这句报错当前线程不在单线程单元中,因此无法实例化ActiveX控件“8856f961-340a-11d0-a96b-00c04fd705a2”System.ComponentModel.ComponentResourceManagerresources=newSystem.ComponentModel.ComponentResourceManager(typeof(WebForm1));protectedvoidButton1_Click(objectsender,EventArgse)求大神指教,我做的是web项目引用C/S里控件,实例化C/S控件报线程错误
时间: 2024-09-17 06:08:20