我写了一个COM+组件的程序,并编译生成DLL文件.注册之后在其他程序进行添加引用时出现如下错误:未能添加对"Operation"的引用,将类型库转换为.NET程序集失败.类型库是从CLR程序集导出的,无法将其作为CLR程序集重新导入."Operation" 是我写的DLL文件名.这是怎么回事,请各位帮帮忙啊.谢谢!!
解决方案 »
- 各位帮忙看看啊! 如何能实现网站 某一模块上移 下移 我要做的网站是先注册一个用户名 ,进去后可以设置自己的空间 我想的是如何能访问到他创建的空间
- c#.net中的treeview中的selectnodechange事件问题
- 如何备份数据Access c#?为什么我的会出现无效的SQL语句?
- 我是初学者,请赐教!关于论坛。。。
- C#使用MSCOMM的问题,(100分求助)!!!!!!!!!!!@@@@@@@@
- 在C#中连结数据库,难道要在每一个Form上建一次SqlConnection??
- 怎么显示读取SQLSERVER中指定用户所拥有的表的名称,请各位达人请教!!!!
- 急急急,关于String操作的简单问题?
- 如何用WPF的GridSplitter把一个窗口内的3个grid分成左,中,右3部分?
- 有关日期类型的问题
- 我想开发非.NET程序,是不是只能用以前的VB,c++,DELPHI,PB....,可以可写非托管的
- 菜鸟求助:关于MSMQ的问题!
using System.Data;
using System.Data.SqlClient;
using System.EnterpriseServices;namespace Operation
{
//需要新的事物处理
[Transaction(TransactionOption.RequiresNew)]
//支持对象池,对象池的最小数量为5,最大为100
[ObjectPooling(true,5,100)]
//支持即时激活
[JustInTimeActivation(true)]
/// <summary>
/// Class1 的摘要说明。
/// </summary>
public class Operation:System.EnterpriseServices.ServicedComponent
{
private SqlConnection m_cnn=null; public Operation()
{
string strCnn="server=DB;database=pubs;integrated security=sspi";
m_cnn=new SqlConnection(strCnn);
try
{
m_cnn.Open();
}
catch(Exception Ex)
{ }
} [AutoComplete]
public SqlDataReader GetDataReader()
{
SqlCommand l_cmmCommand=new SqlCommand("SELECT * FROM pubs",m_cnn);
SqlDataReader rd=l_cmmCommand.ExecuteReader();
return rd;
}
}
}