- 라이브러리 설정
- 나는 둘 다 제대로 작업하는
의 Web.config에 구성된 데이터베이스에 액세스하는 웹 프로젝트가
이제 웹 프로젝트의 라이브러리를 사용하고 싶습니다. Visual Studio에서 잘 작동합니다. 프로덕션 서버에서 웹 프로젝트는 데이터베이스에 액세스하지만 라이브러리는 프로젝트 웹에서 데이터베이스에 액세스 할 수 없습니다.
app.config와 web.config의 ConnectionString은 동일합니다. 프로덕션 서버에서 web.config 설정을 사용하지 않아야합니까? 내 영어
에 대한감사하고 죄송
편집
의 web.config 및 app.config에 connectionStrings
<connectionStrings>
<add name="IntranetConnectionString"
connectionString="Data Source=(local)\SQLExpress;Initial Catalog=Intranet;Integrated Security=True;"
providerName="System.Data.SqlClient" />
<add name="Database.Properties.Settings.IntranetConnectionString"
connectionString="Data Source=(local)\SQLEXPRESS;Initial Catalog=Intranet;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
오류 :
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: 26 - Error Locating Server/Instance Specified)
당신이 얻는 오류는 무엇입니까? stacktrace를 보여줄 수 있습니까? – Jorge