Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Getting HttpListenerException running in memory with no HTTP server
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Sean Kearon  
View profile  
 More options May 13 2012, 2:25 pm
From: Sean Kearon <kearon.s...@googlemail.com>
Date: Sun, 13 May 2012 11:25:15 -0700 (PDT)
Local: Sun, May 13 2012 2:25 pm
Subject: Getting HttpListenerException running in memory with no HTTP server

I had a problem with some of my tests that resulted in registering my store
twice.  I'm using the store like this:

  new EmbeddableDocumentStore {RunInMemory = true, UseEmbeddedHttpServer = false}

As I was registering the store twice, I was getting
a System.Net.HttpListenerException: "Failed to listen on prefix 'http://<http:///>+:8080/'
because it conflicts with an existing registration on the machine."

Should the HTTP listener be involved at all seeing as this is fully
embedded with the HTTP server off?  


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oren Eini (Ayende Rahien)  
View profile  
 More options May 14 2012, 9:44 am
From: "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Date: Mon, 14 May 2012 14:44:00 +0100
Subject: Re: [RavenDB] Getting HttpListenerException running in memory with no HTTP server

It should not, can you provide me with the full stack trace?

On Sun, May 13, 2012 at 7:25 PM, Sean Kearon <kearon.s...@googlemail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sean Kearon  
View profile  
 More options May 14 2012, 1:09 pm
From: Sean Kearon <kearon.s...@googlemail.com>
Date: Mon, 14 May 2012 10:09:28 -0700 (PDT)
Local: Mon, May 14 2012 1:09 pm
Subject: Re: [RavenDB] Getting HttpListenerException running in memory with no HTTP server

 SetUp : Autofac.Core.DependencyResolutionException : An exception was
thrown while executing a resolve operation. See the InnerException for
details.
----> System.Net.HttpListenerException : Failed to listen on prefix 'http://<http:///>+:8080/'
because it conflicts with an existing registration on the machine.

at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration
registration, IEnumerable`1 parameters)
at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(
IComponentRegistration registration, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.ResolveService(IComponentContext context,
Service service, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.Resolve(IComponentContext context,
IEnumerable`1 parameters)
at Atlantic.Test.Common.InMemoryFixture.SetUp() in InMemoryFixture.cs: line
37<projectfile:AC63929E-BBC7-4EFA-B4CC-ECFD08D21833%2Ff%3AInMemoryFixture.c s%3F37%3F1>
at Pirform.Domain.Fixture.tree_changed.Setup() in tree_changed.cs: line 25<projectfile:83F17EC4-42DD-4F0E-A93C-6E011ED127C7%2Ff%3Atree_changed.cs%3 F25%3F1>
--HttpListenerException
at System.Net.HttpListener.AddAllPrefixes()
at System.Net.HttpListener.Start()
at Raven.Database.Server.HttpServer.StartListening() in c:\Builds\RavenDB-Stable\Raven.Database\Server\HttpServer.cs:
line 208
at Raven.Client.Embedded.EmbeddableDocumentStore.InitializeInternal() in c:\Builds\RavenDB-Stable\Raven.Client.Embedded\EmbeddableDocumentStore.cs:
line 148
at Raven.Client.Document.DocumentStore.Initialize() in c:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Document\DocumentStore.cs :
line 392
at MyApp.Raven.EmbeddableDocumentStoreInitialiser.Initialise(DocumentStore
documentStore) in EmbeddableDocumentStoreInitialiser.cs: line 77<projectfile:C96571B2-7A7F-474D-BFAC-7FCACFC691C2%2Fd%3ARaven%2Ff%3AEmbed dableDocumentStoreInitialiser.cs%3F77%3F1>
at Atlantic.Test.Common.InMemoryFixture.<SetUp>b__1(IComponentContext x) in InMemoryFixture.cs:
line 41<projectfile:AC63929E-BBC7-4EFA-B4CC-ECFD08D21833%2Ff%3AInMemoryFixture.c s%3F41%3F1>
at Autofac.Builder.RegistrationBuilder.
<>c__DisplayClass1`1.<ForDelegate>b__0(IComponentContext c, IEnumerable`1 p)
at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(
IComponentContext context, IEnumerable`1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters)
at Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1
creator)
at Autofac.Core.Resolving.InstanceLookup.Execute()
at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(
ISharingLifetimeScope currentOperationScope, IComponentRegistration
registration, IEnumerable`1 parameters)
at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration
registration, IEnumerable`1 parameters)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oren Eini (Ayende Rahien)  
View profile  
 More options May 14 2012, 5:17 pm
From: "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Date: Mon, 14 May 2012 22:17:19 +0100
Local: Mon, May 14 2012 5:17 pm
Subject: Re: [RavenDB] Getting HttpListenerException running in memory with no HTTP server

This code works:

using(var d1 = new EmbeddableDocumentStore
{
RunInMemory = true,
UseEmbeddedHttpServer = false

}.Initialize())

using (var d2 = new EmbeddableDocumentStore
{
RunInMemory = true,
UseEmbeddedHttpServer = false

}.Initialize())
{
}

On Mon, May 14, 2012 at 6:09 PM, Sean Kearon <kearon.s...@googlemail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sean Kearon  
View profile  
 More options May 15 2012, 3:59 am
From: Sean Kearon <kearon.s...@googlemail.com>
Date: Tue, 15 May 2012 00:59:12 -0700 (PDT)
Local: Tues, May 15 2012 3:59 am
Subject: Re: [RavenDB] Getting HttpListenerException running in memory with no HTTP server

Bad me - I have a configuration class that was turning the embedded http
server back on!  

I'm sure there's an emoticon for embarrased...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Justin A  
View profile   Translate to Translated (View Original)
 More options May 16 2012, 2:45 am
From: Justin A <jus...@adler.com.au>
Date: Tue, 15 May 2012 23:45:30 -0700 (PDT)
Local: Wed, May 16 2012 2:45 am
Subject: Re: [RavenDB] Getting HttpListenerException running in memory with no HTTP server
 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sean Kearon  
View profile  
 More options May 16 2012, 3:26 am
From: Sean Kearon <kearon.s...@googlemail.com>
Date: Wed, 16 May 2012 00:26:30 -0700 (PDT)
Local: Wed, May 16 2012 3:26 am
Subject: Re: [RavenDB] Getting HttpListenerException running in memory with no HTTP server

Lol - yeah, that about sums it up :)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »