Reputation: 1 Apprentice
- New Members
- Active Posts:
- 4 (0.01 per day)
- 14-November 12
- Profile Views:
- Last Active:
- Dec 04 2012 04:18 PM
- Dream Kudos:
Posts I've Made
Posted 27 Nov 2012I got some help from Microsoft:
add this before webrequest.create:
AppDomain.CurrentDomain.SetData("APP_CONFIG_FILE", " c:\inetpub\wwwroot\testpgm.exe.config")
This resolves an issue with an invalid path. The config file doesn't even have to exist. It just needs that valid path.
add this after webrequest.create if you are using a proxy
myRequest.Proxy = new WebProxy(“Http://10.0.0.15:8081”,true)
replace 10.0.0.15:8081 with your proxy.
Posted 26 Nov 2012If it is the code that is wrong then WebRequest.Create should fail when running as an application and under the IDE during debugging, right? WebRequest.Create works perfectly in those two instances.
These are the IMPORTS I am using:
Imports System Imports System.Collections Imports System.IO Imports System.Text Imports System.Xml Imports System.Xml.Serialization Imports System.Net
- Member Title:
- New D.I.C Head
- Age Unknown
- Birthday Unknown
- Click here to e-mail me
darrenrm hasn't added any friends yet.