I run and initialize an instance using the following code:
EmbeddableDocumentStore db = new EmbeddableDocumentStore();
db.DataDirectory = @"C:\RavenDb\";
db.Configuration.HostName = "localhost";
db.Configuration.Port = 8080;
db.UseEmbeddedHttpServer = true;
db.Initialize();
After initializing and keeping the app in debug mode I try to access the management studio on my browser through "localhost:8080" but the request times out/ nothing happens. I tried different ports, I start VS2012 in Admin mode. I downloaded the latest versions through Nuget. What am I doing wrong/ not seeing here?
Thanks
Edit: After couple suggestions I tried the following code, still to no avail:
NonAdminHttp.EnsureCanListenToWhenInNonAdminContext(8080);
EmbeddableDocumentStore db = new EmbeddableDocumentStore
{
RunInMemory = true,
DataDirectory = @"C:\RavenDb\",
UseEmbeddedHttpServer = true
};
db.Initialize();
In addition I received the following warning messages in the output window upon running the console application:
Resulting in: Cannot set import 'Raven.Database.Server.Security.OAuth.OAuthClientCredentialsTokenResponder.AuthenticateClient (ContractName="Raven.Database.Server.Security.OAuth.IAuthenticateClient")' on part 'Raven.Database.Server.Security.OAuth.OAuthClientCredentialsTokenResponder'. Element: Raven.Database.Server.Security.OAuth.OAuthClientCredentialsTokenResponder.AuthenticateClient (ContractName="Raven.Database.Server.Security.OAuth.IAuthenticateClient") --> Raven.Database.Server.Security.OAuth.OAuthClientCredentialsTokenResponder --> AssemblyCatalog (Assembly="Raven.Database, Version=2.0.0.0, Culture=neutral, PublicKeyToken=37f41c7f99471593")
This is one solution for the nuget pakage
Make sure the port is not in use