我用ClickOnce部署winform程序,可以在线更新的,
现在请问下怎么在程序发布的时候如何把.ssk皮肤一起发布啊,IrisSkin2.dll皮肤控件已经发布,但是.ssk皮肤文件没有
所以程序客户端安装了还是打不开,缺少了.ssk皮肤文件
错误信息如下:
-----------------------------------------------------------------------------------------
有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。************** 异常文本 **************
System.NullReferenceException: 未将对象引用设置到对象的实例。
在 Sunisoft.IrisSkin.InternalControls.x3c41176af7e54b01.x9954cbb39675570d()
在 Sunisoft.IrisSkin.InternalControls.x3c41176af7e54b01.set_MdiContainer(Form value)
在 Sunisoft.IrisSkin.xa427f1b2281f554b.x30c11b5a89921b08()
在 Sunisoft.IrisSkin.xa427f1b2281f554b..ctor(IntPtr handle, SkinEngine engine)
在 Sunisoft.IrisSkin.SkinEngine.DoAddWnd(IntPtr handle, Boolean isManual)
在 Sunisoft.IrisSkin.SkinEngine.FnHookProc(Int32 nCode, IntPtr wParam, IntPtr lParam)
在 System.Windows.Forms.UnsafeNativeMethods.SetFocus(HandleRef hWnd)
在 System.Windows.Forms.ContainerControl.FocusActiveControlInternal()
在 System.Windows.Forms.Form.set_Active(Boolean value)
在 System.Windows.Forms.Form.ActivateMdiChildInternal(Form form)
在 System.Windows.Forms.Form.WmMdiActivate(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.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** 已加载的程序集 **************
mscorlib
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.1433 (REDBITS.050727-1400)
基本代码: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
机房动力环境监控系统
程序集版本: 1.0.0.0
Win32 版本: 1.0.0.0
基本代码: file:///C:/Documents%20and%20Settings/xiaoqian/Local%20Settings/Apps/2.0/B4VBTG1V.8WV/RNC931G1.XKT/.app..tion_5999dbec3b537b79_0001.0000_4c75e06d9a867fc8/机房动力环境监控系统.exe
----------------------------------------
System.Windows.Forms
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.1433 (REDBITS.050727-1400)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.1433 (REDBITS.050727-1400)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.1433 (REDBITS.050727-1400)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.1433 (REDBITS.050727-1400)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.1433 (REDBITS.050727-1400)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
LTP.Accounts
程序集版本: 2.0.0.0
Win32 版本: 2.0.0.0
基本代码: file:///C:/Documents%20and%20Settings/xiaoqian/Local%20Settings/Apps/2.0/B4VBTG1V.8WV/RNC931G1.XKT/.app..tion_5999dbec3b537b79_0001.0000_4c75e06d9a867fc8/LTP.Accounts.DLL
----------------------------------------
LTP.Common
程序集版本: 2.0.0.0
Win32 版本: 2.0.0.0
基本代码: file:///C:/Documents%20and%20Settings/xiaoqian/Local%20Settings/Apps/2.0/B4VBTG1V.8WV/RNC931G1.XKT/.app..tion_5999dbec3b537b79_0001.0000_4c75e06d9a867fc8/LTP.Common.DLL
----------------------------------------
System.Data
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.1433 (REDBITS.050727-1400)
基本代码: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.1433 (REDBITS.050727-1400)
基本代码: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.1433 (REDBITS.050727-1400)
基本代码: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
mscorlib.resources
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.1433 (REDBITS.050727-1400)
基本代码: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Maticsoft.BLL
程序集版本: 2.0.0.0
Win32 版本: 2.0.0.0
基本代码: file:///C:/Documents%20and%20Settings/xiaoqian/Local%20Settings/Apps/2.0/B4VBTG1V.8WV/RNC931G1.XKT/.app..tion_5999dbec3b537b79_0001.0000_4c75e06d9a867fc8/Maticsoft.BLL.DLL
----------------------------------------
IrisSkin2
程序集版本: 2006.3.22.45
Win32 版本: 2006.3.22.45
基本代码: file:///C:/Documents%20and%20Settings/xiaoqian/Local%20Settings/Apps/2.0/B4VBTG1V.8WV/RNC931G1.XKT/.app..tion_5999dbec3b537b79_0001.0000_4c75e06d9a867fc8/IrisSkin2.DLL
----------------------------------------
Maticsoft.DALFactory
程序集版本: 2.0.0.0
Win32 版本: 2.0.0.0
基本代码: file:///C:/Documents%20and%20Settings/xiaoqian/Local%20Settings/Apps/2.0/B4VBTG1V.8WV/RNC931G1.XKT/.app..tion_5999dbec3b537b79_0001.0000_4c75e06d9a867fc8/Maticsoft.DALFactory.DLL
----------------------------------------
Maticsoft.IDAL
程序集版本: 2.0.0.0
Win32 版本: 2.0.0.0
基本代码: file:///C:/Documents%20and%20Settings/xiaoqian/Local%20Settings/Apps/2.0/B4VBTG1V.8WV/RNC931G1.XKT/.app..tion_5999dbec3b537b79_0001.0000_4c75e06d9a867fc8/Maticsoft.IDAL.DLL
----------------------------------------
System.Web
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.1433 (REDBITS.050727-1400)
基本代码: file:///C:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
Maticsoft.SQLServerDAL
程序集版本: 2.0.0.0
Win32 版本: 2.0.0.0
基本代码: file:///C:/Documents%20and%20Settings/xiaoqian/Local%20Settings/Apps/2.0/B4VBTG1V.8WV/RNC931G1.XKT/.app..tion_5999dbec3b537b79_0001.0000_4c75e06d9a867fc8/Maticsoft.SQLServerDAL.DLL
----------------------------------------
Maticsoft.Model
程序集版本: 2.0.0.0
Win32 版本: 2.0.0.0
基本代码: file:///C:/Documents%20and%20Settings/xiaoqian/Local%20Settings/Apps/2.0/B4VBTG1V.8WV/RNC931G1.XKT/.app..tion_5999dbec3b537b79_0001.0000_4c75e06d9a867fc8/Maticsoft.Model.DLL
----------------------------------------
DevComponents.DotNetBar2
程序集版本: 7.0.0.1
Win32 版本: 7.0.0.1
基本代码: file:///C:/Documents%20and%20Settings/xiaoqian/Local%20Settings/Apps/2.0/B4VBTG1V.8WV/RNC931G1.XKT/.app..tion_5999dbec3b537b79_0001.0000_4c75e06d9a867fc8/DevComponents.DotNetBar2.DLL
----------------------------------------
Accessibility
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.1433 (REDBITS.050727-1400)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
Maticsoft.DBUtility
程序集版本: 2.0.0.0
Win32 版本: 2.0.0.0
基本代码: file:///C:/Documents%20and%20Settings/xiaoqian/Local%20Settings/Apps/2.0/B4VBTG1V.8WV/RNC931G1.XKT/.app..tion_5999dbec3b537b79_0001.0000_4c75e06d9a867fc8/Maticsoft.DBUtility.DLL
----------------------------------------
System.Windows.Forms.resources
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.1433 (REDBITS.050727-1400)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------************** JIT 调试 **************
要启用实时(JIT)调试,
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
jitDebugging 值。
编译应用程序时还必须启用
调试。例如: <configuration>
<system.windows.forms jitDebugging="true" />
</configuration>启用 JIT 调试后,任何无法处理的异常
都将被发送到在此计算机上注册的 JIT 调试器,
而不是由此对话框处理。
现在请问下怎么在程序发布的时候如何把.ssk皮肤一起发布啊,IrisSkin2.dll皮肤控件已经发布,但是.ssk皮肤文件没有
所以程序客户端安装了还是打不开,缺少了.ssk皮肤文件
错误信息如下:
-----------------------------------------------------------------------------------------
有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。************** 异常文本 **************
System.NullReferenceException: 未将对象引用设置到对象的实例。
在 Sunisoft.IrisSkin.InternalControls.x3c41176af7e54b01.x9954cbb39675570d()
在 Sunisoft.IrisSkin.InternalControls.x3c41176af7e54b01.set_MdiContainer(Form value)
在 Sunisoft.IrisSkin.xa427f1b2281f554b.x30c11b5a89921b08()
在 Sunisoft.IrisSkin.xa427f1b2281f554b..ctor(IntPtr handle, SkinEngine engine)
在 Sunisoft.IrisSkin.SkinEngine.DoAddWnd(IntPtr handle, Boolean isManual)
在 Sunisoft.IrisSkin.SkinEngine.FnHookProc(Int32 nCode, IntPtr wParam, IntPtr lParam)
在 System.Windows.Forms.UnsafeNativeMethods.SetFocus(HandleRef hWnd)
在 System.Windows.Forms.ContainerControl.FocusActiveControlInternal()
在 System.Windows.Forms.Form.set_Active(Boolean value)
在 System.Windows.Forms.Form.ActivateMdiChildInternal(Form form)
在 System.Windows.Forms.Form.WmMdiActivate(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.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** 已加载的程序集 **************
mscorlib
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.1433 (REDBITS.050727-1400)
基本代码: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
机房动力环境监控系统
程序集版本: 1.0.0.0
Win32 版本: 1.0.0.0
基本代码: file:///C:/Documents%20and%20Settings/xiaoqian/Local%20Settings/Apps/2.0/B4VBTG1V.8WV/RNC931G1.XKT/.app..tion_5999dbec3b537b79_0001.0000_4c75e06d9a867fc8/机房动力环境监控系统.exe
----------------------------------------
System.Windows.Forms
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.1433 (REDBITS.050727-1400)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.1433 (REDBITS.050727-1400)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.1433 (REDBITS.050727-1400)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.1433 (REDBITS.050727-1400)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.1433 (REDBITS.050727-1400)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
LTP.Accounts
程序集版本: 2.0.0.0
Win32 版本: 2.0.0.0
基本代码: file:///C:/Documents%20and%20Settings/xiaoqian/Local%20Settings/Apps/2.0/B4VBTG1V.8WV/RNC931G1.XKT/.app..tion_5999dbec3b537b79_0001.0000_4c75e06d9a867fc8/LTP.Accounts.DLL
----------------------------------------
LTP.Common
程序集版本: 2.0.0.0
Win32 版本: 2.0.0.0
基本代码: file:///C:/Documents%20and%20Settings/xiaoqian/Local%20Settings/Apps/2.0/B4VBTG1V.8WV/RNC931G1.XKT/.app..tion_5999dbec3b537b79_0001.0000_4c75e06d9a867fc8/LTP.Common.DLL
----------------------------------------
System.Data
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.1433 (REDBITS.050727-1400)
基本代码: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.1433 (REDBITS.050727-1400)
基本代码: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.1433 (REDBITS.050727-1400)
基本代码: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
mscorlib.resources
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.1433 (REDBITS.050727-1400)
基本代码: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Maticsoft.BLL
程序集版本: 2.0.0.0
Win32 版本: 2.0.0.0
基本代码: file:///C:/Documents%20and%20Settings/xiaoqian/Local%20Settings/Apps/2.0/B4VBTG1V.8WV/RNC931G1.XKT/.app..tion_5999dbec3b537b79_0001.0000_4c75e06d9a867fc8/Maticsoft.BLL.DLL
----------------------------------------
IrisSkin2
程序集版本: 2006.3.22.45
Win32 版本: 2006.3.22.45
基本代码: file:///C:/Documents%20and%20Settings/xiaoqian/Local%20Settings/Apps/2.0/B4VBTG1V.8WV/RNC931G1.XKT/.app..tion_5999dbec3b537b79_0001.0000_4c75e06d9a867fc8/IrisSkin2.DLL
----------------------------------------
Maticsoft.DALFactory
程序集版本: 2.0.0.0
Win32 版本: 2.0.0.0
基本代码: file:///C:/Documents%20and%20Settings/xiaoqian/Local%20Settings/Apps/2.0/B4VBTG1V.8WV/RNC931G1.XKT/.app..tion_5999dbec3b537b79_0001.0000_4c75e06d9a867fc8/Maticsoft.DALFactory.DLL
----------------------------------------
Maticsoft.IDAL
程序集版本: 2.0.0.0
Win32 版本: 2.0.0.0
基本代码: file:///C:/Documents%20and%20Settings/xiaoqian/Local%20Settings/Apps/2.0/B4VBTG1V.8WV/RNC931G1.XKT/.app..tion_5999dbec3b537b79_0001.0000_4c75e06d9a867fc8/Maticsoft.IDAL.DLL
----------------------------------------
System.Web
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.1433 (REDBITS.050727-1400)
基本代码: file:///C:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
Maticsoft.SQLServerDAL
程序集版本: 2.0.0.0
Win32 版本: 2.0.0.0
基本代码: file:///C:/Documents%20and%20Settings/xiaoqian/Local%20Settings/Apps/2.0/B4VBTG1V.8WV/RNC931G1.XKT/.app..tion_5999dbec3b537b79_0001.0000_4c75e06d9a867fc8/Maticsoft.SQLServerDAL.DLL
----------------------------------------
Maticsoft.Model
程序集版本: 2.0.0.0
Win32 版本: 2.0.0.0
基本代码: file:///C:/Documents%20and%20Settings/xiaoqian/Local%20Settings/Apps/2.0/B4VBTG1V.8WV/RNC931G1.XKT/.app..tion_5999dbec3b537b79_0001.0000_4c75e06d9a867fc8/Maticsoft.Model.DLL
----------------------------------------
DevComponents.DotNetBar2
程序集版本: 7.0.0.1
Win32 版本: 7.0.0.1
基本代码: file:///C:/Documents%20and%20Settings/xiaoqian/Local%20Settings/Apps/2.0/B4VBTG1V.8WV/RNC931G1.XKT/.app..tion_5999dbec3b537b79_0001.0000_4c75e06d9a867fc8/DevComponents.DotNetBar2.DLL
----------------------------------------
Accessibility
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.1433 (REDBITS.050727-1400)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
Maticsoft.DBUtility
程序集版本: 2.0.0.0
Win32 版本: 2.0.0.0
基本代码: file:///C:/Documents%20and%20Settings/xiaoqian/Local%20Settings/Apps/2.0/B4VBTG1V.8WV/RNC931G1.XKT/.app..tion_5999dbec3b537b79_0001.0000_4c75e06d9a867fc8/Maticsoft.DBUtility.DLL
----------------------------------------
System.Windows.Forms.resources
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.1433 (REDBITS.050727-1400)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------************** JIT 调试 **************
要启用实时(JIT)调试,
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
jitDebugging 值。
编译应用程序时还必须启用
调试。例如: <configuration>
<system.windows.forms jitDebugging="true" />
</configuration>启用 JIT 调试后,任何无法处理的异常
都将被发送到在此计算机上注册的 JIT 调试器,
而不是由此对话框处理。
用户名:2009061101
密码空
或换其他版本试试,要注册
http://topic.csdn.net/u/20080426/14/cbfd1007-18cc-4ce9-958d-8942e115242e.html
打包我是用VS里面的发布的
在使用皮肤时使用 skinEngine1.ApplyAdditionalBuiltInSkins(参数);
这样的话,皮肤文件是做为嵌入的资源进行编译的,就不会出现你上面这种问题了。
在load事件里??
下面是我的点击换肤的代码://默认的皮肤
public MDIMain()
{
InitializeComponent();
this.skinEngine1.SkinFile = "MacOS.ssk";
}
private void dddToolStripMenuItem_Click(object sender, EventArgs e)
{ this.skinEngine1.SkinFile = "XPBlue.ssk";
} private void toolStripMenuItem2_Click(object sender, EventArgs e)
{
this.skinEngine1.SkinFile = "MSN.ssk";
} private void toolStripMenuItem4_Click(object sender, EventArgs e)
{
this.skinEngine1.SkinFile = "MacOS.ssk";
}
如果用AdditionalBuiltInSkins
private void MDIMain_Load(object sender, EventArgs e)
{//这里添加。。??能具体点吗
this.skinEngine1.AddtionalBuiltInSkins(...);
}
//在点击皮肤事件是?
private void dddToolStripMenuItem_Click(object sender, EventArgs e)
{ //this.skinEngine1.SkinFile = "XPBlue.ssk";
//这么写
this.skinEngine1.ApplyAdditionalBuiltInSkins(2); }
this.skinEngine1.AddtionalBuiltInSkins.Add(item);
this.skinEngine1.ApplyAdditionalBuiltInSkins(0);我这样做了,发布部署后还是没有皮肤,借此宝地再问一下。谢谢!
vs2002/2003使用IrisSkin.dll