469,344 Members | 5,413 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,344 developers. It's quick & easy.

ampersand escape character doesn't work on impersonation password

1
I hope someone has a good answer for this stupid question.

I'm trying to connect to my sql server 2008 database and I'm using impersonation within my asp.net 3.5 application

<identity impersonate="true" userName="testUserName" password="test&test" />

Naturally the compiler won't compile until I use the escape character:

<identity impersonate="true" userName="testUserName" password="test&amp;test" />

So it compiles, unfortunately when I run my app, it get this:

Parser Error Message: Could not create Windows user token from the credentials specified in the config file. Error from the operating system 'Logon failure: unknown user name or bad password.
Source Error:
<identity impersonate="true" userName="testUserName" password="test&amp;test" />

Why isn't it converting my escape character into a proper &?
Jun 23 '10 #1
1 2659
Frinavale
9,735 Expert Mod 8TB
It isn't converting my escape character into a proper "&" because this is in your web.config file. There is no interpretation in this file.

Why won't the compiler accept "test&test"?
What error message are you seeing?
Jun 23 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

7 posts views Thread by Testbruger | last post: by
3 posts views Thread by newsgroupie | last post: by
15 posts views Thread by pkaeowic | last post: by
5 posts views Thread by fab | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.