Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I call a aspx page as...
C#
booking.aspx?htlid=12333&
ckhin=2014-05-04&
ckhout=2014-05-07&
rbssss=265928&
allodet=jM6InNpZCI7aToxMDA4O3M6MzoidGlkIjtzOjE2OiIxMzkxMDU1MzM5MDAwMDAxIjtzOjE6Im4iO2k6MTtzOjM6InNjYSI7YToxNTp7czozOiJycGMiO3M6NjoiR1ItQUxMIjtzOjY6ImNydWxlcyI7YTozOntpOjA7TzoxNjoiQ2FuY2VsbGF0aW9uUnVsZSI6MTQ6e3M6ODoiZnJvbURhdGUiO047czo2OiJ0b0RhdGUiO3M6MTk6IjIwMTQtMDEtMzEgMjI6Mjk6MDAiO3M6ODoidGltZXpvbmUiO2k6MzAwO3M6MTg6InJldHVybmVkQnlTdXBwbGllciI7YjowO3M6MjA6ImNhbmNlbGxhdGlvblJ1bGVUZXh0IjtOO3M6MTQ6ImNhbmNlbFBvc3NpYmxlIjtiOjE7czoxMzoiYW1lbmRQb3NzaWJsZSI7YjoxO3M6Njoibm9TaG93IjtiOjA7czoxNzoiYXJyQWRkaXRpb25hbEluZm8iO047czoxMDoicHJpY2VWYWx1ZSI7aTowO3M6OToiZm9ybWF0dGVkIjtOO3M6MTM6InByaWNlQ3VycmVuY3kiO3M6MzoiMzY2IjtzOjIxOiJwcmljZUluY2x1ZGVzQWxsVGF4ZXMiO2I6MTtzOjE5OiJtaW5pbXVtU2VsbGluZ1ByaWNlIjtpOjA7fWk6MTtPOjE2OiJDYW5jZWxsYXRpb25SdWxlIjoxNDp7czo4OiJmcm9tRGF0ZSI7czoxOToiMjAxNC0wMS0zMSAyMjoyOTowMSI7czo2OiJ0b0RhdGUiO3M6MTk6IjIwMTQtMDItMDQgMjI6Mjk6NTkiO3M6ODoidGltZXpvbmUiO2k6MzAwO3M6MTg6InJldHVybmVkQnlTdXBwbGllciI7YjoxO3M6MjA6ImNhbmNlbGxhdGl&
price=491.83&
brata=544

when I run above, it gives me error as...
HTML
404 Not Found

The Requested document was not found on this server
Posted
v2

Given 404 is not found, are you sure that the page is called booking.aspx?
 
Share this answer
 
Comments
maulikshah1990 29-Jan-14 23:49pm    
yes...i have that on server,,,also when i remove allodet=jM6InNpZCI7aToxMDA4O3M6MzoidGlkIjtzOjE2OiIxMzkxMDU1MzM5MDAwMDAxIjtzOjE6Im4iO2k6MTtzOjM6InNjYSI7YToxNTp7czozOiJycGMiO3M6NjoiR1ItQUxMIjtzOjY6ImNydWxlcyI7YTozOntpOjA7TzoxNjoiQ2FuY2VsbGF0aW9uUnVsZSI6MTQ6e3M6ODoiZnJvbURhdGUiO047czo2OiJ0b0RhdGUiO3M6MTk6IjIwMTQtMDEtMzEgMjI6Mjk6MDAiO3M6ODoidGltZXpvbmUiO2k6MzAwO3M6MTg6InJldHVybmVkQnlTdXBwbGllciI7YjowO3M6MjA6ImNhbmNlbGxhdGlvblJ1bGVUZXh0IjtOO3M6MTQ6ImNhbmNlbFBvc3NpYmxlIjtiOjE7czoxMzoiYW1lbmRQb3NzaWJsZSI7YjoxO3M6Njoibm9TaG93IjtiOjA7czoxNzoiYXJyQWRkaXRpb25hbEluZm8iO047czoxMDoicHJpY2VWYWx1ZSI7aTowO3M6OToiZm9ybWF0dGVkIjtOO3M6MTM6InByaWNlQ3VycmVuY3kiO3M6MzoiMzY2IjtzOjIxOiJwcmljZUluY2x1ZGVzQWxsVGF4ZXMiO2I6MTtzOjE5OiJtaW5pbXVtU2VsbGluZ1ByaWNlIjtpOjA7fWk6MTtPOjE2OiJDYW5jZWxsYXRpb25SdWxlIjoxNDp7czo4OiJmcm9tRGF0ZSI7czoxOToiMjAxNC0wMS0zMSAyMjoyOTowMSI7czo2OiJ0b0RhdGUiO3M6MTk6IjIwMTQtMDItMDQgMjI6Mjk6NTkiO3M6ODoidGltZXpvbmUiO2k6MzAwO3M6MTg6InJldHVybmVkQnlTdXBwbGllciI7YjoxO3M6MjA6ImNhbmNlbGxhdGl&
from above and run it, i runs properly...

but i want that..it is important
Hello Damian,

I guess this is not an answer. Please delete this and if you want to reply to Question, then click on "Have a Question or Comment" below the Question.

Thanks,
Tadit
Are you sure the page is available.why you are sending so long parameters from the address bar.It has some limit.
 
Share this answer
 
Comments
maulikshah1990 29-Jan-14 23:51pm    
If there is limit, it can give me error for long url parameters...why it is giving 404 not found...
pls advice
Ahmed Jubayer 30-Jan-14 0:01am    
test it manually.run the application then call the page with some parameters. if it works then check your link...
maulikshah1990 30-Jan-14 0:03am    
No, my issue is same runs on my local pc using localhost and iis server,,,and it gives error in live server
Ahmed Jubayer 30-Jan-14 0:53am    
is the link ok???you sure the page is right there??? if ok then copy the values from the live address bar then past it to your local application.
Your query string should be short. You are getting error 404.15


Your solution should be this link:

Request Filtering <requestfiltering>[^]

HTTP Substatus Description
404.5 URL Sequence Denied
404.6 Verb Denied
404.7 File Extension Denied
404.8 Hidden Namespace
404.10 Request Header Too Long
404.11 URL Double Escaped
404.12 URL Has High Bit Chars
404.13 Content Length Too Large
404.14 URL Too Long
404.15 Query String Too Long
404.18 Query String Sequence Denied
404.19 Denied by Filtering Rule



Query string length depends on browser:

http://www.boutell.com/newfaq/misc/urllength.html[^]

Add following code in web.Config file

XML
<system.webServer>
  <security>
    <requestFiltering>
      <requestLimits maxQueryString="nnn"/>
    </requestFiltering>
  </security>
</system.webServer>




XML
You may have to add the following in your web.config as well

 <httpRuntime maxQueryStringLength="32768" maxUrlLength="65536"/>



Check following links:

http://msdn.microsoft.com/en-us/library/ms689462%28v=vs.90%29.aspx[^]

http://msdn.microsoft.com/en-us/library/e1f13641%28v=vs.100%29.aspx[^]


http://www.iis.net/configreference/system.webserver/security/requestfiltering/requestlimits[^]
 
Share this answer
 
v3
Comments
maulikshah1990 30-Jan-14 0:07am    
Hi Sandeep

I tested in chrome , it works, but same in firefox gives error...
also it runs properly on my localhost.
Sandeep Singh Shekhawat 30-Jan-14 0:11am    
FireFox and chrome, Query String size can be different. Local development application runs on VS Development server but after deploy it runs on IIS so need some change in web.config as per IIS.
Sandeep Singh Shekhawat 30-Jan-14 0:15am    
I have updated my solution. pls check my updated solution.
maulikshah1990 30-Jan-14 0:19am    
Ok..so according to you , i should limit the parameters in querystring , or add above in web.config on server ...????right ????
Sandeep Singh Shekhawat 30-Jan-14 0:31am    
Yes. You should try this way..

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