摘要: iis6.0出来的时侯 silverlight还没有出生。。silverlight发布后的文件中包含一些iis不认识文件。。所以必须在iis6.0及之前的iis注册这种类型打开iis,选择http头--》文件类型 然后添加如下三个类型。就和正常发布普通网站一样了.xap application/x-silverlight-app.xaml application/xaml+xml.xbap application/x-ms-xbap 阅读全文
posted @ 2012-11-06 15:34 Bonker 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 当我们先安装net环境,后安装iis时。把网站挂在iis上。这是就会出现应用程序错误。。一串英文 搞忘写的是什么了。这是我们就需要重新在iis里面注册net环境进入命令提示行cmd进入这个目录C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319然后输入aspnet_regiis.exe -i 就OK了。。。 阅读全文
posted @ 2012-11-06 15:12 Bonker 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 打印辅助类。首先添加using System.Windows.Printing;命名空间 1 public class SilverPrint 2 { 3 //设置每一项之间的间距 4 int listPrintIndex = 0; 5 private List<PrintStr> listStr = null; 6 public void Print(List<PrintStr> strs) 7 { 8 listStr = strs; 9 PrintDocu... 阅读全文
posted @ 2012-11-06 12:58 Bonker 阅读(1273) 评论(0) 推荐(0) 编辑