web.configに接続文字列があります。データソースは「.\SQLEXPRESS
」 ローカルマシンで正常に動作しますが、vsを使用してWebサイトを公開したときにSQL接続に関するエラーが発生しました。connectionstring in web.config
「。」に何か問題があると思います。次に、そのエラーをローカルマシンとリモートマシンの両方で発生した後、IPアドレスに変更しました。
私は問題がデータソースの表現にあると思う。誰も私がこれを解決するのを助けることができる?
エラーは次のとおりです。
Server Error in '/' Application. 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)
は、あなたが持っている実際のエラーを投稿してくださいことはできますか? –
はリモートマシンのSQLExpressですか? – Robert