1
나는 데이터베이스에서 폼 인증을 사용하는 데 익숙하지만 약간의 내부 유틸리티를 작성 중이며 응용 프로그램에는 데이터베이스가 없으므로 web.config에 사용자 이름과 암호를 저장하려고합니다. 그러나 어떤 이유로 폼 인증은 여전히 SQL Server에 액세스하려고 시도하며이를 중지하고 web.config에서 자격 증명을 가져 오는 방법을 볼 수 없습니다. 내가 도대체 뭘 잘못하고있는 겁니까? "클라이언트가 가장하지 못해 SQL Server의 사용자 인스턴스를 생성하지 못했습니다. 연결이 닫힙니다."라는 오류 메시지가 나타납니다.폼 인증 : web.config에 username password를 어떻게 저장합니까?
<configuration>
<system.web>
<authentication mode="Forms">
<forms loginUrl="~/Login.aspx" timeout="60" name=".LoginCookie" path="/" >
<credentials passwordFormat="Clear">
<user name="user1" password="[pass]" />
<user name="user2" password="[pass]" />
</credentials>
</forms>
</authentication>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</configuration>
[web.config 파일에 암호 저장 및 저장] (http://stackoverflow.com/questions/7356537/encrypt-and-store-password-in-web-config-file) –