Доброго дня!
я уже потерялся
простейшее приложение
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Net;
using System.IO;
namespace WindowsFormsApplication2
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
WebRequest regWeb;
try
{
IWebProxy asd = WebRequest.GetSystemWebProxy();
WebRequest request = WebRequest.Create("http://portal.me/somefile.doc");
if (request != null)
{
WebResponse response = request.GetResponse();
if (response != null)
{
response.Close();
}
}
MessageBox.Show("ok");
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
}
}
на
IWebProxy asd = WebRequest.GetSystemWebProxy();
получаю это:
---------------------------
The requested protocol has not been configured into the system, or no implementation for it exists
---------------------------
OK
---------------------------
WebRequest request = WebRequest.Create("http://portal.me/somefile.doc");
получаю:
---------------------------
Error creating the Web Proxy specified in the 'system.net/defaultProxy' configuration section.
---------------------------
OK
---------------------------
если по первому сообщению все мутно, то по второму можно найти рекомендации по переустановке фрейворка, что мне в принципе не помогает (сносил все потом все ставил начиная с 1-ого, переустановка студии тоже не помогла)
Приведенный мною код на других машинах работает (и стой же конфигурацией с другой).
Может у кого-нибудь есть умные мысли?
ЗЫ: Win2003 VS 9.0, Framework 3.5
ЗЫ: переустанавливать систему не хочу