473,800 Members | 2,659 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

invalid url and proxy

since rewriting our site from asp to asp.net, weve receveid many complaints
from users stating that they get invalid urls, and cant access certain pages
of our site

nothing has changed in our configuration except site being written in
asp.net (from classic asp). the site is behind a Linux box with Squid 2.5

is there known issues between proxies and asp.net output..maybe with
viewstate? underscores in url?

ex:
Hi! Since you upgraded and gave the mls.ca site a new look (it's absolutely
beautiful, by the way), I cannot get a search to work. I tried advance
search to search only the city of Mission, British Columbia, and it won't
display any results. It gives me an error screen that I have copied below.
Why is this happening? Is it only happening to me? I haven't had any
problems in the past at all. Any ideas? I'm really missing mls.ca.

Thanks for your help!

This is the screen copy:

ERROR
The requested URL could not be retrieved

----------------------------------------------------------------------------
----

While trying to process the request:

Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/msword, application/vnd.ms-excel, application/vnd.ms-powerpoint,
application/x-shockwave-flash, */*
Referer: http://www.mls.ca/PropertySearch.aspx
Accept-Language: en-us
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR
1.1.4322)
Host: www.mls.ca
Content-Length: 666
Connection: Keep-Alive
Cache-Control: no-cache

__EVENTTARGET=& __EVENTARGUMENT =&__VIEWSTATE=d DwtNDM3MzA4NDMy Ozs%2B&xrootHea d
er%3ASideNav%3A 0%3AtxtKeywords =Community&xroo tHeader%3ASideN av%3A1%3Amlsnmb r
=MLS%C2%AE&_ctl 0%3AelProvinces %3A_ctl0=3&_ctl 0%3AtxtCity=Mis sion&_ctl0%3Atx t
Street=&_ctl0%3 AtxtPostalCode= &_ctl0%3AhAreaI D=&sel1=1&sel2= 20&_ctl0%3AelMi n
Price%3A_ctl0=3 00000&_ctl0%3Ae lMaxPrice%3A_ct l0=350000&_ctl0 %3AelMinRent%3A _
ctl0=-1&_ctl0%3AelMax Rent%3A_ctl0=0& _ctl0%3AelBeds% 3A_ctl0=3-0&_ctl0%3Addl Fe
atureType=all&_ ctl0%3AelBaths% 3A_ctl0=2-0&_ctl0%3AtxtRe altorName=&_ctl 0%3Atx
tBrokerCompany= &_ctl0%3AddlOrd er=A&_ctl0%3Add lOrderField=1&_ ctl0%3AddlPageS i
ze=10&_ctl0%3A_ ctl1%3AtxtNewNa me=&_ctl0%3Abtn Search=Search

The following error was encountered:

a.. Invalid Request
Some aspect of the HTTP Request is invalid. Possible problems:

a.. Missing or unknown request method
b.. Missing URL
c.. Missing HTTP Identifier (HTTP/1.0)
d.. Request is too large
e.. Content-Length missing for POST or PUT requests
f.. Illegal character in hostname; underscores are not allowed
Your cache administrator is we*******@mls.c a.

----------------------------------------------------------------------------
----
Generated Fri, 13 Feb 2004 17:07:29 GMT by www.mls.ca (Squid/2.4.STABLE6
Nov 18 '05 #1
6 6524
unfortunately asp.net is not w3c compliant in naming controls, and will
generate invalid names. a control name can not legally start with an "_"
(underscore), but asp.net uses this convention a lot. your proxy server is
validating the post data (and rejecting invalid posts - generally a good
idea). you might be able to turn this off.

-- bruce (sqlwork.com)


"sviau" <sv***@crea.c a> wrote in message
news:#$******** ******@TK2MSFTN GP12.phx.gbl...
since rewriting our site from asp to asp.net, weve receveid many complaints from users stating that they get invalid urls, and cant access certain pages of our site

nothing has changed in our configuration except site being written in
asp.net (from classic asp). the site is behind a Linux box with Squid 2.5

is there known issues between proxies and asp.net output..maybe with
viewstate? underscores in url?

ex:
Hi! Since you upgraded and gave the mls.ca site a new look (it's absolutely beautiful, by the way), I cannot get a search to work. I tried advance
search to search only the city of Mission, British Columbia, and it won't
display any results. It gives me an error screen that I have copied below.
Why is this happening? Is it only happening to me? I haven't had any
problems in the past at all. Any ideas? I'm really missing mls.ca.

Thanks for your help!

This is the screen copy:

ERROR
The requested URL could not be retrieved

-------------------------------------------------------------------------- -- ----

While trying to process the request:

Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/msword, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/x-shockwave-flash, */*
Referer: http://www.mls.ca/PropertySearch.aspx
Accept-Language: en-us
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR
1.1.4322)
Host: www.mls.ca
Content-Length: 666
Connection: Keep-Alive
Cache-Control: no-cache

__EVENTTARGET=& __EVENTARGUMENT =&__VIEWSTATE=d DwtNDM3MzA4NDMy Ozs%2B&xrootHea d er%3ASideNav%3A 0%3AtxtKeywords =Community&xroo tHeader%3ASideN av%3A1%3Amlsnmb r =MLS%C2%AE&_ctl 0%3AelProvinces %3A_ctl0=3&_ctl 0%3AtxtCity=Mis sion&_ctl0%3Atx t Street=&_ctl0%3 AtxtPostalCode= &_ctl0%3AhAreaI D=&sel1=1&sel2= 20&_ctl0%3AelMi n Price%3A_ctl0=3 00000&_ctl0%3Ae lMaxPrice%3A_ct l0=350000&_ctl0 %3AelMinRent%3A _ ctl0=-1&_ctl0%3AelMax Rent%3A_ctl0=0& _ctl0%3AelBeds% 3A_ctl0=3-0&_ctl0%3Addl Fe atureType=all&_ ctl0%3AelBaths% 3A_ctl0=2-0&_ctl0%3AtxtRe altorName=&_ctl 0%3Atx tBrokerCompany= &_ctl0%3AddlOrd er=A&_ctl0%3Add lOrderField=1&_ ctl0%3AddlPageS i ze=10&_ctl0%3A_ ctl1%3AtxtNewNa me=&_ctl0%3Abtn Search=Search

The following error was encountered:

a.. Invalid Request
Some aspect of the HTTP Request is invalid. Possible problems:

a.. Missing or unknown request method
b.. Missing URL
c.. Missing HTTP Identifier (HTTP/1.0)
d.. Request is too large
e.. Content-Length missing for POST or PUT requests
f.. Illegal character in hostname; underscores are not allowed
Your cache administrator is we*******@mls.c a.

-------------------------------------------------------------------------- -- ----
Generated Fri, 13 Feb 2004 17:07:29 GMT by www.mls.ca (Squid/2.4.STABLE6

Nov 18 '05 #2
Hi Bruce,
Thanks for posting in the community!
From your description, you found that some certain ASP.NET web pages's
response contend can't be correctly send back to the client and your IIS
server is behind a linux proxy server. Also, this didn't occur when you're
using the classic
ASP before, yes?
If there is anything I misunderstood, please feel free to let me know.

I've view the other messages and I think bruce barker's suggestion is quite
reasonable and informative, you may have a check on your linux box to see
whether it has prehibit some certain particular characters for HTTP
content. Also, you can try turn off some certain checks on it to see
whether the situation will has any changes. Meanwhile, if you have any
questions or have any new findings, please feel free to post here with us.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #3
is there no way to prevent asp.net from using the underscores in naming
conrols? any solution other than asking our users in modifying their
proxies ???

thanks
stephane

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #4
Hello Stephane,

I think what Bruce and Steven suggested is to revise the setting of Linux
box with Squid 2.5 in server side. You don't need to change each client's
settings.

There is no easy way to change the default naming conventions in asp.net.
You can write customized HTTP handler to deal with that in theory. However,
that is a time consuming work.

So I suggest you try the above method first to see if it could resolve the
problem. If the problem still happens, please reply to this thread and we
will follow up here.

Also, I visited www.mls.ca and clicked advanced search. However, it seems
that I can't reproduce the problem here. Could you please paste here
detailed repro steps?

Thanks very much.

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! ¨C www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 18 '05 #5
im not clear on what settings im supposed to change on the proxy, server
side. Im not clear on how the proxy is altering the response from the
IIS servers?

one thing that i know is the IIS server returns http 1.1 while the squid
proxy downgrades it to http 1.0; would that cause the problem?

While trying to process the request:

Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/msword, application/vnd.ms-excel,
application/vnd.ms-powerpoint, application/x-shockwave-flash, */*
Referer: <Web Address>
Accept-Language: en-us
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR
1.1.4322)
Host: www.mls.ca
Content-Length: 666
Connection: Keep-Alive
Cache-Control: no-cache

__EVENTTARGET=& __EVENTARGUMENT =&__VIEWSTATE=d DwtNDM3MzA4NDMy Ozs%2B&xroot
Header%3ASideNa v%3A0%3AtxtKeyw ords=Community& xrootHeader%3AS ideNav%3A1%3
Amlsnmbr=MLS%C2 %AE&_ctl0%3AelP rovinces%3A_ctl 0=3&_ctl0%3Atxt City=Mission
&_ctl0%3AtxtStr eet=&_ctl0%3Atx tPostalCode=&_c tl0%3AhAreaID=& sel1=1&sel2=
20&_ctl0%3AelMi nPrice%3A_ctl0= 300000&_ctl0%3A elMaxPrice%3A_c tl0=350000&_
ctl0%3AelMinRen t%3A_ctl0=-1&_ctl0%3AelMax Rent%3A_ctl0=0& _ctl0%3AelBeds% 3
A_ctl0=3-0&_ctl0%3AddlFe atureType=all&_ ctl0%3AelBaths% 3A_ctl0=2-0&_ctl0%
3AtxtRealtorNam e=&_ctl0%3AtxtB rokerCompany=&_ ctl0%3AddlOrder =A&_ctl0%3Ad
dlOrderField=1& _ctl0%3AddlPage Size=10&_ctl0%3 A_ctl1%3AtxtNew Name=&_ctl0%
3AbtnSearch=Sea rch
The following error was encountered:

Invalid Request
Some aspect of the HTTP Request is invalid. Possible problems:

Missing or unknown request method
Missing URL
Missing HTTP Identifier (HTTP/1.0)
Request is too large
Content-Length missing for POST or PUT requests
Illegal character in hostname; underscores are not allowed
Your cache administrator is we*******@mls.c a.
thanks
stephane
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #6
Hello Stephane,

Thanks for your update.

I am not familar with that Linux porxy product and not sure of whether
there is such setting on it. Bruce's first reply mentioned it and I felt it
worths a try.

I just discussed with with our IIS support professionals. We can try
forcing IIS to reponse HTTP 1.0 through one registry:
HKEY_LOCAL_MACH INE\SYSTEM\Curr entControlSet\S ervices\W3SVC\P arameters
\ReplyWithHTTP1 .1 REG_DWORD to 0 (zero)

Please refer to "IIS Registry Setting ReplyWithHTTP1. 1 May Cause Problems"
http://support.microsoft.com/?id=193419 for more info on it.

Besides, does this problem happen to all of your customers? Or just some of
them? I visited that web site but can't repro the problem. I noticed there
is "Missing HTTP Identifier (HTTP/1.0)" in your error description, could
you let your client use HTTP 1.0 to see if the problem still happens to
them? We can change this setting in IE Tools menu->Internet
Options->Advanced tab.

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! ¨C www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 18 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5586
by: MarkWH | last post by:
I am writing a simple reverse proxy using .Net. The basic design is to capture all traffic (from all URL's) in an HttpHandler and the respond accordingly. The problem is that I when a URL is received that contains a "`" character I get the exception listed above; and the call stack listed below. Questions; 1) Where can I find more documentation on the FileChangesMonitor class?
9
6655
by: MR | last post by:
I get the following Exception "The data at the root level is invalid. Line 1, position 642" whenever I try to deserialize an incoming SOAP message. The incoming message is formed well and its length is 642 bytes ( I have appended it to the end of this message). I suspect that the reason may have something to do with an incorrect declaration of which class to de-serialize to. In the attached code I substituted @@@@@@@ in the code below with...
6
32012
by: jasn | last post by:
Hello I am getting the following error message when I try and send an XML sting to a web service, I read somewhere that most web services prefer ascii and some throw errors when using unicode so I have changed the encoding but still cant get rid of the error. System.Xml.XmlException: '', hexadecimal value 0x00, is an invalid character. Line 6, position 124. at System.Xml.XmlScanner.ScanHexEntity() at...
0
953
by: Ron James | last post by:
I'm using C# to write test cases for our http SOAP server. I've generated a proxy class from our wsdl and the positive test cases are simple to write. However I'd also like to write negative test cases, including sending garbage to our server and ensuring it handles things gracefully. I'm thinking along the lines of deriving a WebRequest class (MyHttpWebRequest) from HttpWebRequest and deriving a proxy class from my WSDL generated proxy...
0
9691
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9551
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10279
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10255
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10036
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9092
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6815
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4150
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2948
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.