PDA

Click to See Complete Forum and Search --> : [RESOLVED] httpwebrequests from asp.net application


d2005
Jun 6th, 2006, 10:15 AM
hi

is it possible have httpwebrequests from an asp.net application located on a server.

i have built an app, and put it on a server, but i dont think the requests are working because its on a server.

the requests work fine while im working on it. not over the web.

any thoughts guys

mendhak
Jun 6th, 2006, 10:23 AM
Do you control the server? Could be that the server is preventing the ASP.NET application from accessing the outside world.

d2005
Jun 6th, 2006, 10:29 AM
yes i control the server,
just got it set up today actually with some help from robdogg here at the vb.net forums

it is windows server 2003
so im hoping it must be that that is preventing the httprequests to be made.

is there any way to check this out.

mendhak
Jun 7th, 2006, 03:42 AM
Start by disabling the firewall. Also, if possible, try stepping through the code on the server itself to see where it errors out. Quite possibly when you're attempging a connection or transmission.

d2005
Jun 7th, 2006, 03:50 AM
if run it on this pc (through .net build), it works fine.

if i am running it on the server machines local host nothing happens also.

ill have a wee look into it today, i will let you know

i am unsure of how to step through the code on the server. :ehh:

d2005
Jun 7th, 2006, 05:27 AM
ive set up a small test project to send a httpwebrequest.create (windows app)

to see what happens.
it seems that the outside source i am sending to may be blocking the ip address.

i hope this is the case

mendhak
Jun 7th, 2006, 05:58 AM
Microsoft has set up a site called www.contoso.com you can use to check out basic WebRequests, GETs, POSTs, etc. which you can use.

mendhak
Jun 7th, 2006, 06:03 AM
Btw, they didn't set the website up for you, it's just a website they've setup for this kind of stuff for people in general.

d2005
Jun 7th, 2006, 07:43 AM
lol,
cheers mendhak

the outside source was blocking my ip