winform accessing web

ganders

Active member
Joined
Nov 25, 2004
Messages
32
hi

i have a little winform-application which is supposed to open a webpage and read its content to a stream. but im getting an excepetion about missing permissions. so i tried working with system.net.webpermissions but without success.

can anybody point me into the right direction to get this problem solved?

best regards



Dim pClient As New System.Net.WebClient
Dim pStream As System.IO.Stream
pStream = pClient.OpenRead("http://www.cnn.com")
 
Back
Top