易截截图软件、单文件、免安装、纯绿色、仅160KB

Asp.net 对路径“***”的访问被拒绝

Asp.net网站发布到IIS上,操作文件的时候发生‘System.UnauthorizedAccessException:对路径“***”的访问被拒绝’。
说明没有授予Asp.net对文件的写访问权,网上找了一下:
若要授予 ASP.NET 对文件的写访问权,请在资源管理器中右击该文件,选择“属性”,然后选择“安全”选项卡。单击“添加”添加适当的用户或组。突出显示 ASP.NET 帐户,选中所需访问权限对应的框。
结果在电脑上找了老半天,楞是没在文件夹属性里安全找到‘安全’这2字。。。那个汗啊!肯定是系统不同了。。。
没办法,继续找。。。。
又找了好久,终于还是被我找到了!
别人说的办法都是2000、2003下的,而我用的是XP的操作系统 在资源管理器—工具菜单—文件夹选项—查看标签下,把“使用简单文件共享”的勾去掉。
运行再试,成功!


相关文档:

asp.net 2.0 下的表单验证Cookieless属性

在不支持Cookies的移动设备模拟器中无法正常进行表单验证,联想到昨天使用web.config设置cookieless属性时会在访问时会出现"Cannot use a leading .. to exit above the top directory"的异常,自然而然的我就想到了前一段时间困扰我很久的一个站点异常无法使用前导 .. 在顶级目录上退出(Cannot use a leading .. to exit abo ......

ASP.NET MVC 系列文章

http://www.cnblogs.com/chsword/archive/2008/03/10/dotnetmvcframework.html
以下文章属于ASP.NET MVC 1.0 正式版
ASP.NET MVC雕虫小技 1-2
ASP.NET MVC 重点教程一周年版 第十一回 母版页、用户自定义控件及文件上传
ASP.NET MVC 重点教程一周年版 第十回 请求Controller
ASP.NET MVC 重点教程一周年版 第九回 H ......

关于ASP.NET/C#中对Cookie的操作

写cookie
  1 HttpCookie cookie = new HttpCookie("Info");//定义cookie对象以及名为Info的项
  2 DateTime dt = DateTime.Now;//定义时间对象
  3 TimeSpan ts=new TimeSpan(1,0,0,0);//cookie有效作用时间,具体查msdn
  4 cookie.Expires = dt.Add(ts);//添加作用时间
  5 cookie.Values.Add("user","cx ......

Paging long articles in ASP.NET using C#

Paging long articles in ASP.NET using C#
Long articles are better broken into bite-sized chunks over several pages. With static HTML, this is easily achieved by dividing the article into logical separations and creating separate .htm files for each. Here's how to do it using C# for an article that ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号