View Single Post
  #1 (permalink)  
Old 04-15-2008
JNg JNg is offline
Registered User
 
Name: Jennifer Ng
Organization: RBC
Project: Ice for Silverlight sample
 
Join Date: Feb 2008
Posts: 18
Silverlight client: Failed to contact the Bridge

Hi, I have configured IIS to host the sample IceSL-0.1.0 (which also contains the bridge). I've added PUT to the list of verbs handled by .ashx and added all the configuration needed (MIME types etc).

However, clicking on a button returns:

Code:
OnClick method: Call failed with exception:
Ice.ProtocolException
   reason = "invalid http response code: Not Found"
at IceInternal.ProxyFactory.checkRetryAfterException(LocalException ex, REference ref
at Ice.ObjectPrxHelperBase.handleException__(LocalException ex, Int32 cnt)
at Ice.ObjectPrxHelperBase.handleExceptionWrapperRelaxed__(LocalExceptionWrapper e
at Demo.HelloPrxHelper.sayHello(Int32 delay, Dictionary '2 context__, Boolean explicitC
at Demo.HelloPrxHelper.sayHello(Int32 delay)
at helloC.Page.OnClick(Object sender, MouseEventArgs e)
My IIS error log only shows (when clicking a button):
- - - 404

I installed LiveHTTPHeaders to watch the request/response from Firefox, and it seems that Page.xaml.cs is sending a PUT request to the Bridge, but a response of 404 Not Found is returned

http://myIPaddress:1287/hellosl/IceBridge.ashx

PUT /hellosl/IceBridge.ashx HTTP/1.1
Host: myIPaddress:1287
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-gb,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Content-Type: application/binary
Referer: http://myIPaddress:1287/hellosl/TestPage.html
Content-Length: 5
IHTP

HTTP/1.x 404 Object Not Found
Server: Microsoft-IIS/5.1
Date: Tue, 15 Apr 2008 21:04:40 GMT
Connection: close
Content-Type: text/html
Content-Length: 102

Just wondering if anyone has encountered this problem? I am using Windows XP SP2. This works fine when i run from Visual studio (localhost).

Last edited by JNg : 04-15-2008 at 06:58 PM.
Reply With Quote