![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | 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 |
| | #2 (permalink) |
| Guest | 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 > > > > > > > > |
| |
| |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Computer Browser Service not working | dnr | Vista networking & sharing | 3 | 06-07-2008 03:09 PM |
| Computer Browser service fails with exit code 1068 | feroz ahmed | Vista networking & sharing | 4 | 11-22-2007 10:46 PM |
| SP1 testing | Mike | Vista General | 11 | 11-11-2007 06:50 PM |
| PC HDD testing | William Beard | Vista General | 2 | 03-27-2007 06:09 PM |
| Windows Service Hardening and Application Testing | Harold | Vista security | 1 | 05-30-2006 10:37 AM |