For those new to message boards please try to follow a few simple rules when posting your question.
Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
Keep the subject line brief, but descriptive. eg "File Serialization problem"
Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode "<" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.
Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.
Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
No advertising or soliciting.
We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
I have made a wcf service with asp.net website.
service runs on localhost,but the page default.aspx which is linked to the service doesn't run. please help me in this regards.
// NOTE: If you change the interface name "IService" here, you must also update the reference to "IService" in Web.config.
string hello(string m);
// NOTE: If you change the class name "Service" here, you must also update the reference to "Service" in Web.config and in the associated .svc file.
publicclass Service : IService
publicstring hello(string n)
publicpartialclass _Default : System.Web.UI.Page
//MyService.ServiceClient client = new MyWebSite.localhost.ServiceClient();
localhost.Service cl = new MyWebSite.localhost.Service();
protectedvoid Page_Load(object sender, EventArgs e)
protectedvoid Button1_Click(object sender, EventArgs e)
string name = TextBox1.Text;
I have one windows service, which is invoked using commandline client C# application. The functionality of windows service is to execute some Batch jobs. In one of the Batch job, it calls an email service (WCF service) and send mail based on the values passed. It has one operation contract 'SendMail' with the signature as 'SendMail(object parameters, string recipients)'.
I am getting 'Thread was being aborted exception' after all the mails have been sent. But when I call the email service from console application, I did not receive any exception. I tried changes in configuration to increase timeout, but still the exception is occurring. I checked solution in the net, but I could not solve my problem yet. Can anyone have idea about the reason for this exception. Thanks in advance.
The following is the stack trace of the exception which I received.
Exception in sendmail : Thread was being aborted.
Trace : at System.Net.ConnectStream.WriteHeaders(Boolean async)
at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object ins, Object outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at SampleBatchJob.EmailServiceRef.IService.SendMail(Object parameters, String recipients)
at SampleBatchJob.EmailServiceRef.ServiceClient.SendMail(Object parameters, String recipients) in c:\Projects\BatchFramework\Arivazhagi\ACA.Batch5.0WC\Samples\SampleBatchJob\Service References\EmailServiceRef\Reference.cs:line 62
at Avanade.ACA.Batch.Batch.SampleBatchJob.EmailBatchJob.Execute(JobExecutionContext context) in c:\Projects\BatchFramework\Arivazhagi\ACA.Batch5.0WC\Samples\SampleBatchJob\EmailBatchJob.cs:line 71
This works pretty good, but this is not my aim. In my real solution, I have got like 500+ methods, and I would like to implement the IService1.cs as above.
But I dont want to copy all my methods in the Service1.svc from WcfService1.
I dont know if it's possible to use WcfService1.IService1 to implement ClassLibrary1.Class1 and use it through WCF ?
Ask for clarification if needed !
I'm looking for a solution but can't find it :/
modified 7-Nov-13 9:47am.
Last Visit: 31-Dec-99 18:00 Last Update: 19-Dec-13 15:50