asp.net
xrjohn
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
HttpClient授权验证实现
public class OAuthClient : AuthBase { private const string NullExceptionStr = @"Exception 401 ClientId or secret cann't be empty or null"; private const string BaseAddressExceptionStr = @"Exception 402 baseAddress cann't be empty or...原创 2020-09-01 17:51:48 · 788 阅读 · 0 评论 -
AD域操作帮助类
写于2015年9月,今天整理历史代码找到,上传备份并标记需要优化。 域里面的信息都是可编辑的属性,域操作实际就是对属性的操作。只要知道每个属性对应的内容,该如何操作,就能找到方法获得或者修改想要的信息。 public class ADHelper { private static string _path = ConfigurationManager.AppSettings["AdHostPath"];// private static string _dnP.原创 2020-08-20 16:13:01 · 461 阅读 · 0 评论 -
Your project does not reference .NETFramework,Version=v4.6.1 framework
错误信息:Your project does not reference ".NETFramework,Version=v4.6.1" framework. Add a reference to ".NETFramework,Version=v4.6.1" in the "TargetFrameworks" property of your project file and then re-run NuGet restore. 前情:窗体程序,最初使用.net4.0,之后因为项目整合升级到了.net4.原创 2020-06-30 11:08:33 · 6281 阅读 · 1 评论 -
关于Server.MapPath和HostingEnvironment.MapPath
最近做的项目需要在Controller里重写一个static的方法,在方法内用常用的Server.MapPath会报一个错误:An object reference is required for the non-static field, method, or property 'Controller.Server'。从错误可以看出来,Server.MapPath并不是一个static方法,所以原创 2016-03-22 10:20:27 · 5368 阅读 · 1 评论
分享