随笔分类 -  Asp.Net

IdentityServer4 EntityFramework
只有注册用户登录后才能阅读该文。

posted @ 2019-09-09 00:53 木龙哥 阅读(4) 评论(0) 推荐(0)

asp.net 开发注意的几点
摘要:这主要是64位系统的问题,excel是32位的组件,所以在正常的系统组件服务里是看不到的 可以通过在运行里面输入 comexp.msc -32 来打开32位的组件服务,在里就能看到excel组件了 protected void Application_End(object sender, Event 阅读全文

posted @ 2019-03-13 14:25 木龙哥 阅读(294) 评论(0) 推荐(0)

C#新特性
摘要:在.Net 4.5中引入了三个Attribute: CallerMemberName、CallerFilePath和CallerLineNumber 阅读全文

posted @ 2018-12-27 14:18 木龙哥 阅读(111) 评论(0) 推荐(0)

Abp Create
摘要:Thank you! Your project is being created and downloaded in a few seconds... Thank you! Your project is being created and downloaded in a few seconds.. 阅读全文

posted @ 2017-12-02 21:32 木龙哥 阅读(260) 评论(0) 推荐(0)

URL Rewrite Module Configuration Reference
摘要:Accessing URL Parts from a Rewrite Rule It is important to understand how certain parts of the URL string can be accessed from a rewrite rule. For an 阅读全文

posted @ 2017-12-01 09:09 木龙哥 阅读(181) 评论(0) 推荐(0)

Dapper使用
摘要:排序 new[] { Predicates.Sort<Model.Version>(p => p.CreateDate, false) } 阅读全文

posted @ 2017-09-15 13:22 木龙哥 阅读(158) 评论(0) 推荐(0)

Web API 输出文件缓存
摘要:var httpMsg = new HttpResponseMessage(HttpStatusCode.OK) { Content = new ByteArrayContent(fileData) }; httpMsg.Content.Headers.ContentT... 阅读全文

posted @ 2017-09-13 08:36 木龙哥 阅读(236) 评论(0) 推荐(0)

IIS支持web deploy发布
摘要:参考文章: http://blog.csdn.net/codec007/article/details/46442957 http://www.cnblogs.com/printhelloworld/p/6143502.html 阅读全文

posted @ 2017-06-17 20:00 木龙哥 阅读(645) 评论(0) 推荐(0)

SMTP Client
摘要:<system.net> <mailSettings> <smtp from="&quot;china&quot;service@china.com"> <network host="china.com" defaultCredentials="true"/> </smtp> </mailSetti 阅读全文

posted @ 2017-06-08 17:46 木龙哥 阅读(214) 评论(0) 推荐(0)

asp.net config 配置
摘要:1 <httpErrors errorMode="Custom" existingResponse="Replace"> <clear/> <remove statusCode="404" subStatusCode="-1"/> <error statusCode="404" path="/tes 阅读全文

posted @ 2017-06-04 19:42 木龙哥 阅读(352) 评论(0) 推荐(0)

未能找到文件“\bin\roslyn\csc.exe”
摘要:出现这个问题可能是因为VS没有把Roslyn的编译器正确地放到网站Bin文件夹的roslyn文件夹中。这时候可以从Nuget程序包文件夹中复制Roslyn编译器到网站的Bin/roslyn文件夹中。Nuget程序包文件夹一般与.sln解决方案文件在同一个目录下。Roslyn编译器在Nuget文件夹中 阅读全文

posted @ 2017-05-23 15:38 木龙哥 阅读(13196) 评论(1) 推荐(3)

asp.net 多站点共享StateServer Session
摘要:<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" cookieless="false" ></sessionState> 打开注册表,运行cmd/regedit,找到节点HKEY_LOCAL_ 阅读全文

posted @ 2016-04-10 17:05 木龙哥 阅读(557) 评论(0) 推荐(0)

asp.net 多站点共享FormAuthentication
摘要:<authentication mode="Forms"> <forms domain="lizhanglong.com" timeout="2880" /> </authentication> <machineKey decryptionKey="*" validationKey="*" vali 阅读全文

posted @ 2016-04-10 16:58 木龙哥 阅读(426) 评论(0) 推荐(0)

GDI+ 中发生一般性错误(在 OutputStream 中保存 PNG 格式图像时遇到的问题)
摘要:在将图片以 PNG 格式保存至 Response.OutputStream 时,会碰到如下错误:GDI+ 中发生一般性错误。原因:在写 PNG 格式的图像时,指针需要在存储的位置来回移动。而 Response.OutputStream 只支持顺序访问。解决方案:先将 PNG 格式的图像保存至内存(内... 阅读全文

posted @ 2015-06-19 11:22 木龙哥 阅读(399) 评论(0) 推荐(0)

C# 一些小东东
摘要:在C#中,如果有一个方法我们不想继续使用,需要废弃的时候,可以在该方法前面加上一个[Obsolete]。 string[] arr={"a","b"} if $(ConfigurationName)==Release copy /y $(TargetPath) E:\Develop\CommonDl 阅读全文

posted @ 2015-02-09 10:53 木龙哥 阅读(178) 评论(0) 推荐(0)

DataTable Select查询
摘要:如果是Excel中数据,空数据为DBNull.Value 查询:dt.Select("name is null") 查询长度:dt.Select("len(convert(name,System.String))>10" 如果是字符型,就无需转换了 查询GUID时: var filter = "Sh 阅读全文

posted @ 2014-12-29 12:51 木龙哥 阅读(480) 评论(0) 推荐(0)

asp.net 页面执行过程
摘要:Application_BeginRequestApplication_AuthenticateRequestApplication_AuthorizeRequestApplication_ResolveRequestCacheApplication_MapRequestHandlerApplica... 阅读全文

posted @ 2014-11-15 23:37 木龙哥 阅读(282) 评论(0) 推荐(0)

asp.net 一般处理程序小优化
摘要:使用asp.net mvc习惯了,最近项目中又开始使用asp.net,有大量的ajax方法调用,之前有两种方法来处理:Switch case :方法少还行,如果很多,就太蛋疼了,而且方法堆在一块,也不美观匿名方法:方法复用不好,vs代码也不便于折叠最近研究了一下用反射方法来做,把类中所有公开方法都通... 阅读全文

posted @ 2014-08-29 20:45 木龙哥 阅读(667) 评论(0) 推荐(0)

快捷查看dll的PublicKeyToken
摘要:1 @echo off 2 3 d: 4 5 cd D:\Win2003\Microsoft Visual Studio 10.0\VC\ 6 7 call vcvarsall.bat x86 8 9 echo. 10 11 12 13 if not '%1'=='... 阅读全文

posted @ 2014-03-12 21:17 木龙哥 阅读(1239) 评论(0) 推荐(0)

导航