摘要: https://github.com/Smoothfu/CSharp/tree/SecuritySafeCriticalpublicvoidSetApartmentStateApartmentStatestatesetstheapartmentstateofathreadbeforeitisstar 阅读全文
posted @ 2019-05-19 23:20 FredGrit 阅读(218) 评论(0) 推荐(0) 编辑
摘要: System.Threading.ThreadStateException: 'Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that you 阅读全文
posted @ 2019-05-19 23:17 FredGrit 阅读(291) 评论(0) 推荐(0) 编辑
摘要: static void ADO() { string connString = ConfigurationManager.ConnectionStrings["connString"].ToString(); using (SqlConnection conn = new SqlConnection(connStrin... 阅读全文
posted @ 2019-05-19 21:54 FredGrit 阅读(141) 评论(0) 推荐(0) 编辑