Connecting Tech Pros Worldwide Forums | Help | Site Map

ky with http in value causes debug to fail

JerryK
Guest
 
Posts: n/a
#1: Nov 19 '05
HI,

If add a key of the form

<add key="mykey" value=http://somewhere.com?id= />

to my web.conmfig I get an error that it can't debug in Visual Studio. Has
anyone seen this before?

jerry



Ken Cox [Microsoft MVP]
Guest
 
Posts: n/a
#2: Nov 19 '05

re: ky with http in value causes debug to fail


Hey Jerry,

The xml isn't well-formed. The value of the value attribute must be quoted:

<add key="mykey" value="http://somewhere.com?id=" />

"JerryK" <jerryk@nospam.com> wrote in message
news:eufVk2yAFHA.3120@TK2MSFTNGP12.phx.gbl...[color=blue]
> HI,
>
> If add a key of the form
>
> <add key="mykey" value=http://somewhere.com?id= />
>
> to my web.conmfig I get an error that it can't debug in Visual Studio.
> Has anyone seen this before?
>
> jerry
>
>[/color]

JerryK
Guest
 
Posts: n/a
#3: Nov 19 '05

re: ky with http in value causes debug to fail


My example was poor. In the code it is in quotes. I also tried replacing
the double quotes with single quotes.

jerry


"Ken Cox [Microsoft MVP]" <BANSPAMken_cox@sympatico.ca> wrote in message
news:unjZGNzAFHA.3772@TK2MSFTNGP10.phx.gbl...[color=blue]
> Hey Jerry,
>
> The xml isn't well-formed. The value of the value attribute must be
> quoted:
>
> <add key="mykey" value="http://somewhere.com?id=" />
>
> "JerryK" <jerryk@nospam.com> wrote in message
> news:eufVk2yAFHA.3120@TK2MSFTNGP12.phx.gbl...[color=green]
>> HI,
>>
>> If add a key of the form
>>
>> <add key="mykey" value=http://somewhere.com?id= />
>>
>> to my web.conmfig I get an error that it can't debug in Visual Studio.
>> Has anyone seen this before?
>>
>> jerry
>>
>>[/color]
>[/color]


JerryK
Guest
 
Posts: n/a
#4: Nov 19 '05

re: ky with http in value causes debug to fail


Found the problem. The value cannot contain an ampersand for some reason.
Very strange. I guess I will use entities instead.

jerry


"JerryK" <jerryk@nospam.com> wrote in message
news:ejncEZzAFHA.612@TK2MSFTNGP09.phx.gbl...[color=blue]
> My example was poor. In the code it is in quotes. I also tried replacing
> the double quotes with single quotes.
>
> jerry
>
>
> "Ken Cox [Microsoft MVP]" <BANSPAMken_cox@sympatico.ca> wrote in message
> news:unjZGNzAFHA.3772@TK2MSFTNGP10.phx.gbl...[color=green]
>> Hey Jerry,
>>
>> The xml isn't well-formed. The value of the value attribute must be
>> quoted:
>>
>> <add key="mykey" value="http://somewhere.com?id=" />
>>
>> "JerryK" <jerryk@nospam.com> wrote in message
>> news:eufVk2yAFHA.3120@TK2MSFTNGP12.phx.gbl...[color=darkred]
>>> HI,
>>>
>>> If add a key of the form
>>>
>>> <add key="mykey" value=http://somewhere.com?id= />
>>>
>>> to my web.conmfig I get an error that it can't debug in Visual Studio.
>>> Has anyone seen this before?
>>>
>>> jerry
>>>
>>>[/color]
>>[/color]
>
>[/color]


MWells
Guest
 
Posts: n/a
#5: Nov 19 '05

re: ky with http in value causes debug to fail


Ampersands must be expressed as &amp; this is part of the XML syntax.
(since an ampersand signifies the start of an XML entity).

"JerryK" <jerryk@nospam.com> wrote in message
news:OakUkezAFHA.2804@TK2MSFTNGP15.phx.gbl...[color=blue]
> Found the problem. The value cannot contain an ampersand for some reason.
> Very strange. I guess I will use entities instead.
>
> jerry
>
>
> "JerryK" <jerryk@nospam.com> wrote in message
> news:ejncEZzAFHA.612@TK2MSFTNGP09.phx.gbl...[color=green]
> > My example was poor. In the code it is in quotes. I also tried[/color][/color]
replacing[color=blue][color=green]
> > the double quotes with single quotes.
> >
> > jerry
> >
> >
> > "Ken Cox [Microsoft MVP]" <BANSPAMken_cox@sympatico.ca> wrote in message
> > news:unjZGNzAFHA.3772@TK2MSFTNGP10.phx.gbl...[color=darkred]
> >> Hey Jerry,
> >>
> >> The xml isn't well-formed. The value of the value attribute must be
> >> quoted:
> >>
> >> <add key="mykey" value="http://somewhere.com?id=" />
> >>
> >> "JerryK" <jerryk@nospam.com> wrote in message
> >> news:eufVk2yAFHA.3120@TK2MSFTNGP12.phx.gbl...
> >>> HI,
> >>>
> >>> If add a key of the form
> >>>
> >>> <add key="mykey" value=http://somewhere.com?id= />
> >>>
> >>> to my web.conmfig I get an error that it can't debug in Visual Studio.
> >>> Has anyone seen this before?
> >>>
> >>> jerry
> >>>
> >>>
> >>[/color]
> >
> >[/color]
>
>[/color]


Closed Thread