08 2013 档案

摘要:最近,和朋友们在聊及ASP.NET程序的安全性没有JAVA高,IIS(Internet Infomartion Server)的存在很多漏洞(以及新型蠕虫,例如Code Red 和Nimda),安全得不到保障。针对IIS的安全性查了些资料,发现IIS的安全性曾被普遍关注。权威人士以及Microsoft公司的竞争对手花了大量精力仔细检查并批评了IIS安全功能。Gartner调查公司甚至更进一步建议被Code Red和Nimda攻击过的公司应完全放弃使用IIS。 安全漏洞和病毒问题并不只涉及到IIS用户。事实上,第一个有记载的Internet蠕虫在1987年就被发布了,它主要是针对Unix系统,并 阅读全文
posted @ 2013-08-30 13:03 iDEAAM 阅读(536) 评论(0) 推荐(0) 编辑
摘要:Web Service Transparency.NET support for web services is excellent in creating illusion of transparency. General process is quite straightforward:On the server we create a web service, decorating publicly visible methods with [WebMethod] attribute.On the client we add a web reference to the service. 阅读全文
posted @ 2013-08-28 13:55 iDEAAM 阅读(235) 评论(0) 推荐(0) 编辑
摘要:Sub GetData() Dim strConn As String, strSQL As String Dim conn As ADODB.Connection Dim ds As ADODB.Recordset Dim col As Integer '清空电子表格的所有数据 Cells.Clear '连接数据库的字符串 strConn = "Provider=SQLOLEDB.1;Persist Security Info=True;User ID=name;Passw... 阅读全文
posted @ 2013-08-22 09:28 iDEAAM 阅读(1247) 评论(0) 推荐(0) 编辑
摘要:在64位机器上开发,如果使用到SqlServerCe的话,那么很可能会碰到这个问题,问题有两个方面:1.如提示所云,没有安装SqlServerCe,只要去微软下载就好了。2.系统已经安装SqlServerCe,程序找不到相应的程序集。这时候网上有众多解法,最有效的可能属个性app.config文件的方法。但是这个方法也不能完全解决问题,在64位机器上就无效。这时需要强制应用程序兼容32位(即使安装的是64位的SqlServerCe)。方法是在程序的属性中的Build选项卡里面,把platform target改成x86即可。 阅读全文
posted @ 2013-08-13 11:18 iDEAAM 阅读(479) 评论(0) 推荐(0) 编辑
摘要:出错信息如下:----------------------------------------------------------~~~~~...The Rollback phase completed successfully.The transacted install has completed.The installation failed, and the rollback has been performed.-------------------------------------------------------------解决办法:1. 右键 developer comma 阅读全文
posted @ 2013-08-09 15:44 iDEAAM 阅读(700) 评论(0) 推荐(0) 编辑
摘要:What a Windows Service isEnables you to create long-running executable applications that run in their own windows session.Can be automatically started... 阅读全文
posted @ 2013-08-09 14:09 iDEAAM 阅读(343) 评论(0) 推荐(0) 编辑
摘要:You should use:Data Source=|DataDirectory|\MyDb.sdf|DataDirectory| points to the App_Data folder.在程序启动时,设置AppDomain.CurrentDomain.setData(“DataDirectory”,我的目录字符串);Winform的程序那当然是在Main函数中了,废话不说了,我的代码如下stringp=AppDomain.CurrentDomain.BaseDirectory; if(p.IndexOf("\\bin\\")>0) { if(p.EndsWit 阅读全文
posted @ 2013-08-07 13:26 iDEAAM 阅读(408) 评论(0) 推荐(0) 编辑
摘要:.NET Compact Framework Data Provider for SQL Server MobileStandardData Source=MyData.sdf;Persist Security Info=False;SQL Server CompactHow to specify the location of the SDF fileOften times the .SDF database is not running in the current directory so it becomes necessary to programatically set the p 阅读全文
posted @ 2013-08-06 17:14 iDEAAM 阅读(369) 评论(0) 推荐(0) 编辑
摘要:SqlMetal是跟随VS发布的一个自动工具,可以用来生成数据库的Linq代码。这是中文版的帮助文件。SqlMetal [选项] [] 为 .NET Framework 的 LINQ to SQL 组件生成代码和映射。SqlMetal 能够: - 依据数据库生成源代码及映射属性或映射文件。 - 依据数据库生成中间 dbml 文件以进行自定义。 - 依据 dbml 文件生成代码及映射属性或映射文件。 选项: /server: 数据库服务器名称。 /database: 服务器上的数据库目录。 /user: 登录用户 ID (默认值: 使用 Windows 身份验证)。 /passwo... 阅读全文
posted @ 2013-08-06 16:04 iDEAAM 阅读(589) 评论(0) 推荐(0) 编辑
摘要:当用foreach遍历Collection时,如果对Collection有Add或者Remove操作时,会发生以下运行时错误:"Collection was modified; enumeration operation may not execute." 如下所示: [c-sharp] view plaincopy List list = new List(); for (int i = 0; i keys = new List(); foreach (DictionaryEntry de in ht) { /* ope... 阅读全文
posted @ 2013-08-01 13:09 iDEAAM 阅读(9880) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示