.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

Unable to connect to local host service when a splash screen is show before start the services

Posted By:      Posted Date: September 22, 2010    Points: 0   Category :WCF
Hi all:

I want to show a splash screen before start the local host services, the host can be open without error, however the client (Form1) is not able to connect to the service. Without the splash screen, every thing work fine. Any idea why ?

Here is the code.

Imports System.ServiceModel

<ServiceContract()> _
Public Interface IHelloWorldService
   <OperationContract()> _
   Function SayHello(ByVal name As String) As String
End Interface

Public Class HelloWorldService
   Implements IHelloWorldService

   Public Function SayHello(ByVal name As String) As String Implements IHelloWorldService.SayHello
      Return String.Format("Hello, {0}", name)
   End Function
End Class

Module Module1
   Private host As ServiceHost
   Private frmSplash As Form

   Sub Main()
      AddHandler AppDomain.CurrentDomain.AssemblyLoad, Addres

View Complete Post

More Related Resource Links

Unable to enum ManagedComputer.Services & Stop/Start SQL Agent service from ASP.NET app

Hi guys

I have some code that stops/starts the SQL Server Agent service from within our ASP.NET web application.  Runs fine in development but doesn't in release - I suspect due to rights: Dev has admin rights, whereas Prod is running under a IIS application pool identity which is a domain account (e.g. IUSR_WEBAPP).

In Production it doesn't return any ManagedComputer.Services - ManagedComputer.Services.Count = 0. It doesn't throw any exceptions or anything, just not return any services or allow me to access the specific SQL Agent instance that I want to.

I've tried granting access in various places including WMI but nothing seems to work.  I cannot figure out what rights might be needed.

How can I grant access to my application pool account so that it can enumerate services and stop/start my specific SQL Agent account instance for 2005/2008?

Many thanks

Error: The search request was unable to connect to the Search Service.

When attempting a search, I get the the error message "The search request was unable to connect to the Search Service. "  The search sevice has been started in Central Administration.  Does anyone have suggesting as to how to troubleshoot this issue?   Thank you in advance for your help.

Reporting Services Add-In for MOSS2007 : Unable to connect to the database Error at "Set Server Defa

Dear Expert, I've succesfully install the Add-In + configure the reporting services (integrated mode) + activate the features on my MOSS2007. As we know by activating this at my Central Admin, i'm able to see "Reporting Services" under my Application Management as below:   1) Manage Integration Setting   ---> My report url : http://servername:808/ReportServer (Trusted Account) 2) Grand Database Access --->  My setting : <servername> with default instance  3) Set Server Defaults ---> Area that i receive an error "Unable to connect to database" Anybody here have a same experience? please assist me, Thanks in Advanced My Note: OS : Windows Server 2008 Enterprise x64bit (SP2) SQL : SQL 2005 with latest Service Pack (SP3)  My Error Log: <Header>   <Product>Microsoft SQL Server Reporting Services Version 9.00.4035.00</Product>   <Locale>en-US</Locale>   <TimeZone>Malay Peninsula Standard Time</TimeZone>   <Path>c:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\LogFiles\ReportServer__08_04_2010_10_51_59.log</Path>   <SystemName>SEINE</SystemName>   <OSName>Microsoft Windows NT 6.0.6002 Service Pack 2</OSName>   <OSVersion>6.0.6002.131072</OS

Unable to start user profile synchronization service

Hello, I have the following problem. user profile synchronization service doesn't start up, with the following error in log: The service encryption keys could not be found. User Action Verify that the service account has permissions to the following registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Forefront Identity Manager\2010\Synchronization Service If the problem persists, run setup and restore the encryption keys from backup. Permissions for registry are availabele. Thank you.    

Unable to connect a web service from SharePoint 2010

Hi, I have a requirement to connect to a webservice from SharePoint 2010 without passing Network credentials explicitly. If i am already logged into the SharePoint 2010 portal , I should be able to click on Search (which is a web service which retrieves search results from Oracle UCM) and retrieve the result. I tried localhost.ServiceX myProxy = new localhost.ServiceX(); myProxy.Credentials = System.Net.CredentialCache.DefaultCredentials; also myProxy.UseDefaultCredentials = True Still i am unable to authenticate. Default credentials returns null value.   Kindly help.

Search request unable to connect to the Search Service.

I have searched through other similiar topics and have not been able to get it working again properly. I've tried deleting the Search Service account out and all associated information and created a new one. My crawl logs show that they are successfull and that I have content available in my local sites, as well as my people listed. I have disabled loopback checks, given the default content access account owner access on the databases. Everytime I do a search, I get that error message listed as the subject. I'm running a 4 server farm setup with 1 DB, 1 App, and 2 WFE's. Everything was working fine and now I can't get back working right. I have hammering at it all day and need some additional input of where to look. I'm no SharePoint expert by any means, but I'm slowly getting used to everything. Please help!

Unable to start SQL Express 2005 service as a network user

I am trying to start ms sql server 2005 express as a network user from originally starting as local system. I cannot start the service.I have given this network user administrator access to sql express from the sql server surface area configuration "Add New Administrator". I have went into the local users/groups and added this network user to the 3 security groups SQLServer2005MSSQLServerADHelperUser$SQL1SQLServer2005MSSQLUser$SQL1$SQLEXPRESSSQLServer2005MSSQLBrowserUser$SQL1I receive one alert int he event logs/applicationEventID: 26010The server could not load the certificate it needs to initiate an SSL connection. It returned the following error: 0x8009030d. Check certificates to make sure they are valid.I receive five errors in the event logs/applicationEventID: 26014Unable to load user specified certificate. The server will not accept a connection. You should verify that the certificate is correctly installed. See "Configuring Certificate for Use by SSL" in Books Online.EventID: 17182TDSSNIClient initialization failed with error 0x80092004, status code 0x80EventID: 17182TDSSNIClient initialization failed with error 0x80092004, status code 0x1EventID: 17826Could not start the network library because of an internal error in the network library. To determine the cause, review the errors immediately prceding this one in the error log.EventID: 17120SQL Serve

How to use single windows service to host multiple WCF Services instances (Each instance of WCF is i

How to use single windows service to host multiple WCF Services. I have a mutiple instance of same WCF service in different folder, each instance has unique service name and port. WCFService has reference to Reg-Free COM Reference, i have Native.WCFService.manifest in each folder. Ex: WCFService1 is in "C:\WCFService01\WCFService.dll, Native.OCWCFService.manifest, OCWCFService.dll.config WCFService2 is in "C:\WCFService02\WCFService.dll, Native.OCWCFService.manifest, OCWCFService.dll.config Now i need host above services from single Windows Service. I am trying to create AppDomain for each above WCFService Instance from Windows Service and then host. Its working if i register COM dll in the server using regsvr32, but when i un register COM dll, i am getting unable to load COM component .... This looks like AppDomain is not loading COM DLL and Manifest files. Its looks strange but we need it in this way because we have production and test environment in the same server. Everything works fine if create a seperate Windows Service for each WCFService Instance, but my manager wants single Windows Service :). Any help whould be really appreciated.  ravi kumar reddy

Cannot start Analysis Services 2008 service

Hi! I have Sql Server 2008 R2 and Analysis Services 2008. I could use it without problems for few days, but today, when I stop analysis service with Sql Server Configuration Manager and tried to start it again, it gives me error message: "The request failed or the service did not respond in a timely fashion. Consult the event log or other applicable error logs for details". The msmdsrv.log file doesnt have any entries related to this error. Both Sql Server and AS are installed on my local machine and log on as LocalSystem. My system is XP sp3 professional.

unable to connect Reporting Services


Hi All,

I have configured Reporting Services in SQL Server 2005 steps.

1) Installed Service pack2 for SQL Server 2005
2) Installed Microsoft SQL Server 2005 Reporting Services Add-in for Microsoft Sharepoint Technologies.
3) From Reporting Services Configuration Manager configured the below list
 -- Report Server Virtual Directory (Configured and icon display green colour )
 -- Report manager Virtual Directory(not configured when i click it shows a message (Report Manger is not     available when the report server is integrated with Windows Sharepoint Services))
 -- Windows Service Identity(Configured and icon display green colour )
 -- Web Service Identity(Configured and icon display green colour )
 -- Database Setup(Configured and icon display green colour )
 -- Sharepoint Integration(Configured and icon display green colour )

4) When iam trying to connect Reporting Services through SQL Server management studio it gives me error

Cannot connect to LHI-TEST.


The operation  is not supported on a report server that is configured to run in SharePoint integrated mode. ---> The operation  is not supported on a report server that is configured to run

Unable to start/stop SharePoint 2010 service



I've developed customs SharePoint 2010 Service based on this tutorial: http://blogs.msdn.com/b/dtaylor/archive/tags/calculator+service+example/

My first version inherits from SPIisWebService (and SPIisWebServiceInstance, SPIisWebServiceApplication etc..) - everything worked fine.

Then I redesigned my service to inherits from SPWindowsService (and SPWindowsServiceInstance, SPWindowsServiceApplication etc...). Everything works fine without one thing:) - I'm not able to start or stop Service (neither from PowerShell nor SP Central Admin page). After installed my service, it is started. When I uninstall it and install once again - it's still started.

When I try to stop it (or start on clear SharePoint environment), I've got the following exception (where IntegrationService is the name of my service)

System.ComponentModel.Win32Exception: IntegrationService
at Microsoft.SharePoint.Win32.SPAdvApi32.SetServiceStartupType(String serviceName, Int32 startupType)
at Microsoft.SharePoint.Administration.SPWindowsServiceInstance.Provision(Boolean start)
at Microsoft.SharePoint.ApplicationPages.ServerPage.OnObjectModelAction(Object sender, ObjectModelActionEventArgs e)
at Microsoft.SharePoint.WebControls.ActionLinkDataSourceControl.OnObjectModelAction(ObjectModelActionEventArgs e)
at Microsoft.SharePoint.WebControl

Error : Unable to connect to the remote server, When using web service in window service

Hi All,

          I want to consume a web service in windows service but in windows service I am not able to access  web service. I have tried it in windows application and web application it is working fine but in windows service  it is not accessible.


i am getting error:-   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)--->   at System.Net.HttpWebRequest.GetRequestStream()
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at Testmachone.MachWebRef.SimCardWS.ProvisionImsiCard(String MsMin, String MsEsn, String CardId, String UserId, String Password, String MscId, String BId, String NewValue, ActionTypes Command, String MDN, String COS, String MIP_KEY, String MEID, String RADIUSPassword, String IMSI, Boolean PrePaid)

 any body can help me what could be issue


Reporting Service Integration, Unable to access Reporting Services Site Settings


I am attempting to get reporting services running in integrated mode with sharepoint 2010. I have everything installed and features turned on. In the site collection, when I click on  Site Settings > Reporting Services Site Settings, I am presented with:

Error: The request failed with HTTP status 401: Unauthorized.


I get virtually zero hits when searching for this. Any help is appreciated.


Unable to Connect to Analysis Services from other machine

I installed Analysis services 2008 on a xp machine at home. 
I can connect from this machine via the data mining add-in to analysis services.
From my laptop I can connect to the normal sql server but I i'm not aible to make a connection in the data mining add-in to the analysis services. The error message I get is: 

Test Connection Failed.
A connection cannot be made. Ensure that the server is running.
Unable to read data from the transport connection: an existing connection was forcibly closed by the remote host
an existing connection was forcibly closed by the remote host.

I opened port 2383 in the firewall and made an exception for msmdsrv.exe

I tried to add every user I can think of but no luck

Can someone please help me

p.s. no domain

The search request was unable to connect to the Search Service.


I recently ran out of space using WS 3.0 and I used Microsoft KB to move the 3 databases (Admin_Content, Config and Search). That took care of the space problem but now i receive this error message every time we perform a search.

In Event Viewer I have several errors: mostly:

  • ID 10039 Retry of query machine 'BACKUPSERVER' has failed with error: The system cannot find the file specified.   0x80070002.  It will be retried again in 120 seconds. Component: 304be312-beec-4f60-98cc-3698c9a54dd
  • ID 10040 The last query machine has been taken out of rotation.  Check previous event logs to determine cause.  Propagation may be necessary. Component: 304be312-beec-4f60-98cc-3698c9a54ddd
  • ID 10038 Query machine 'BACKUPSERVER' has been taken out of rotation due to this error: The system cannot find the file specified.   0x80070002.  It will be retried in 15 seconds. Component: 304be312-beec-4f60-98cc-3698c9a54ddd

All SP services are running.

Any help will be great.

Thank you

Sharepoint Search Problem - The search request was unable to connect to the Search Service

Im getting an error while trying to search on our sharepoint portal

Error message is  "The search request was unable to connect to the Search Service"

Initial Troubleshooting :
1. Restarted Office Sharepoint Server Search and Windows Sharepoint Services Search - NOGO
2. Reset Crawled Content and Performed a Full Crawl - NOGO

Current Setup
2 Web Front End Servers (NLB setup)  - running in Windows Server 2003 R2 Standard Edition x86
1 Index Server - running in Windows Server 2003 R2 Standard Edition x86
2 Database servers (failover cluster setup) - running in Windows Server 2003 R2 Enterprise x64 Edition and SQL Server 2005 EE

Hope somebody can help me.

Thank you

wcf service host by windows service - client cannot connect



i have created a cf service hosted by windows service. the wcf service app.config is

<?xml version="1.0"?>
<!--Copyright (c) Microsoft Corporation.  All Rights Reserved.-->

      <service name="DiscoveyService.WCFDiscoveryService">
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