UriBuilder与本地文件? [英] UriBuilder with local file?

查看:77
本文介绍了UriBuilder与本地文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些基于字符串构造UriBuilder的代码:

I have some code that constructs a UriBuilder based on a string:


     UriBuilder ub = new UriBuilder(reader.GetString(2));







推荐答案

我99%确定UriBuilder上的用户名密码属性只能用于http请求。 即使您可以通过第一个错误,这对您也无效。 您正在使用的
文件共享的基础身份验证协议是什么? 您是否可以在尝试访问该文件时使用模拟? 您不想使用当前登录的用户身份吗?

I am 99% sure that the username password properties on UriBuilder are designed to be used only with an http request.  This would not work for you even if you could get pass the first error.  What is the underlying authentication protocol for the file share you are using?  Can you simply use impersonation when trying to access the file?  You do not want to use the currenly logged on user identity?

 


这篇关于UriBuilder与本地文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆