ASP의 경우 IIS의 해당웹의 익명계정 설정부분에서 특정계정을 지정해 주면 되나,
ASP.NET의 경우는 실행계정이 ASPNET이므로 해당 계정이 적절한 권한이 있어야 한다.
권한설정방법은,
machine.config 에서
<identity impersonate="true" userName="" password=""/> 에 특정 계정을 지정해 주면 된다.
그런데, 특정 웹어플리케이션에만 적용코자 한다면 web.config에서
<location path="testSite/testApplication" allowOverride="false">
<system.web>
<identity impersonate="true" username="testUser" password="dgsd73b8dn">
</system.web>
</location>
를 추가하면 된다.
프로그래밍 코드내에서 해결하는 방법은 다음 문서를 참고하세요.
http://www.netomatix.com/ImpersonateUser.aspx
2004/11/10
Windows2000 ASP.NET에서 네트웍 파일 접근시
가장 많이 본 글
-
C#, Google.Apis.Blogger.v3 Auth 처리되지 않은 예외: System.InvalidOperationException: At least one client secrets (Installed or Web) should be ...
-
처리되지 않은 예외: System.Security.Authentication.AuthenticationException: SSPI를 호출하지 못했습니다. 내부 예외를 참조하십시오. ---> System.ComponentModel.Win32Exce...
-
심각도 코드 설명 프로젝트 파일 줄 비표시 오류(Suppression) 상태 오류 Failed to add reference to 'System.Linq'. Please make sure that it is i...
댓글 없음:
댓글 쓰기