Click here to Skip to main content
15,896,727 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralQuestion Pin
nithydurai28-Apr-08 20:04
nithydurai28-Apr-08 20:04 
GeneralRe: Question Pin
Sam Xavier28-Apr-08 20:10
Sam Xavier28-Apr-08 20:10 
GeneralRe: Question Pin
Christian Graus28-Apr-08 20:23
protectorChristian Graus28-Apr-08 20:23 
GeneralRe: Question Pin
eyeseetee28-Apr-08 21:27
eyeseetee28-Apr-08 21:27 
GeneralRe: Question Pin
Christian Graus28-Apr-08 21:40
protectorChristian Graus28-Apr-08 21:40 
GeneralRe: Question Pin
Vasudevan Deepak Kumar29-Apr-08 0:26
Vasudevan Deepak Kumar29-Apr-08 0:26 
GeneralRe: Question Pin
Vasudevan Deepak Kumar29-Apr-08 0:25
Vasudevan Deepak Kumar29-Apr-08 0:25 
QuestionProblem using webclient : (illegal characters in Path) error Pin
Kiran Beladiya28-Apr-08 20:02
professionalKiran Beladiya28-Apr-08 20:02 
I am facing problem while making web request by WebClient.
I am making request to google map geocode apge to findout the longitude and latitude of particular address.
Here is my code to do that :

Dim QueryString As String
Dim responseText As String = ""
Dim WC As New Net.WebClient
Dim SR As IO.StreamReader

QueryString = "?q=" & getValidAddressString() & "&output=csv&key=" & ConfigurationManager.AppSettings("GeoCodeKey")

Dim redirectURL As String = ConfigurationManager.AppSettings("GeoCodeURL") & QueryString
SR = New IO.StreamReader(WC.OpenRead(redirectURL))
responseText = SR.ReadToEnd()
SR.Close()
processResponseText(responseText)


The strange thing is that for same address string, the code is working without any problem in one page. While the same code(have copy pasted) in another page is throwing the following error :

Illegal characters in path.


Exception Details: System.ArgumentException

at System.Security.Permissions.FileIOPermission.HasIllegalCharacters(String[] str)
at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath)
at System.IO.Path.GetFullPath(String path)
at System.Net.WebClient.GetUri(String path)
at System.Net.WebClient.DownloadData(String address)
at KG.GeoCodeHelper.Page_Load(Object sender, EventArgs e) in
GeneralRe: Problem using webclient : (illegal characters in Path) error Pin
Christian Graus28-Apr-08 20:25
protectorChristian Graus28-Apr-08 20:25 
GeneralRe: Problem using webclient : (illegal characters in Path) error Pin
Kiran Beladiya28-Apr-08 23:55
professionalKiran Beladiya28-Apr-08 23:55 
GeneralRe: Problem using webclient : (illegal characters in Path) error Pin
Christian Graus29-Apr-08 1:36
protectorChristian Graus29-Apr-08 1:36 
GeneralRe: Problem using webclient : (illegal characters in Path) error Pin
Kiran Beladiya29-Apr-08 1:55
professionalKiran Beladiya29-Apr-08 1:55 
AnswerRe: Problem using webclient : (illegal characters in Path) error Pin
snip11-Jun-09 23:37
snip11-Jun-09 23:37 
GeneralAbout the writer Pin
Tristania Dementium28-Apr-08 19:59
Tristania Dementium28-Apr-08 19:59 
GeneralRe: About the writer Pin
Christian Graus28-Apr-08 20:32
protectorChristian Graus28-Apr-08 20:32 
GeneralRe: About the writer Pin
flash66529-Apr-08 16:11
flash66529-Apr-08 16:11 
Generalproblem with formview update Pin
lovedotnet28-Apr-08 19:15
lovedotnet28-Apr-08 19:15 
GeneralRe: problem with formview update Pin
Christian Graus28-Apr-08 19:36
protectorChristian Graus28-Apr-08 19:36 
GeneralRe: problem with formview update Pin
lovedotnet29-Apr-08 18:25
lovedotnet29-Apr-08 18:25 
GeneralRe: problem with formview update Pin
Christian Graus29-Apr-08 19:21
protectorChristian Graus29-Apr-08 19:21 
Questionwhat is the name of this cms Pin
subai28-Apr-08 18:17
subai28-Apr-08 18:17 
AnswerRe: what is the name of this cms Pin
Christian Graus28-Apr-08 19:33
protectorChristian Graus28-Apr-08 19:33 
GeneralRe: what is the name of this cms Pin
subai28-Apr-08 20:01
subai28-Apr-08 20:01 
GeneralRe: what is the name of this cms Pin
Christian Graus28-Apr-08 20:24
protectorChristian Graus28-Apr-08 20:24 
GeneralRe: what is the name of this cms Pin
subai28-Apr-08 20:42
subai28-Apr-08 20:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.