我跟随this tutorial使用ravenDb作为我的持久对象。RavenDb和目标机器积极拒绝
控制器上,当我试图挽救传递的值我有以下错误
> No connection could be made because the target machine actively
> refused it 127.0.0.1:8080
的Global.asax.cs
public class MvcApplication : System.Web.HttpApplication
{
public static IDocumentStore RavenDBDocumentStore { get; private set; }
private static void CreateRavenDBDocumentStore()
{
RavenDBDocumentStore = new DocumentStore
{
ConnectionStringName = "ravenDB"
}.Initialize();
}
protected void Application_Start()
{
...
CreateRavenDBDocumentStore();
}
}
我已经尝试过不断变化的端口号与8081
或8085
但无论哪种方式错误信息是相同的。
这里是我的连接字符串部分
<connectionStrings>
<add name="DefaultConnection"
providerName="System.Data.SqlClient"
connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-RavenMvc-20121125145005;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-RavenMvc-20121125145005.mdf" />
<add name="ravenDB"
connectionString="Url=http://localhost:8085"/>
</connectionStrings>
乌鸦服务器已经启动,一切都很好之后。
你关闭了Windows防火墙吗? – BlackICE
@BlackICE刚试过防火墙关闭。错误是一样的:( – panjo
你有任何错误在ravendb控制台窗口? – BlackICE