您的位置:程序门 -> .net技术 -> c#



关于 webclient.openread 的认证问题


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


关于 webclient.openread 的认证问题
发表于:2007-02-27 15:25:08 楼主
在调用下述语句时,
webclient.openread( "http://localhost/attachment/**.xls ");
出现exception:(401)   unauthorized。

在此之前我已经将http://localhost/attachment/设置为web   共享,我直接将上述的 "http://localhost/attachment/**.xls "敲入ie地址栏,则可以下载那个文件,但是用代码访问却不行。

所以,希望大家能帮帮忙。
发表于:2007-02-27 15:32:261楼 得分:0
up

发表于:2007-02-27 15:39:252楼 得分:0
咋就没人捏
发表于:2007-02-27 18:43:183楼 得分:0
up


快速检索

最新资讯
热门点击