未处理 System.ArgumentException
  Message="程序集“E:\\0mis2008s\\myproject\\KcejItem\\obj\\Debug\\KcejItem.dll”不包含任何 UserControl 类型。"
  Source="UserControlTestContainer"
  StackTrace:
       在 Microsoft.VisualStudio.Tools.UserControlTestContainer.UserControlTestContainer_Load(Object sender, EventArgs e)
       在 System.Windows.Forms.Form.OnLoad(EventArgs e)
       在 System.Windows.Forms.Form.OnCreateControl()
       在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       在 System.Windows.Forms.Control.CreateControl()
       在 System.Windows.Forms.Control.WmShowWindow(Message& m)
       在 System.Windows.Forms.Control.WndProc(Message& m)
       在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       在 System.Windows.Forms.ContainerControl.WndProc(Message& m)
       在 System.Windows.Forms.Form.WmShowWindow(Message& m)
       在 System.Windows.Forms.Form.WndProc(Message& m)
       在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       在 System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
       在 System.Windows.Forms.Control.SetVisibleCore(Boolean value)
       在 System.Windows.Forms.Form.SetVisibleCore(Boolean value)
       在 System.Windows.Forms.Control.set_Visible(Boolean value)
       在 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       在 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       在 System.Windows.Forms.Application.Run(Form mainForm)
       在 Microsoft.VisualStudio.Tools.UserControlTestContainer.Main(String[] args)
  InnerException: 

解决方案 »

  1.   

    该类库不包含任何用户控件,看看KcejItem.dll是不是最新编译的。
      

  2.   

    现象:
    1 程序好象没有修改过
    2 程序能够编译成功,即生成(重新生成)解决方案都能成功
    3 独立启动编译后EXE文件也能成功4 F5 调试在 生成结束启动的时候抱错,无法调试.--------------
    有碰到过的吗?怎么解决
      

  3.   

    把KcejItem.dll先移除掉,然后重新编译再添加,试试看行不行