Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Can't get beyond HTTP Error
4 replies. Latest Post by balukr54 on November 19, 2008.
(0)
ihdalton68
Member
2 points
2 Posts
04-01-2008 8:53 AM |
I’m brand new with Silverlight, so all I’m trying to do is a very simplistic example with hooking up a WCF service and hook it up to the Silverlight control that is hosted within an aspx page.
I was able to take the existing WCF and have it feed a WinForms example without any errors, but when I then hook it up to the Silverlight example it blows up with the following error.
I have gone through all the forums and googled other answers, but so far nothing has worked.
My Page.xaml:
My Page.xaml.vb:
My ClientConfig:
The error happens (bolded section) with the Reference.vb file in the following function:
I have seen many answers saying it’s a cross-domain issue, but if I am running everything within the same machine/solution I don’t see how it can be that, but anyways I created a clientaccesspolicy.xml file and put it in a few places (I couldn’t figure out exactly where it belonged , so I put it in (inetpub/wwwroot, in the root of the web project directory). Here is my url for the test asp.net web project in case it helps.
If anyone can give me a glimpse on what is going on with this implementation would be greatly appreciated.
Sergey.L...
Contributor
7256 points
1,354 Posts
04-01-2008 11:37 AM |
You should debug your WCF service with Silverlight application.
04-01-2008 3:25 PM |
I have debugged the WCF w/ Silverlight and got that generic error (line in bold is the spot) in the following function within the reference.vb file
Public Function EndGetDataUsingDataContract(ByVal result As System.IAsyncResult) As ServiceReference.CompositeType Implements ServiceReference.IService1.EndGetDataUsingDataContract Dim _args((0) - 1) As Object
Dim _result As ServiceReference.CompositeType = CType(MyBase.EndInvoke("GetDataUsingDataContract", _args, result),ServiceReference.CompositeType)
Return _result
End Function
Allen Ch...
Star
13873 points
1,803 Posts
04-02-2008 10:08 PM |
Hi:
Try to put cross domain file under C:\Inetpub\wwwroot to see if it works
http://msdn2.microsoft.com/en-us/library/cc197955(VS.95).aspx
And please refer to our tutorial:
http://silverlight.net/Quickstarts/Remote/323aac2f-14cc-4dd8-bb40-fa2cb3c2e522.aspx
Regards
balukr54
124 points
143 Posts
11-19-2008 10:59 PM |
HI All,
I am using a silverlight 2.0 application. Application shows the following error in certain machines, when try to access a web service.
This is the error I am getting
. ========================================================
Additional information: [UnexpectedHttpResponseCode] Arguments:Not Found Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=2.0.30226.2&File=System.ServiceModel.dll&Key=UnexpectedHttpResponseCode ==============================================================================================
This problem occurred after we deployed our application to the server provided by our client. This issue is not in our localhost and in our servers. This error is coming only in one or two systems and only in IE. FireFox it is working fine. I tried with NikhilK’s Web Development Helper tool and the status of web service call shown is 200 and the response content contains the output XML also. we deployed the service in same application directory (www.mywebsite.com/service.asmx) and it is accessible from the machine which is giving problem. Also we can access clientaccesspolicy.xml & crossdomain.xml from the machine which is giving problem. Anyone Got any idea??
Thanks in advance for any help...
Balu