当我尝试执行我的web应用程序
问题描述:
错误消息我收到此错误信息是:当我尝试执行我的web应用程序
Exception type: System.Net.WebException Message: The remote server returned an error: (407) Proxy Authentication Required.
我有这些在web.config文件:
<system.net>
<defaultProxy>`n`
<proxy usesystemdefault="True" />
</defaultProxy>
</system.net>
不知道我是否需要包括任何其他参数
答
错误告诉你代理需要一些凭据才能授予访问权限。你可以试试默认凭据..
<defaultProxy enabled="true" useDefaultCredentials="true">
如果这也不行......你将不得不添加一些代码来创建网络凭据传递到代理服务器。
+0
我也有这些:
这就是我对我的web.config文件 defaultProxy> –
luisr
欢迎SO :)当你想要编写代码你可以在每行之前用4个空格缩进或选择它并按代码示例按钮。顺便说一句,你的代码示例中有一个\ n \' –
我刚刚注意到,我会确保我在下一个问题上这么做。谢谢! – luisr