上一页 1 2 3 4 5 6 7 ··· 13 下一页
摘要: 创建死锁程序using System;using System.Threading;namespace ConsoleApplication1{ class Program { static void Main() { new Program().Test1(); } private void Test1() { lock (this) { Console.WriteLine("Enter Test1"); ... 阅读全文
posted @ 2013-05-20 18:15 beta2013 阅读(1509) 评论(0) 推荐(0) 编辑
摘要: 下载安装工具http://msdn.microsoft.com/en-us/windows/hardware/gg463009.aspx编写问题程序using System;using System.Collections.Generic;using System.Threading;namespace ConsoleApplication1{ class Program { private readonly List _list = new List(); void CostMemory() { for (var i... 阅读全文
posted @ 2013-05-20 12:39 beta2013 阅读(1526) 评论(2) 推荐(1) 编辑
摘要: 关键字 远程调试器 Windows凭证 pdb符号文件 进程调试(远程调试)过程 准备应用程序 在客户机A上使用C#编写ConsoleApplication工程并并以“DEBUG配置”生成,然后将生成的ConsoleApplication.exe拷贝至服务器S运行,并将此工程拷贝至客户机B上。 注意“RELEASE配置”的不同在于以下配置,会导致远程调戏时会出现“由于代码方法优化,无法监视变量的值”之类的信息:“调试信息”选项为“pdb-only”“优化代码”选项为“勾选”状态 准备调试器 将“安装路径 \Microsoft Visual Studio 10.0\Common7\IDE\R.. 阅读全文
posted @ 2013-04-22 16:09 beta2013 阅读(479) 评论(0) 推荐(0) 编辑
摘要: 说明在HTML中上传文件时会为文件内容加入一头一尾,使用浏览器自带的调试工具可看到请求头中有Request Payload数据如下所示:-----------------------8cc0b8cfcfd5ed2Content-Disposition: form-data; name="file"; filename="item3.xml"Content-Type: application/octet-stream这里是真正的文件内容-----------------------8cc0b8cfcfd5ed2--因此服务端接收后要手动对其作解析。代码网页 阅读全文
posted @ 2013-04-12 15:15 beta2013 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 定义 不对称算法 公钥 私钥 证书 证书的颁发机构的信息 本证书的颁发机构标识 颁发机构对本证书的签名得到的加密结果 证书拥有者的信息 标识 公钥 证书用到的算法 散列算法 不对称算法 颁发机构 给本证书签名的父证书与父证书的私钥的拥有者 CA 证书链 根证书 国际认证机构 颁发主体 本证书与其私钥的拥有者 厂商 软件发行者 签名 使用证书指定的算法对信息进行散列与不对称加密 生成结果: 用到的证书 加密结果 存储区 是保留和管理证书的物理存储区 StoreLocation LocalMachine ... 阅读全文
posted @ 2013-04-08 14:22 beta2013 阅读(404) 评论(0) 推荐(0) 编辑
摘要: 构建环境安装python2.7安装Setup Tools在https://pypi.python.org/pypi/setuptools获取安装脚本的链接http://peak.telecommunity.com/dist/ez_setup.py,下载并运行使用Setup Tools自动下载安装webpy库运行"C:\Python27\Scripts>easy_install.exe web.py"手动下载安装pywin32库http://sourceforge.net/projects/pywin32/files/pywin32/Build%20218/下载并安装p 阅读全文
posted @ 2013-04-07 20:23 beta2013 阅读(1714) 评论(0) 推荐(0) 编辑
摘要: 导入js文件时使用”charset“参数设置js保存时的编码格式ajax请求时使用”scriptCharset“参数设置服务器提供的数据的正确编码格式 $.ajax({ async: true, data: formdata, dataType: "jsonp", scriptCharset: "UTF-8", jsonp: "callback", type: "get", 阅读全文
posted @ 2013-04-03 11:07 beta2013 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 源码下载参考用MFC ActiveX Control Wizard生成的OCX控件在代码中实现IObjectSafety接口,以去除IE对代码未标识安全的提示在“Ctrl.h”中引入头文件#include 在“DECLARE_DYNCREATE(CCtrl)”语句下面添加DECLARE_INTERFACE_MAP()BEGIN_INTERFACE_PART(ObjSafe, IObjectSafety) STDMETHOD_(HRESULT, GetInterfaceSafetyOptions) ( /* [in] */ REFIID riid, /* [out] */ D... 阅读全文
posted @ 2013-03-27 18:04 beta2013 阅读(412) 评论(0) 推荐(0) 编辑
摘要: 下载代码using System;using System.ComponentModel;using System.Globalization;using System.Text;using System.Threading;using System.Windows.Forms;namespace WillCC{ public partial class Form1 : Form { private static SynchronizationContext _synchronizationContext; public Form1() {... 阅读全文
posted @ 2013-03-23 14:20 beta2013 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 目的 临时兼容老的php请求思路 mvc中的路由映射解决 创建asp.net mvc4工程,修改App_Start/RouteConfig.cs中的路由映射 在IIS8上部署MVC 重新为iis注册.net4: 使用管理员权限运行“C:\Windows\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis.exe -i ” 为网站的应用程序池选择.net4版本 阅读全文
posted @ 2013-03-02 17:41 beta2013 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 现象 部署到服务器上的应用程序挂掉,并且无法在使用try{}Catch{}、AppDomain.CurrentDomain.UnhandledException事件处理器与Application.ThreadException事件处理器记录的日志文件中看到异常信息,在Windows 事件记录器中也未得到详细的异常堆栈信息解释 从.net4.0开始若发生会导致进程崩溃的异常(如stack overflows 、access violations),不会将其捕获而是直接结束进程运行,除非是在以下场景 CLR在一个托管的环境(Visual Studio)中运行,该环境允许这些异常被捕获 这些异常.. 阅读全文
posted @ 2013-02-04 16:30 beta2013 阅读(739) 评论(0) 推荐(0) 编辑
摘要: 异常信息无法打开探查器驱动程序,是否升级xxx\yyy的凭据?错误 VSP1398: 监视器无法启动 VS 性能驱动程序。此驱动程序被阻止加载 请考虑从提升的环境中使用 VSPerfCmd 的 /Admin:Driver,Start 和 /Admin:Security 选项。 分析无法继续。错误 VSP1341: 未能启动日志记录引擎。正在关闭。分析已完成。PRF0010: 启动中止 – 无法启动 vsperfmon.exe解决升级至vs2012参考The Visual Studio Profiler on Windows 8 阅读全文
posted @ 2012-12-11 11:12 beta2013 阅读(1513) 评论(0) 推荐(0) 编辑
摘要: 一、以下代码共创建了几个Task实例?var tasks = Enumerable.Range(1, 2).Select(i => new Task(() =>{ Debug.WriteLine(i);})).ToList();var ts1 = tasks.ToList();var ts2 = tasks.ToArray();二、找错误:var tasks = Enumerable.Range(1, 2).Select(i => new Task(() =>{ Debug.WriteLine(i);}));tasks.ToList().ForEach(t => 阅读全文
posted @ 2012-11-29 11:48 beta2013 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 准备使用NuGet添加CKEditor引用添加后会在“~/Scripts”目录中出现“ckeditor”目录在Views/Shared目录下新建Razor MVC Partial View文件,名为“CKEditor.cshtml”应用数据模型 /// /// 新闻 /// public class News { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] [Editable(false)] [HiddenInput(Displa... 阅读全文
posted @ 2012-10-22 17:05 beta2013 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 扩展 public static IEnumerable> CheckBoxListFor( this HtmlHelper html, Expression> selectedItemsExpression, ICollection allItems, IDictionary htmlAttributes = null) { var selectedItems = (ICollection)typeof(TModel).GetProperty(Expres... 阅读全文
posted @ 2012-10-13 13:32 beta2013 阅读(232) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 13 下一页