2015-04-20 38 views
0

我已经使用EPiServer v8.0安装了一个新的空白站点。该网站是使用以管理员身份运行的Visual Studio扩展程序创建的。当我运行的网站,我得到一个数据库连接错误:在新安装的EPiServer中无法连接数据库

"A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 50 - Local Database Runtime error occurred. Error occurred during LocalDB instance startup: unable to create the SQL Server process. 

)”

我从web.config中的连接字符串,像这样:

<add name="EPiServerDB" connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|EPiServerDB_1293efd2.mdf;Initial Catalog=EPiServerDB_1293efd2;Connection Timeout=60;Integrated Security=True;MultipleActiveResultSets=True" providerName="System.Data.SqlClient" /> 

我已经安装了铝合金方网站并且这个工作正常。Alloy的连接字符串与我的空白站点相同,除了数据库名称。

我的事件查看器中有很多这些错误ap折叠日志从SQLLocalDB:

Windows API call CreateProcessAsUserW returned error code: 740. Windows system error message is: The requested operation requires elevation. 
Reported at line: 3705. 
+0

现在我的合金网站也停止工作了,同样的错误。 –

回答

0

确保您可以使用Windows身份验证通过Management Studio连接到数据库(如你有集成安全性=在连接字符串中真)。

如果不是,您是否安装了LocalDB?

接下来,确保Web应用上下文的用户能够访问数据库;如果您正在运行IIS Express,则这将是您用来启动Visual Studio的帐户。

如果您正在运行全面的IIS,它将成为应用程序池的帐户。

0

问题原来是LocalDB。我的LocalDB已停止运行,因此当我安装空的EPiServer站点时,数据库设置不正确。奇怪的是,安装程序没有返回任何错误。

这是一个反复出现的问题,我还没有到底。 LocalDB一直停止,但我不知道为什么。

相关问题