NET DLL nightmare - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

NET DLL nightmare

ferroarielferroariel Posts: 5Member
Hi u all!!!

I have a website, dedicated to beauty products for women, ok? Sometime ago a friend of mine told me "hey! why don

Comments

  • PsightoplazmPsightoplazm Posts: 332Member ✭✭
    Why aren't you using a WebClient?

    [code]
    var m = new WebClient();
    var result = m.DownloadString("http://www.google.com/search?hl=en&q=test&aq=f&oq=");
    MessageBox.Show(result);
    [/code]

    I'm only asking this because it looks like you are just wanting to submit a basic GET url and receive the result in a string.

    ><//~Psightoplasm`~
  • ferroarielferroariel Posts: 5Member
    I have never tried that before.... I'll give it a try and let you know... But, what's the difference between the WebClient approach and the one I used??

    GLAD you wrote!!!
    Ariel
  • PsightoplazmPsightoplazm Posts: 332Member ✭✭
    well all the stuff you were doing is actually done inside the WebClient - plus it handles all protocols and securities for basic page browsing. - it's like one step down from the WebBrowser object that actually renders the pages and runs scripts and all that.

    At least that's my understanding of it. :)

    ><//~Psightoplasm`~
  • ferroarielferroariel Posts: 5Member
    No luck at all... same error using WebClient object,
    dunno ... tks anyway...
    Ariel
  • PsightoplazmPsightoplazm Posts: 332Member ✭✭
    Is there some kind of firewall or protection system that may allow your web browser to access the internet, but not other applications on the machine you are running from?

    Vista I think by default is set up to do this.

    Or - are you running through a proxy? You might need to set up the proxy on the WebClient.

    Using the web client should be able to assure you there is nothing wrong with your code as far as accessing a web page, so something externally must be blocking or not allowing your application access to the outside world.

    Also - do you have to log into your site? Does it need a cookie or any kind of authentication in order to access the page you are accessing?

    ><//~Psightoplasm`~
  • PsightoplazmPsightoplazm Posts: 332Member ✭✭
    dammit - this thing keeps double-posting
Sign In or Register to comment.