探知,不断发现
探知不断发现

随笔分类 -  错误

1 2 下一页
Memory stream is not expandable
摘要:发现项目有一个地方在做图片缩放剪切的一个操作中。碰到有一些特殊的图片会报 Memory stream is not expandable 的错误 跟踪的时候发现是 由方法 originalStream.SetLength()引起的。 某些情况下原图片的长度会小于新的图片长度 (size还比原来小的情 阅读全文
posted @ 2017-06-22 16:58 lovebanyi 阅读(1292) 评论(0) 推荐(0)
微软Azure平台 cloud service动态申请证书并绑定证书碰到的坑
摘要:我们有一个saas平台 部分在azure的cloud service 使用lets encrypt来申请证书。每一个商家申请域名之后就需要通过Lets encrypt来得到证书并绑定证书。 主要碰到的两个问题。 第一个:我们是使用 AcmeClient (类库 https://github.com/ 阅读全文
posted @ 2017-03-30 16:38 lovebanyi 阅读(1031) 评论(0) 推荐(0)
PInvoke在 2.0 3.0的时候正常 升级到4.0后出错。
摘要:方法1: 设置 CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl,但是我设置了也是出错。换一个convention没出错。但是调用不正常。 方法2: 大概意思是P/Invoke StackImblan 阅读全文
posted @ 2016-02-18 21:20 lovebanyi 阅读(242) 评论(0) 推荐(0)
Ajax加载子域跨站cookie丢失的问题.
摘要:我们有两个网站一个是main.xxx.cn 一个是 preveiw.xxx.cnmain.xxx.cn 页面需要加载preview.xxx.cn的内容。项目里面出现了两种的加载preview.xxx.cn内容的方式。一种是iframe另一个是ajax。1.iframe加载的要求 两个页面都把 doc... 阅读全文
posted @ 2014-09-15 15:56 lovebanyi 阅读(2860) 评论(0) 推荐(0)
Compiler Error Message: CS1513: } expected
摘要:<% if(something) { %> some html codes Miss <%}%> will get Compiler Error Message: CS1513: } expected .I don't know why the guy commit the code.the original code is <% if(something) { %> some html codes <%}else{%>Some different html codes.<%}%>vb is better than c# it 阅读全文
posted @ 2012-06-14 11:31 lovebanyi 阅读(1005) 评论(0) 推荐(0)
把有无线网卡的机子当作无线ap无需任何软件
摘要:把有无线网卡的机子当作无线ap无需任何软件Win7的机子哪个是非常方便。点击一下就可以让某个无线网卡设为无线ap接入点了,然后会自动路由好。Xp这边就有一点点小麻烦了。 而且还没有办法把一个无线网卡虚拟成两个。所以xp的机子需要先确保它已经连上网络了,不管你是用无线啊,还是3g还是有线。就是该机子已经可以连上网了,并且可以正常上网。然后还剩下一个无线网卡。我的实验环境,xp系统 有两个无线网卡, wifi City 还有笔记本自带的无线网卡。 目标,把笔记本变成一外无线ap接入点,可以让家里的其它手机,笔记本,Ipad来使用无线网络。(wifi city已经连接到邻居家的网络了)把剩下的哪一个 阅读全文
posted @ 2012-01-22 12:25 lovebanyi 阅读(6050) 评论(0) 推荐(0)
Float 运算的怪异性
摘要:我自己有开发了一个股票自动交易软件。背景:原来我所有的金钱计算用的都是decimal类型。然后后面我看行情数据哪边大部分人用的都是float类型。于是我也决定将所有的类型全部都换成了float类型。然后最近怪事就来了,第一次进行买入的时候都是没有办法掇合成功。再接下来用很少的钱进行购买的时候却可以成功了。但是看一下剩下的钱变成负的了。非常的神奇。第一次为什么会没有办法掇合成功呢。买 的掇合是一件很简单的事情。经过分析发现原来在进行买掇合的时候我会用进行一下花的钱和剩下来的现金进行一下比较。如果钱不过的话当然是不可能买入的了。这样我知道我的最大可买数量肯定是算错了。后面发现 原来 float有. 阅读全文
posted @ 2011-11-01 11:23 lovebanyi 阅读(1458) 评论(0) 推荐(0)
**Error 1 The type 'System.Web.Compilation.WCFBuildProvider' is ambiguous: it could come from assembly 'C:\Windows\Micro
摘要:**Error 1 The type 'System.Web.Compilation.WCFBuildProvider' is ambiguous: it could come from assembly 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll' or from assembly 'C:\Windows\assembly\GAC_MSIL\System 阅读全文
posted @ 2011-08-16 15:43 lovebanyi 阅读(2040) 评论(0) 推荐(0)
Google 的统计或将导致 IE7已终止操作
摘要:<scripttype="text/javascript">vargaJsHost=(("https:"==document.location.protocol)?"https://ssl/.":"http://www/.");document.write(unescape("%3Cscriptsrc='"+gaJsHost+"google-analytics.com/ga.js'type='text/javascript'%3E%3C/sc 阅读全文
posted @ 2011-06-28 14:39 lovebanyi 阅读(428) 评论(0) 推荐(0)
ExternalException (0x80004005) A generic error occurred in GDI+
摘要:有时候我们希望保存一个图像质量是高质量的。可是却出现了ExternalException (0x80004005) A generic error occurred in GDI+下面是代码 使用AForge.net进行图片颜色替换string filePath = Server.MapPath("~/...");//你的图片地址 Bitmap bmp = new Bitmap(filePat... 阅读全文
posted @ 2010-05-19 12:03 lovebanyi 阅读(2005) 评论(0) 推荐(2)
Specified argument was out of the range of valid values.
摘要:HttpCachePolicy.UtcSetLastModified errorSpecified argument was out of the range of valid values.Parameter name: utcDate Description: An unhandled exception occurred during the execution of the curre... 阅读全文
posted @ 2010-04-08 10:39 lovebanyi 阅读(4562) 评论(0) 推荐(0)
The mapping of interface member IDisplayOrder.ID is not supported.
摘要:Country 是Linq to sql 的一个实体类如果我们按这个代码运行的话就会得到The mapping of interface member IDisplayOrder.ID is not supported.注意看Exchange的代码一个方法是先where 后FirstOrDefault 这个方法可以使用。而如果直接用FirstOrDefault 的话就会有错了[代码][代码][代码... 阅读全文
posted @ 2009-05-20 14:59 lovebanyi 阅读(241) 评论(0) 推荐(0)
k = temp ?? 0 + 1
摘要:int k = 0;int? temp = null;k = temp ?? 0 + 1; k=?int k = 0;int? temp = 3;k = temp ?? 0 + 1k=?脑袋直接算一下,看出错误了吗? 阅读全文
posted @ 2009-04-28 10:07 lovebanyi 阅读(234) 评论(0) 推荐(0)
搜狗 输入法与 RadUpload 控件冲突(IE7)
摘要:因为input file自定义样式 的问题 RadUpload 控件应该是用了一种 确保点击时能点中透明上传框的按钮控件 的方式./Files/lovebanyi/Upload.rar结果有的机子 就出现问题了.当你鼠标移过去点击的时候.搜狗输入法闪一下.完了. 点不到了. 阅读全文
posted @ 2008-12-01 16:43 lovebanyi 阅读(357) 评论(0) 推荐(0)
net 不支持 adobe opentype 的字体
摘要:OpenType (erratic; Microsoft's fonts are allowed, Adobe's fonts are not allowed)* PrivateFontCollection pfc = new PrivateFontCollection(); pfc.AddFontFile(Server.MapPath("~/adobe.otf")); ... 阅读全文
posted @ 2008-11-06 16:42 lovebanyi 阅读(309) 评论(0) 推荐(0)
OnClientClick return confirm() in ajax environment , event lose
摘要:Confirm function on button. We are use OnClientClick="return confirm('Are you sure')" often. but that is no correct under Ajax. because the real code is Generate return confirm('Are you sure'); __do... 阅读全文
posted @ 2008-10-21 18:11 lovebanyi 阅读(535) 评论(0) 推荐(0)
我的回调在哪里? docdata 没有回调的问题
摘要:最近在做国外的一些支付接口。比较郁闷.碰到了一个docdata的问题。别人写过了这个系统所以没有去看文档。他的回调是需要自己加参数下去的callback.aspx?id=xxxx. xxxx是它的transactionID 刚开始的时候没有注意到结果一直都没有得到回调。后面用了iis 日记总算看到了 callback.aspxss545642313 这样的请求地址。Docdata call bac... 阅读全文
posted @ 2008-07-15 17:22 lovebanyi 阅读(245) 评论(0) 推荐(0)
Is not define on firefox
摘要:I am test some page on firefox , i get error that is "Is not define on firefox". some function no define, that is strange. is right on IE. let me check. what is i find one is "text/jss... 阅读全文
posted @ 2008-05-26 09:08 lovebanyi 阅读(510) 评论(1) 推荐(0)
SVN不能提交 Error Commit Failed (details Follow): Error Authorization Failed
摘要:使用svn的时候有时候会碰到这样的错误可是检测来检测去。服务器的配置都没有错。他也可以update但就是commit不了Error Commit Failed (details Follow): Error Authorization Failed你的帐号跟他的帐号在同一组的。 你的机子这边没有错,你可以commit原来是URL 中的项目名有一个字母小写了。SVN有时候会大小写敏感。前几天都可以正... 阅读全文
posted @ 2008-05-21 18:17 lovebanyi 阅读(98273) 评论(7) 推荐(2)
does not support the Select property
摘要:LinqDataSource 'LinqDataSource1' does not support the Select property when the Delete, Insert or Update operations are enabled. I bind the datasource in code often. today i want to use linqdatasour... 阅读全文
posted @ 2008-05-06 12:45 lovebanyi 阅读(335) 评论(0) 推荐(0)

1 2 下一页