17
07/2017
Bootstrap: glyphicons-halflings-regular.woff2 404 not found
This problem happens because IIS does not know about woff and woff2 file mime types.To solve this problem, we can add the following lines in the web.config file.<configuration&g...
14
07/2017
Douglas-Peucker Algorithm implementation in C#
Douglas-Peucker algorithm is an error bounded sequence simplication. It is used for compressing trajectory, roadnetwork, etc. It's main idea can be shown as the following picture [1].I implement t...
15
06/2017
Priority Queue in C# (C#优先队列库)
项目链接:https://github.com/BlueRaja/High-Speed-Priority-Queue-for-C-Sharp dll下载:https://pan.baidu.com/s/1pKB1Q2n 使用示例:using System;using Priority_Queue;namespace Priority_Queue_Example
{&...
14
06/2017
c# 矩阵计算库Math.Net
c#矩阵运算库:https://github.com/mathnet 下载链接:https://pan.baidu.com/s/1dFvhy4x,https://onedrive.live.com/?id=84F3672F8CDA3E91%21440210&cid=84F3672F8CDA3E91API文档:https://numerics.mathdotnet.com/api/ 运行示例...
14
04/2016
ASP.NET 的静态文件路径问题
使用Azure WebRole创建了一个网站,其中引用了另外一个项目,而另外一个项目使用了静态文件。我已经让静态文件copy always。在编译网站的时候,会把此静态文件拷贝到网站的bin目录下。但是在项目读取的时候,却报无法找到此静态文件的错误。一种办法是使用绝对路径来读取静态文件。但是如何获得绝对路径呢?因为发布到Azure上时,我们是不能直接知道文件是发布到了哪里。所幸C#提供了一个方法:...
04
04/2016
c#: System.MissingMethodException: Method not found
用C#开发项目,调试运行没有问题,但是发布到Azure中,则产生以下错误:System.AggregateException: One or more errors occurred. \-\-\-> System.MissingMethodException: Method not found: 'System.IO.Stream AzureBaseLib.UBPIBlobClie...
25
03/2016
C# 获得客户端ip
参考:http://www.cnblogs.com/stay-foolish/archive/2012/05/01/2475071.html public static string GetHostAddress()
{
string userHostAddress = System.W...
24
03/2016
vs2013无法创建html,不能发布:The web publishing extension is not installed which is required to publish. You can install it from http://go.microsoft.com/fwlink/?LinkID=208120
环境:vs2013,同时在电脑上安装有vs2012、vs2015动作:可能是重新安装了Azure SKD之后,导致vs2013出错现象:无法添加、打开html文件。无法右键-》publish到azure平台网站,弹窗提示:The web publishing extension is not installed which is required to publish. You can insta...
24
03/2016
tfs中获得的Azure storm代码不能提交
在一台机器上提交的代码,另外一台机器下载后,会发现很多问题。例如,Azure Storm便不能提交了,产生一下错误:Faild to generate spec file...
storm The system cannot find the file specified at...
20
03/2016
Error 2 The type 'Microsoft.WindowsAzure.Storage.Table.TableEntity' is defined in an assembly that is not referenced. You must add a reference to assembly ''
如标题所示,在c#编译过程中,产生以下错误信息:Error 2 The type '' is defined in an assembly that is not referenced. You must add ...