.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Error 400 when hosting windows streaming service.

Posted By:      Posted Date: September 13, 2010    Points: 0   Category :WCF
WCF, .NET 3.5:I'm sorry if this is redundant, but I'm having problems receiving error: 400 requests. My particular issue is this: If I select my service library within VS the library is test hosted and I can stream large files. My problem is getting a windows service configured to host this service library. I can transfer small files but larger ones are failing with the following stacktrace: <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"> <System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"> <EventID>262155</EventID> <Type>3</Type> <SubType Name="Error">0</SubType> <Level>2</Level> <TimeCreated SystemTime="2009-11-18T19:58:07.7808550Z" /> <Source Name="System.ServiceModel" /> <Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" /> <Execution ProcessName="ExtractorTestClient.vshost" ProcessID="10768" ThreadID="9" /> <Channel /> <Computer>MyComputer</Computer> </System> <ApplicationData> <TraceData> <DataItem> <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"> <TraceIdentifier>http://msdn.microsoft.com/en-US/library/Syste

View Complete Post

More Related Resource Links

Windows service hosting WCF service errors with Error ID 7034, WindowsService service terminated une



We have a number of windows services that are hosting a WCF 4.0 service each (Windows 2003 R2 Stardard SP2)

Invariably we are getting An error from Service Control Manager with this error id:7034

The description states:

"The RMWindowsService service terminated unexpectedly.  It has done this 1 time(s)."

We have 10 services running on 5 servers (Prod, Pre-Prod, Support, Test,Dev)

All servers are Windows 2003 R2 Stardard SP2.

All Services are experiencing the error. 

Some times all together, some times 2-3 at a time, some times, only one errors

On searching on the error this link said that the Error Id meant

"ERROR 7034: NS_E_SOURCEGROUP_NOTPREPARED.This error is due to The source is not yet prepared.%0 .The source of the error code is the Windows Media Server."

On searching for NS_E_SOURCEGROUP_NOTPREPARED , this link confirmed  in part what was said.

But I can find nothing that gives me a root cause of what is causing this error. Which is fair as I wrote the Winservice

WCF Windows service hosting - not starting

Hi every experts i have WCF Service and a Windows service project for hosting that service when i install the win service with installutil and click start in services it show this message : "Windows could not start the Virtual WCF Service service on Local Computer. Error 5: Access is denied." i have this problem with this sample too : http://rapidshare.com/files/415123228/WCFSample.rar how can i fix this? THX

Hosting IIS vs Windows Service !!!!

Hi, could you please explain me about the Pros and Cons Between the Hosting the service in IIS vs Windows Service General Term. why iam asking is,my dev server is installed with IIS 7(win 2k8)which ofcourse supports IIS and windows service(netTCPBinding).so please explain me on the same above.

Need help understanding why to use 'ServiceBase.Run' in Windows Service hosting a WCF service

A year or 2 ago I successfully implemented a WCF service hosted in a Windows Service.  Now I am going to do another one, so I went back to my 1st project.  Based on the following links example (http://msdn.microsoft.com/en-us/library/ms733069.aspx) and my 1st project I implmented the following code: Public Shared Sub Main() ServiceBase.Run(New MyWindowsService()) End Sub Now, I read up on this in the MSDN and understand that registers the service with the SCM and calls the onStart method, correct?  The way I read it, this code is necessary.However, now I am looking at a few newer examples of hosting a WCF service in a Windows Service, and the 'Main' Sub with that 'ServiceBase.Run' call is not even included, but apparently still works.  For example the following MSDN tutorial doesn't use that call at all:  http://msdn.microsoft.com/en-us/library/cc949080.aspx#    It just has the onStart method overloaded which I also do.So my questions are, is that code in Sub Main needed and why?  Doesn't pressing start from the 'Services Manager' console call the onStart method anyways of the service?Thank you,

Hosting web service inside Windows Application

  I would like to host my web service inside windows application. I prepared a short example basing on: http://msdn.microsoft.com/en-us/library/aa529311.aspx I have 2 projects created with default templates: Web Service project where I did not change anything: namespace WebService1 { [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] public class Service : System.Web.Services.WebService { public Service() { } [WebMethod] public string HelloWorld() { return "Hello World"; } } } Windows Project in which I changed only the main form class: public partial class Form1 : Form { public Form1() { InitializeComponent(); Uri address = new Uri("soap.tcp://localhost/TestService"); SoapReceivers.Add(new EndpointReference(address), typeof(WebService1.Service)); } } The problem is that when I compile and run this Windows Application, I can`t discover this Web Service. There must be something wrong in my solution. Could you please help me by telling what may be wrong? Thank you for help in advance.MCP

Getting error when referancing third pary .asmx in windows service as Service Referance



   I referenced a third party Web service (.asmx) WSDL file as service referance in Windows Service. When I execute from WCFTestClient.exe, I am getting response back. I am not able to create an instance of proxy in windows service. I could create in Web app. I am getting the following error.


"Could not find default endpoint element that references contract 'EDIService.notifyGasNomsEvent_PortType' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element."

                <binding name="meterdatamgmt_public_pub_wsds_notifyGasNomsEvent_Binder"
                    closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00"

deploy a WCF service, hosting in Windows Service with NamedPipe binding


Hi, I developed a wcf service, hosted in Windows service with Namedpipe binding, and  a client application that were both in .net 4.0

both work well in my development computer, in Win 7
when i deployed both service and client in another computer. the service works, but the client cannot access the service.

with EndpointNot Found exception
when I changed binding to wsHttpBinding, the client failed to call the service with SecurityNegotiationException



TCP Error Code 10060 when attempting to access WCF Service hosted by WIndows Service from client run


Hello all,

We have a Framework 3.5 WCF Service which is in turn hosted in a Windows Service using Net.Tcp Binding. SvcUtil is used to generate the proxy which is used instead of a service reference in the client code. We are also using Tcp Port Sharing. The endpoint address is net.tcp://HostMachineName/MyServicePath. The service logs to the Event log and everything works perfectly on the same machine.

When attempting to run the client from a different machine we are getting TCP Error Code 10060 errors. Below is the error message:

System.ServiceModel.EndpointNotFoundException: Could not connect to net.tcp://HostMachineName/MyServicePath. The connection attempt lasted for a time span of 00:00:20.8592415. TCP error code 10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 111.22.333.444:808.  ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 111.22.333.444:808... The IP Address displayed was the correct IP Address for the HostComputerName.

Has anyone encountered this problem? Also, client specs say no config files, so anything that wo

Microsoft SQL Server 2005 Express Edition Service Pack 3 (KB955706) windows update install error 0xD

I have tried several times to use Windows Update to install the SQL Server 2005 Express Edition Service Pack 3 (KB955706) but it keeps failing.  When I check the install history all I get is error code 0xD59

I have Windows XP SP2 on a Core 2 Duo Dell Vostro 1500

Install Windows Service Error

Hi to all,
I made a Windows Service that I can install fine in my developer machine (Win XP SP2 with Framework 2.0.50727.1433).
But when I want to install the same Windows Service in my production machine I;m getting this error:

   Creating EventLog source WindowsServiceTest in log Application...

   An exception occurred during the Install phase.
      System.Security.SecurityException: Requested registry access is not allowed.
         at System.ThrowHelper.ThrowSecurityException(ExceptionResource resource)
Thinking that is a security/permission error, I change this to use a user that has administrative profile, then when try to install I got an error again:

   Affected parameters are:
      logtoconsole =
      showcallstack =
      i =
      logfile = D:\Test\WindowsServiceTest.InstallLog
      assemblypath = D:\Test\WindowsServiceTest.exe

   An exception occurred during the Install phase.
   System.ComponentModel.Win32Exception: Access is denied
   at System.ServiceProcess.ServiceProcessInstaller.OpenSecurityPolicy()

Really I don't know what to do. Any Help? or idea?
Thanks in advance.

"Windows SharePoint Services Web Application" service is showing 'Error starting'.


I just installed MOSS SP2 and ran the config wizard on the server.
I am facing issue with our farm. Found that "Windows SharePoint Services Web Application" is in a problem.

I tried below commands:-
stsadm -o provisionservice -action stop -servicetype spwebservice -servicename ""
stsadm -o provisionservice -action start -servicetype spwebservice -servicename ""
But getting error:- Provision of service failed. Additional information: 1387.

Checked eventvwr and found below error log:-
Event Type: Error
Event Source: Windows SharePoint Services 3
Event Category: Topology
Event ID: 7034
Date:  10/21/2010
Time:  5:16:10 AM
User:  N/A
Computer: <Servername>
An attempt to start/stop instance  of service Windows SharePoint Services Web Application on server <servername> did not succeed. Re-run the action via UI or command line on the specified server.

None of the sites are working and I cannot see anything in the IIS folder nor in the IIS manager. All application folders are missing. But, I can see all the sites & Content databasesin the Central Admin.

Can someone please help?


calling and hosting WCF services from windows service


I have 2 windows services. Both hosting their own WCF service and it works fine.

Now one windows service (let call it the second) does need some information from the first windows service.
So I make the second dependend on the first.
This all works fine untill the second windows service starts (it started the first automatically because of dependency).
I make a call to a wcf method (even before ServiceBase.Run) from inside the second windows service towards the first. This will timeout.

I have tackled this problem by making the wcf call after ServiceBase.Run (in the OnStart method) so it looks like the program is not possible to make a wcf call before it is hosted itself (am I right?).

However when I reboot the computer the second service fails to start (startup type is automatically and the first service is started first).
The dependend service fails to start, after that, when I start it manually it will succeed

How do I make this communication work

Windows Service Applications Tutorials

You can easily create services by creating an application that is installed as a service. For example, suppose you want to monitor performance counter data and react to threshold values. You could write a Windows Service application that listens to the performance counter data, deploy the application, and begin collecting and analyzing data.

Convert WCF service to self hosting application


 I created project as a  WCF Service application and now according to recuriment that needs to be converted as a self hosting application

How can i do this?

Converting WCF service app to Self hosting app?

Word Automation Issue in Windows Server 2008 Hosting



The problem I am posting here is that I was facing nearly 2 weeks around. Any body comes with this stuff please help.

Word Automation in sample ASP.NET(C#) application.

I am using Microsoft.Office.Inetrop.Word Assembly for automation. Here I am reading a XXX.dot template file and fill the contents with dynamic data.

When i am executing my code in localhost:someportnumber the automation is working fine and I could get expected result and when I am hosting in my inetmgr(Windows XP is my OS) it is also working fine.

But the problem is that when I am hosting in my production server(Windows Server 2008 Standard Edition) I am not able to perform automation and results in the following error.

Data: System.Collections.ListDictionaryInternal
Message: Word has encountered a problem.
Source: Microsoft Word

The code gets failed in the following line:

ApplicationClass wordApp = new Microsoft.Office.Interop.Word.ApplicationClass();

Document wordDoc = wordApp.Documents.Add(ref oTemplate, ref oFalse, ref oMissing, ref oMissing); // Error in this line

I cannot able to proceed further. Can anybody please help me in solving this issue?

Thank you.

With Regards,


Web Service Workflows: Deploy Distributed Business Processes With Windows Workflow And Web Services


Due to the distributed nature of a business process it makes sense for a workflow to be deployed as a distributed application. See how Windows Workflow and Web Services hold the key.

Israel Hilerio

MSDN Magazine October 2006

Service Station: Serialization in Windows Communication Foundation


Windows Communication Foundation supports several serialization mechanisms and provides a simple, interoperable foundation for future service-oriented applications. Here Aaron Skonnard explains it all.

Aaron Skonnard

MSDN Magazine August 2006

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend