<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.silverlight.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Programming with .NET - General</title><link>http://forums.silverlight.net/forums/17.aspx</link><description>General discussions around authoring Silverlight .NET applications.</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: Re: Re: Re: Re: Re: Re: Re: Calling webservice - Protocolexception - 404</title><link>http://forums.silverlight.net/forums/thread/79617.aspx</link><pubDate>Mon, 11 Aug 2008 18:54:24 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:79617</guid><dc:creator>Tuizi</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/79617.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=79617</wfw:commentRss><description>Hello,

Did you find a solution for this problem?

Because, me, I just created a Service with a method named &amp;quot;DoWork&amp;quot; who return an int, and when I try to use this fonction from my silverlight application I get &amp;quot;ProtocolException: The remote server returned an unexpected response: (404) Not Found.&amp;quot;</description></item><item><title>Re: Re: Re: Re: Re: Re: Re: Calling webservice - Protocolexception - 404</title><link>http://forums.silverlight.net/forums/thread/74299.aspx</link><pubDate>Thu, 24 Jul 2008 15:18:47 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:74299</guid><dc:creator>klukkluk</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/74299.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=74299</wfw:commentRss><description>&lt;p&gt;Okay, it&amp;#39;s a bit hard to explain, but i&amp;#39;ll give it a try.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to create a master detail scenario in silverlight. The master part, the screen with a datagrid, works fine, it&amp;#39;s the detail part that doesn&amp;#39;t work. Both master and detail screens use the same webservice, MasterDetail.svc. This returns a Response object. This Response object has column definitions and rows. Each row is a collection of cells, which are objects. I have defined the cells as objects because I want to create a generic solution for displaying data from any databasetable in my database. So when the databasecolumn can be mapped to an int, this results in the webservice to generate an &amp;lt;anytype xsi:type=&amp;quot;xsd:int&amp;quot;&amp;gt; for this cell. Same for strings etc. Works perfectly for the master scenario. &lt;/p&gt;
&lt;p&gt;In the detail scenario, the same Response object is returned, now with all columns from the current table. The cells collection is filled much like in the master scenario. But in this case it&amp;#39;s also possible that the current databasecolumn is a relationship to another table. In the detailscreen, this should become a combobox. To fill this combobox, I need the data in the referenced table in the response object. So what I do is create another Response object, with column definitions and rows, and put this object in the cells collection. This gets serialized as: &amp;lt;anytype xsi:type=&amp;quot;Response&amp;quot;&amp;gt;. So, a Response object inside a Response object.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have put&amp;nbsp;a bit of logging inside the webservice, an xmlserializer which writes to a new file on each request. The response gets&amp;nbsp;written to file perfectly each time in both scenarios. But the detail scenario still raises the above exception in the reference.cs unfortunately. I also use Nukhil&amp;#39;s web development helper to see what&amp;#39;s going on. This logs the master response perfectly, but when the exception in detail mode is raised, this tool also raises an exception, so not much help there.&lt;/p&gt;
&lt;p&gt;I appreciate your effort to look into this very much. If you need some logging files or some further explanation&amp;nbsp;just let me know.&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Re: Re: Re: Calling webservice - Protocolexception - 404</title><link>http://forums.silverlight.net/forums/thread/74283.aspx</link><pubDate>Thu, 24 Jul 2008 14:36:33 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:74283</guid><dc:creator>sladapter</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/74283.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=74283</wfw:commentRss><description>&lt;p&gt;I asked you to post your Service method and your return Object defination ( you said it was a complex type) that you are having problem with. But you never did. &lt;/p&gt;&lt;p&gt;Nobody knows what is going on in your code. I think your problem is definitely not connection (cross-domain issue) issue. It&amp;#39;s a data serialization issue.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Re: Re: Re: Calling webservice - Protocolexception - 404</title><link>http://forums.silverlight.net/forums/thread/74196.aspx</link><pubDate>Thu, 24 Jul 2008 09:54:56 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:74196</guid><dc:creator>klukkluk</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/74196.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=74196</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m still struggling with this issue...&lt;/p&gt;
&lt;p&gt;I tried putting&amp;nbsp;base.EndInvoke(&amp;quot;MethodName&amp;quot;, _args, result) in my quicklaunch window (the line where this error occurs). When I inspect the base object in the quicklaunch window, it shows me: {System.InvalidOperationException: End has already been called on this asynchronous result object. at System.ServiceModel.ASyncResult.End[TAsyncResult](IAsyncResult result)&lt;/p&gt;
&lt;p&gt;Does this give anyone any clues about what&amp;#39;s going wrong here? I can&amp;#39;t google much on this error.&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Re: Re: Re: Calling webservice - Protocolexception - 404</title><link>http://forums.silverlight.net/forums/thread/71882.aspx</link><pubDate>Wed, 16 Jul 2008 16:09:19 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:71882</guid><dc:creator>peterralphylee</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/71882.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=71882</wfw:commentRss><description>&lt;p&gt;Yes the service seems to be working and has been in the past until I started trying to pass the&amp;nbsp;datasetdata over, I&amp;#39;ll move the question and post the code in the other thread for you. Thank you.&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Re: Re: Re: Calling webservice - Protocolexception - 404</title><link>http://forums.silverlight.net/forums/thread/71877.aspx</link><pubDate>Wed, 16 Jul 2008 15:58:14 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:71877</guid><dc:creator>sladapter</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/71877.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=71877</wfw:commentRss><description>&lt;p&gt;So you are hitting the service that means it&amp;#39;s not a connection problem. The problem is when you trying to return the data. What data you are trying to return? I assume you are trying to return a  DataSetData back since you said you are using my demo code.&amp;nbsp; Could you post your VB code of your DataSetData object? &lt;/p&gt;&lt;p&gt;Let&amp;#39;s do this. Could you move your question to the original &amp;quot;Dispaly DataSet in DataGrid&amp;quot; thread since I don&amp;#39;t think this is a WCF connection issue. I&amp;#39;ll answer it there. This thread is getting too long.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Re: Re: Re: Calling webservice - Protocolexception - 404</title><link>http://forums.silverlight.net/forums/thread/71874.aspx</link><pubDate>Wed, 16 Jul 2008 15:46:24 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:71874</guid><dc:creator>peterralphylee</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/71874.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=71874</wfw:commentRss><description>&lt;p&gt;Thanks for the speedy reply! I can see the data populating the object that I create within my web service.svc.vb, I&amp;#39;m stepping through it with debug watching it populate, but as soon as it tries to return the result from the service to the silverlight it gets stuck in the transfer and throws up the 404 error. It happens in my Reference.vb in this function:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;font size="1"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;Public&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;Function&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt; EndGetOneRecCRMTable(&lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;ByRef&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt; CRMTableName &lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;String&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;ByRef&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt; ErrorStr &lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;String&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;ByVal&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt; result &lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt; System.IAsyncResult) &lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;Object&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;Implements&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt; ServiceReference1.SLService.EndGetOneRecCRMTable&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt; _args((2) - 1) &lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;Object&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt;
&lt;p&gt;_args(0) = CRMTableName&lt;/p&gt;
&lt;p&gt;_args(1) = ErrorStr&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt; _result &lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;Object&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt; = &lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;CType&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt;(&lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;MyBase&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt;.EndInvoke(&lt;/font&gt;&lt;font color="#a31515" size="1"&gt;&lt;font color="#a31515" size="1"&gt;&amp;quot;GetOneRecCRMTable&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt;, _args, result),&lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;Object&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt; 
&lt;p&gt;CRMTableName = &lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;CType&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt;(_args(0),&lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;String&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt;)&lt;/p&gt;ErrorStr = &lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;CType&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt;(_args(1),&lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;String&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;Return&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt; _result&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;End&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;Function&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;&lt;/font&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#0000ff" size="1"&gt;&lt;font color="#000000" size="2"&gt;it always highlights the object at the end of this line: &lt;font size="1"&gt;&lt;font color="#0000ff"&gt;Dim&lt;/font&gt; _result &lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;As&lt;/font&gt;&lt;/font&gt; &lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;Object&lt;/font&gt;&lt;/font&gt; = &lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;CType&lt;/font&gt;&lt;/font&gt;(&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;MyBase&lt;/font&gt;&lt;/font&gt;.EndInvoke(&lt;font color="#a31515"&gt;&lt;font color="#a31515"&gt;&amp;quot;GetOneRecCRMTable&amp;quot;&lt;/font&gt;&lt;/font&gt;, _args, result),&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;Object&lt;/font&gt;&lt;/font&gt;)&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: Re: Re: Re: Re: Re: Re: Calling webservice - Protocolexception - 404</title><link>http://forums.silverlight.net/forums/thread/71868.aspx</link><pubDate>Wed, 16 Jul 2008 15:29:14 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:71868</guid><dc:creator>sladapter</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/71868.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=71868</wfw:commentRss><description>&lt;p&gt;When you say everything is working fine does that mean you get the data displayed? So you already had the data coming from WCF service working, right? When do you get 404 error?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Re: Re: Re: Calling webservice - Protocolexception - 404</title><link>http://forums.silverlight.net/forums/thread/71862.aspx</link><pubDate>Wed, 16 Jul 2008 15:08:40 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:71862</guid><dc:creator>peterralphylee</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/71862.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=71862</wfw:commentRss><description>&lt;p&gt;Hi, I am also having a problem with the 404 error....basically I am trying to implement sladapter&amp;#39;s solution to displaying a dataset in my datagrid (found here: &lt;a href="http://silverlight.net/forums/p/16733/69252.aspx#69252"&gt;http://silverlight.net/forums/p/16733/69252.aspx#69252&lt;/a&gt;) as I need to display dynamic data that I will not always know the exact structure for, therefore this solution is perfect, apart from I am writing it in vb. Now everything appears to be working absolutely fine and I have converted it into vb nicely and I can see the results when I put it into debug, but as soon as I&amp;nbsp;try to pass my result within the object over my silverlight wcf service&amp;nbsp;to my code behind the xaml it hits the 404 error in my reference.vb. I have tried all of the solutions suggested in this thread, but with no success, does anybody have any other suggestions please?&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Re: Re: Re: Calling webservice - Protocolexception - 404</title><link>http://forums.silverlight.net/forums/thread/64774.aspx</link><pubDate>Tue, 24 Jun 2008 20:09:59 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:64774</guid><dc:creator>mebjen</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/64774.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=64774</wfw:commentRss><description>&lt;p&gt;OK - after a day and half and working closely w/sladapter, we were able to figure out the problem.&amp;nbsp; CDYNE is a public webService used for checking the validity of an email address.&amp;nbsp; In SL2B1 everything worked fine - its wasn&amp;#39;t until SL2B2 that the problems appeared. It was because the neither the clientaccesspolicy file nor the crossdomain file had been updated to reflect the minor policy changes in SL2B2. Once CDYNE updated the files the ProtocolException-404 went away.&amp;nbsp; Bottom line, if you are using a public web service - make sure there policy files are updated to support SL2B2.&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Re: Re: Re: Calling webservice - Protocolexception - 404</title><link>http://forums.silverlight.net/forums/thread/64643.aspx</link><pubDate>Tue, 24 Jun 2008 13:39:14 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:64643</guid><dc:creator>sladapter</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/64643.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=64643</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/silverlight/images/icon-quote.gif"&gt; &lt;strong&gt;mebjen:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;OK - this has been an all day hair-puller.&amp;nbsp; I&amp;#39;ve noticed from all my searches that others are or have had similar problems - but I&amp;#39;m not seeing any definitive answers.&amp;nbsp; So - I thought I would try and create a &amp;#39;new/fresh&amp;#39; sl2b2 project and add a serviceReference - to test.&amp;nbsp; After I had my cdyne reference (&lt;a href="http://ws.cdyne.com/emailverify/emailvernotestemail.asmx"&gt;http://ws.cdyne.com/emailverify/emailvernotestemail.asmx&lt;/a&gt;) named cdyneServRef&amp;nbsp;- and&amp;nbsp;the following one&amp;nbsp;line of code:&lt;/p&gt;&lt;font size="2"&gt;
&lt;/font&gt;&lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;Private&lt;/font&gt;&lt;font size="2"&gt; verEmail &lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;As&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;New&lt;/font&gt;&lt;font size="2"&gt; cdyneServRef.EmailVerNoTestEmailSoapClient&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;It builds without error / but I get the following Error - when I try and run it.&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;
&lt;p&gt;System.InvalidOperationException was unhandled by user code&lt;br /&gt;&amp;nbsp; Message=&amp;quot;ConfigUnrecognizedElement&amp;quot; &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;mb,&lt;/p&gt;&lt;p&gt;I know this error. This error is caused by some invalid tag in your ClientConfig file.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Check your ClientConfig file to see if you have a Tag called CustomBinding? For some reason if your service is asmx service,&amp;nbsp; when creating a ServiceReference, VS put this CustomBinding tag into the ClientConfig file. But it is neither used nor it&amp;#39;s a valid. At least 2 people already had this probelm. Just remove that tag should make this error go away. &lt;/p&gt;&lt;p&gt;I don&amp;#39;t know if anybody has already reported this bug or not. You can try to report it in the Bug forum if you find this is the case.&lt;/p&gt;&lt;p&gt;See this &lt;a href="http://silverlight.net/members/Rui_2D00_Marinho.aspx" class="namelink"&gt;Rui-Marinho&lt;/a&gt; &amp;#39;s problem in this thread: &lt;a href="http://silverlight.net/forums/p/17500/60453.aspx#60453" title="http://silverlight.net/forums/p/17500/60453.aspx#60453"&gt;http://silverlight.net/forums/p/17500/60453.aspx#60453&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Calling webservice - Protocolexception - 404</title><link>http://forums.silverlight.net/forums/thread/64641.aspx</link><pubDate>Tue, 24 Jun 2008 13:35:04 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:64641</guid><dc:creator>klukkluk</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/64641.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=64641</wfw:commentRss><description>&lt;p&gt;Sachin,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Already tried that...&lt;/p&gt;</description></item><item><title>Re: Re: Calling webservice - Protocolexception - 404</title><link>http://forums.silverlight.net/forums/thread/64616.aspx</link><pubDate>Tue, 24 Jun 2008 12:45:43 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:64616</guid><dc:creator>mebjen</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/64616.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=64616</wfw:commentRss><description>&lt;p&gt;Hi Sachin,&lt;/p&gt;
&lt;p&gt;I actually started a new SL2B2 project, here are the steps I took:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Chose create new project - &lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Chose - Add a new Web to the solution for hosting&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Under Services - RtClicked and chose Add ServiceReference&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Entered ServiceReference URL - &lt;a href="http://ws.cdyne.com/emailverify/emailvernotestemail.asmx"&gt;http://ws.cdyne.com/emailverify/emailvernotestemail.asmx&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Add the following lines of code:&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Public&lt;/font&gt;&lt;font size="2"&gt; strLiscenseKey &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;String&lt;/font&gt;&lt;font size="2"&gt; = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;xxxxxx-x-x-xxxxxx-xxxx--xxxxxxx&amp;quot;&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Public&lt;/font&gt;&lt;font size="2"&gt; cdyneBind &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;New&lt;/font&gt;&lt;font size="2"&gt; BasicHttpBinding&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Public&lt;/font&gt;&lt;font size="2"&gt; cdyneEndPoint &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;New&lt;/font&gt;&lt;font size="2"&gt; EndpointAddress(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;a href="http://ws.cdyne.com/emailverify/emailvernotestemail.asmx"&gt;http://ws.cdyne.com/emailverify/emailvernotestemail.asmx&lt;/a&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Private&lt;/font&gt;&lt;font size="2"&gt; verEmail &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;New&lt;/font&gt;&lt;font size="2"&gt; cdyneServRef.EmailVerNoTestEmailSoapClient(cdyneBind, cdyneEndPoint)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;In this SL app there is 1 textBox and 1 button:&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Private&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Sub&lt;/font&gt;&lt;font size="2"&gt; btnSubmit_Click(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;ByVal&lt;/font&gt;&lt;font size="2"&gt; sender &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Object&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;ByVal&lt;/font&gt;&lt;font size="2"&gt; e &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; System.Windows.RoutedEventArgs) &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Handles&lt;/font&gt;&lt;font size="2"&gt; btnSubmit.Click&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp; Dim&lt;/font&gt;&lt;font size="2"&gt; mailIn &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;String&lt;br /&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp; mailIn = txtBx_email.Text&lt;br /&gt;&amp;nbsp; Cursor = Cursors.Wait&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp; AddHandler&lt;/font&gt;&lt;font size="2"&gt; verEmail.VerifyEmailCompleted, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;AddressOf&lt;/font&gt;&lt;font size="2"&gt; verEmail_Completed&lt;br /&gt;&amp;nbsp; verEmail.VerifyEmailAsync(mailIn, strLiscenseKey)&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;End&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Sub&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Private&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Sub&lt;/font&gt;&lt;font size="2"&gt; verEmail_Completed(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;ByVal&lt;/font&gt;&lt;font size="2"&gt; sender &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Object&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;ByVal&lt;/font&gt;&lt;font size="2"&gt; e &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; cdyneServRef.VerifyEmailCompletedEventArgs)&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp;&amp;nbsp; Dim&lt;/font&gt;&lt;font size="2"&gt; myMsg &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;String&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp;&amp;nbsp; Dim&lt;/font&gt;&lt;font size="2"&gt; vm &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Boolean&lt;br /&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&amp;nbsp; vm = e.Result.GoodEmail&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If&lt;/font&gt;&lt;font size="2"&gt; vm = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;True&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Then&lt;br /&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; txtBx_email.Text = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;email OK&amp;quot;&lt;br /&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cursor = Cursors.Arrow&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Else&lt;br /&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; txtBx_email.Text = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;invalid email&amp;quot;&lt;br /&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cursor = Cursors.Arrow&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp;&amp;nbsp; End&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;If&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;End&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Sub&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;Ok, so that&amp;#39;s it - now when I run it - I receive the following error after a btnClick - &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;&lt;font size="2"&gt;System.ServiceModel.ProtocolException was unhandled by user code&lt;br /&gt;&amp;nbsp; Message=&amp;quot;The remote server returned an unexpected response: (404) Not Found.&amp;quot;&lt;br /&gt;&amp;nbsp; StackTrace:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName, Object[] args, IAsyncResult result)&amp;nbsp;&amp;nbsp;&amp;nbsp; at sl2b2_webServiceTest.cdyneServRef.EmailVerNoTestEmailSoapClient.EmailVerNoTestEmailSoapClientChannel.EndVerifyEmail(IAsyncResult result)&amp;nbsp;&amp;nbsp;&amp;nbsp; at sl2b2_webServiceTest.cdyneServRef.EmailVerNoTestEmailSoapClient.cdyneServRef_EmailVerNoTestEmailSoap_EndVerifyEmail(IAsyncResult result)&amp;nbsp;&amp;nbsp;&amp;nbsp; at sl2b2_webServiceTest.cdyneServRef.EmailVerNoTestEmailSoapClient.OnEndVerifyEmail(IAsyncResult result)&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)&lt;br /&gt;&amp;nbsp; InnerException: &lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;&lt;font size="2"&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Calling webservice - Protocolexception - 404</title><link>http://forums.silverlight.net/forums/thread/64594.aspx</link><pubDate>Tue, 24 Jun 2008 11:32:14 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:64594</guid><dc:creator>skm.software@yahoo.com</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/64594.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=64594</wfw:commentRss><description>&lt;div class="threadText"&gt;
						            &lt;p&gt;Hi, &lt;/p&gt;&lt;p&gt;There is
simple solution if every function working fine in your&amp;#39;s service code,
or sometime this error may be also due to some database error.&lt;/p&gt;&lt;p&gt;Try the following&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Delete the service refrence file from the project.&lt;/p&gt;&lt;p&gt;Create a new service reference file with same name(i.e of deleted)&lt;/p&gt;&lt;p&gt;and run the application again,&lt;/p&gt;&lt;p&gt;Sachin Mukhija&amp;nbsp;&lt;/p&gt;
					                
						        &lt;/div&gt;

							Software Engineer&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Re: Re: Re: Re: Calling webservice - Protocolexception - 404</title><link>http://forums.silverlight.net/forums/thread/64593.aspx</link><pubDate>Tue, 24 Jun 2008 11:31:09 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:64593</guid><dc:creator>skm.software@yahoo.com</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/64593.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=64593</wfw:commentRss><description>&lt;p&gt;Hi, &lt;/p&gt;&lt;p&gt;There is simple solution if every function working fine in your&amp;#39;s service code, or sometime this error may be also due to some database error.&lt;/p&gt;&lt;p&gt;Try the following&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Delete the service refrence file from the project.&lt;/p&gt;&lt;p&gt;Create a new service reference file with same name(i.e of deleted)&lt;/p&gt;&lt;p&gt;and run the application again,&lt;/p&gt;&lt;p&gt;Sachin Mukhija&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>