您的位置:程序门 -> .net技术 -> c#



petshop.imessaging.iorder在未被引用时的程序集中定义必须加对程序集petshop.imessageing,version=4.0,culture=netural


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


petshop.imessaging.iorder在未被引用时的程序集中定义必须加对程序集petshop.imessageing,version=4.0,culture=netural
发表于:2007-01-08 17:56:42 楼主
3.错误 1 类型“petshop.imessaging.iorder”在未被引用的程序集中定义。必须添加对程序集“petshop.imessaging,   version=4.0.0.0,   culture=neutral,   publickeytoken=a7987b61c51ca872”的引用。 c:\inetpub\wwwroot\petshop\bll\orderasynchronous.cs 14 18 bll

代码:
using   petshop.ibllstrategy;
using   petshop.imessaging;
namespace   petshop.bll
{
        /*asynchronous   进程异步的内容*/
        public   class   orderasynchronous   :   iorderstrategy
        {
                //   get   an   instance   of   the   messagingfactory
                //   making   this   static   will   cache   the   messaging   instance   after   the   initial   load
                private   static   readonly   petshop.imessaging.iorder   asynchorder   =   (petshop.imessaging.iorder)petshop.messagingfactory.queueaccess.createorder();

                ///   <summary>
                ///   this   method   serializes   the   order   object   and   send   it   to   the   queue   for   asynchronous   processing
                ///   </summary>
                ///   <param   name= "order "> all   information   about   the   order </param>
                public   void   insert(petshop.model.orderinfo   order)
                {

                        asynchorder.send(order);
                }
        }
}




快速检索

最新资讯
热门点击