Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

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.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

Testing of service in browser

 
 
Thread Tools Display Modes
Old 04-29-2006   #1 (permalink)
Papanii Okai
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







Old 05-29-2006   #2 (permalink)
Guy Burstein
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








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50