내 웹 사이트에 VS2010으로 작성된 등록 페이지가 있으며 클릭 등록에서 양식을 채울 때 다음 오류가 발생합니다. 도움을 주시면 감사하겠습니다.삽입 오류 : 파일에 대한 디렉토리 조회
System.Exception was unhandled by user code
Message=Insert Error:Directory lookup for the file "C:\Users\myname\Documents\myname\Project\App_Data\SJDatabase.mdf" failed with the operating system error 5(error not found).
Cannot attach the file 'C:\Users\myname\Documents\myname\Project\App_Data\SJDatabase.mdf' as database 'SJDatabase'.
연결 문자열 :
<connectionStrings>
<add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
<add name="MyConsString" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|SJDatabase.mdf;
Initial Catalog=SJDatabase;
Integrated Security=SSPI;"
providerName="System.Data.SqlClient" />
</connectionStrings>
'C : \ Users \ myname \ Documents \ myname \\ Project \ App_Data' 경로가 있는지 확인 하시겠습니까? – GolfWolf
일부 코드를 게시 할 수 있습니까? 연결 문자열은 주로 – Diego
@ w0lf 예입니다. 잘못 입력 했으므로 업데이트 된 버전을 확인하십시오. – user1300580