Click here to Skip to main content
14,767,355 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a Problem in my website.

HTTP Error 400.0 - Bad Request
ASP.NET detected invalid characters in the URL.

if anyone have solution about this problem please share with me solution...
Posted
Comments
Herman<T>.Instance 27-Aug-15 7:48am
   
- what was the url
- how is his url generated?
Member 11479116 27-Aug-15 7:58am
   
url is where problem occured http://hunarmandindia.com/(S(4wuduaje2xivjefwffjv5bgq))/Company/recruiter-login.aspx
Herman<T>.Instance 27-Aug-15 8:03am
   
You have set some setting in your web.config about session state. It now puts it in the url....
Member 11479116 27-Aug-15 8:23am
   
Hi.
Plz tell me what kind of settings i need to set here.
Herman<T>.Instance 27-Aug-15 8:34am
   
see: https://msdn.microsoft.com/en-us/library/ms178586.aspx
Sanket Saxena 27-Aug-15 8:35am
   
Your URL is incorrect and cannot parse by the web server.
What is (S(4wuduaje2xivjefwffjv5bgq))? is this mandatory to pass?
Member 11479116 27-Aug-15 8:42am
   
when I write <sessionstate mode="InProc" cookieless="true" timeout="525600"> in web config it will create (S(4wuduaje2xivjefwffjv5bgq)) this url also. for set session state.

1 solution

   
Comments
Member 11479116 28-Aug-15 3:08am
   
I try all methods above but do not get solution.

Is there any solution for that ?
Dnyaneshwar_Ghodake 28-Aug-15 5:34am
   
replace special characters with their encode value
like
' ' with '%20',

'&'with '%26
in your query string.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900