Click here to Skip to main content
15,895,462 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: installing silverlight application Pin
jadughar2-Dec-10 22:49
jadughar2-Dec-10 22:49 
AnswerRe: installing silverlight application Pin
Abhinav S25-Nov-10 7:49
Abhinav S25-Nov-10 7:49 
GeneralRe: installing silverlight application Pin
jadughar25-Nov-10 8:11
jadughar25-Nov-10 8:11 
GeneralRe: installing silverlight application Pin
Abhinav S25-Nov-10 17:19
Abhinav S25-Nov-10 17:19 
GeneralRe: installing silverlight application Pin
jadughar25-Nov-10 21:10
jadughar25-Nov-10 21:10 
GeneralRe: installing silverlight application Pin
RobCroll26-Nov-10 2:09
RobCroll26-Nov-10 2:09 
QuestionSgen Tool Pin
Member-495917624-Nov-10 18:16
Member-495917624-Nov-10 18:16 
Questionwcf error Pin
arkiboys24-Nov-10 12:34
arkiboys24-Nov-10 12:34 
Hi,
I have been battliing with an issue with wcf and wonder if anyone can solve my issue.

Many thanks

In a silverlight apllication, I created a wcf service under the host i.e. (projectname.web) project. Then from the silverlight application which holds all the .xaml pages, I reference the wcf and all works fine (The wcf is calle dfrom the .xaml and data is retrieved).

Problem is arised only when I try to separate the wcf service from the webhost i.e. (projectname.web). So I created a separate wcf service application project and then tried to call the service from the .xaml project.
The error I get is in references.cs
The error message is: The remote server returned an error: NotFound.

and the code which causes the error is:

public Samples.ProductServiceHost.Product EndGetProduct(System.IAsyncResult result) {
object[] _args = new object[0];
Samples.ProductServiceHost.Product _result = ((Samples.ProductServiceHost.Product)(base.EndInvoke("GetProduct", _args, result)));
return _result;
}

I have also added the crossdomain.xml to the wcf service application project.
I wonder if the error is to do with the web.config.

This is what the web.config looks like in the wcf service application:

<?xml version="1.0"?>
<configuration>

<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>
<system.serviceModel>
<services>
<service behaviorConfiguration="Samples.Services.ServiceBehavior"
name="Samples.Services.ProductService">
<endpoint address=""
binding="basicHttpBinding"
contract="Samples.Services.IProductService">
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
<endpoint address="mex"
binding="mexHttpBinding"
contract="IMetadataExchange"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="Samples.Services.ServiceBehavior">
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>

</configuration>
AnswerRe: wcf error Pin
Mycroft Holmes24-Nov-10 19:09
professionalMycroft Holmes24-Nov-10 19:09 
GeneralRe: wcf error Pin
rajesh123110325-Nov-10 16:04
rajesh123110325-Nov-10 16:04 
GeneralRe: wcf error Pin
Mycroft Holmes25-Nov-10 16:23
professionalMycroft Holmes25-Nov-10 16:23 
Questionsilverlight hides menu? Pin
CrafterIt24-Nov-10 3:24
CrafterIt24-Nov-10 3:24 
AnswerRe: silverlight hides menu? Pin
Pete O'Hanlon24-Nov-10 3:56
mvePete O'Hanlon24-Nov-10 3:56 
GeneralRe: silverlight hides menu? Pin
CrafterIt24-Nov-10 4:34
CrafterIt24-Nov-10 4:34 
GeneralRe: silverlight hides menu? [modified] Pin
CrafterIt24-Nov-10 20:59
CrafterIt24-Nov-10 20:59 
GeneralRe: silverlight hides menu? Pin
Abhinav S29-Nov-10 0:20
Abhinav S29-Nov-10 0:20 
Question[WPF] Border stretching problem, rounded textbox Pin
ekimpl24-Nov-10 2:43
ekimpl24-Nov-10 2:43 
AnswerRe: [WPF] Border stretching problem, rounded textbox Pin
Ian Shlasko24-Nov-10 4:02
Ian Shlasko24-Nov-10 4:02 
GeneralRe: [WPF] Border stretching problem, rounded textbox Pin
ekimpl24-Nov-10 4:35
ekimpl24-Nov-10 4:35 
GeneralRe: [WPF] Border stretching problem, rounded textbox Pin
Ian Shlasko24-Nov-10 4:36
Ian Shlasko24-Nov-10 4:36 
AnswerRe: [WPF] Border stretching problem, rounded textbox Pin
Tarun.K.S24-Nov-10 7:11
Tarun.K.S24-Nov-10 7:11 
AnswerRe: [WPF] Border stretching problem, rounded textbox Pin
Jyothikarthik_N23-Dec-10 18:36
Jyothikarthik_N23-Dec-10 18:36 
QuestionAdding button that will replace the scroll in listView Pin
Yanshof24-Nov-10 2:21
Yanshof24-Nov-10 2:21 
AnswerRe: Adding button that will replace the scroll in listView Pin
Pete O'Hanlon24-Nov-10 4:16
mvePete O'Hanlon24-Nov-10 4:16 
AnswerRe: Adding button that will replace the scroll in listView Pin
Kunal Chowdhury «IN»25-Nov-10 7:51
professionalKunal Chowdhury «IN»25-Nov-10 7:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.