![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | Testing of service in browser Hi guys, I seem to be having a slight problem I cannot seem to fix. I have browsed around looking at various solutions but nothing seems to work. When I try to test my service via the browser (http://localhost/hello2/service.svc) I get the error ------ Server Error in '/hello2' Application. -------------------------------------------------------------------------------- Service 'HelloService' has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your application, or because there was a problem with the type in the configuration file, or no endpoints were defined in the configuration file. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: Service 'HelloService' has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your application, or because there was a problem with the type in the configuration file, or no endpoints were defined in the configuration file. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [InvalidOperationException: Service 'HelloService' has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your application, or because there was a problem with the type in the configuration file, or no endpoints were defined in the configuration file.] System.ServiceModel.Description.DispatcherBuilder.EnsureThereAreNonMexEndpoints(ServiceDescription description) +269 System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription description, ServiceHostBase serviceHost) +77 System.ServiceModel.ServiceHostBase.InitializeRuntime() +38 System.ServiceModel.ServiceHostBase.OnBeginOpen() +91 System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout) +50 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) +283 System.ServiceModel.Channels.CommunicationObject.Open() +38 System.ServiceModel.HostingManager.ActivateService(String processedVirtualPath) +94 System.ServiceModel.HostingManager.EnsureServiceAvailable(String processedVirtualPath) +420 [ServiceActivationException: Service 'HelloService' has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your application, or because there was a problem with the type in the configuration file, or no endpoints were defined in the configuration file.] System.ServiceModel.HostingManager.EnsureServiceAvailable(String processedVirtualPath) +895 System.ServiceModel.Channels.HostedHttpRequestAsyncResult.HandleRequest() +387 System.ServiceModel.Channels.HostedHttpRequestAsyncResult.BeginRequest() +819 System.ServiceModel.Channels.HostedHttpModuleRequestAsyncResult.BeginRequest() +231 System.ServiceModel.Channels.HttpModule.StartBeginProcessRequest(Object sender, EventArgs e, AsyncCallback cb, Object extraData) +68 System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +158 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +146 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42 --- Now, I am assuming it has something to do with my config file . I know that there have been some changes in the Feb CTP and I felt that I modified the changes respectively but it still doesn't seem to work. My config file is below.. --Config--- <?xml version="1.0" encoding="utf-8" ?> <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> <system.serviceModel> <services> <service name="ProgrammingIndigo.HelloService"> <endpoint address="" binding="wsHttpBinding" contract="ProgrammingIndigo.IHello" /> </service> </services> </system.serviceModel> <system.web> <compilation debug="true" /> </system.web> </configuration> After reading a few posts I decided to set the endpoint address attribute to address=http://localhost/hello2. But even after adding that it still didn't work... Any help would be greatly appreciated. --Papanii |
My System Specs![]() |
| | #2 (permalink) |
| | RE: Testing of service in browser Hi Papanii, Did you change the output directory to \bin instead of the default \bin\debug? Did you change the default app.config name to web.config? Did you create your virtual directories appropriately? Check out these posts: http://blogs.microsoft.co.il/blogs/b...05/24/542.aspx http://blogs.microsoft.co.il/blogs/b...04/27/162.aspx Enjoy! Guy Guy "Papanii Okai" wrote: > Hi guys, > I seem to be having a slight problem I cannot seem to fix. I have > browsed around looking at various solutions but nothing seems to work. When > I try to test my service via the browser > (http://localhost/hello2/service.svc) I get the error > > ------ > > Server Error in '/hello2' Application. > -------------------------------------------------------------------------------- > > Service 'HelloService' has zero application (non-infrastructure) endpoints. > This might be because no configuration file was found for your application, > or because there was a problem with the type in the configuration file, or > no endpoints were defined in the configuration file. > Description: An unhandled exception occurred during the execution of the > current web request. Please review the stack trace for more information > about the error and where it originated in the code. > > Exception Details: System.InvalidOperationException: Service 'HelloService' > has zero application (non-infrastructure) endpoints. This might be because > no configuration file was found for your application, or because there was a > problem with the type in the configuration file, or no endpoints were > defined in the configuration file. > > Source Error: > > > An unhandled exception was generated during the execution of the > current web request. Information regarding the origin and location of the > exception can be identified using the exception stack trace below. > > > Stack Trace: > > > [InvalidOperationException: Service 'HelloService' has zero application > (non-infrastructure) endpoints. This might be because no configuration file > was found for your application, or because there was a problem with the type > in the configuration file, or no endpoints were defined in the configuration > file.] > System.ServiceModel.Description.DispatcherBuilder.EnsureThereAreNonMexEndpoints(ServiceDescription > description) +269 > System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription > description, ServiceHostBase serviceHost) +77 > System.ServiceModel.ServiceHostBase.InitializeRuntime() +38 > System.ServiceModel.ServiceHostBase.OnBeginOpen() +91 > System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout) +50 > System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) > +283 > System.ServiceModel.Channels.CommunicationObject.Open() +38 > System.ServiceModel.HostingManager.ActivateService(String > processedVirtualPath) +94 > System.ServiceModel.HostingManager.EnsureServiceAvailable(String > processedVirtualPath) +420 > > [ServiceActivationException: Service 'HelloService' has zero application > (non-infrastructure) endpoints. This might be because no configuration file > was found for your application, or because there was a problem with the type > in the configuration file, or no endpoints were defined in the configuration > file.] > System.ServiceModel.HostingManager.EnsureServiceAvailable(String > processedVirtualPath) +895 > System.ServiceModel.Channels.HostedHttpRequestAsyncResult.HandleRequest() > +387 > System.ServiceModel.Channels.HostedHttpRequestAsyncResult.BeginRequest() > +819 > System.ServiceModel.Channels.HostedHttpModuleRequestAsyncResult.BeginRequest() > +231 > System.ServiceModel.Channels.HttpModule.StartBeginProcessRequest(Object > sender, EventArgs e, AsyncCallback cb, Object extraData) +68 > System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() > +158 > System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& > completedSynchronously) +146 > > > > > > -------------------------------------------------------------------------------- > > Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET > Version:2.0.50727.42 > > --- > > Now, I am assuming it has something to do with my config file . I know that > there have been some changes in the Feb CTP and I felt that I modified the > changes respectively but it still doesn't seem to work. My config file is > below.. > > --Config--- > <?xml version="1.0" encoding="utf-8" ?> > > <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> > > <system.serviceModel> > > <services> > > <service > > name="ProgrammingIndigo.HelloService"> > > <endpoint > > address="" > > binding="wsHttpBinding" > > contract="ProgrammingIndigo.IHello" /> > > </service> > > </services> > > </system.serviceModel> > > <system.web> > > <compilation debug="true" /> > > </system.web> > > </configuration> > > > > After reading a few posts I decided to set the endpoint address attribute to > address=http://localhost/hello2. But even after adding that it still didn't > work... > > Any help would be greatly appreciated. > > --Papanii > > > > > > > > |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| System32. Browser.exe changed into Browser.bak | Vista General | |||
| Computer Browser Service | Vista networking & sharing | |||
| Computer Browser Service not working | Vista networking & sharing | |||
| Computer Browser service fails with exit code 1068 | Vista networking & sharing | |||
| Windows Service Hardening and Application Testing | Vista security | |||