2011-12-22 3 views
96

Nant 0.91을 다운로드 한 후, 구성이나 보안과 관련하여 약간의 암호화 된 구성 오류가 발생합니다 (아래 참조).Nant 0.91의 구성 오류를 어떻게 해결합니까?

간단히 말해 Nant 실행 파일을 0.86에서 0.91로 업그레이드하려고합니다.

Windows 7 컴퓨터에서 구축 할 때 아래 문제를 어떻게 해결할 수 있습니까?

log4net : ERROR XmlConfiguratorAttribute : ConfigurationFileLocation을 가져 오는 예외입니다. ConfigFile 및 ConfigFileExtension 속성이 설정되지 않은 경우 ConfigurationFileLocation을 해결할 수 있어야합니다. System.Security.SecurityException : 'System.Security.Permissions.FileIOPermission, mscorlib, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089'형식의 사용 권한 요청이 실패했습니다. System.Security.CodeAccessSecurityEngine.Check에서 System.Security.CodeAccessSecurityEngine.Check에서 (개체 수요, StackCrawlMark & stackMark, 부울 isPermSet) (CodeAccessPermission과 캡, StackCrawlMark & stackMark) System.Security.CodeAccessPermission.Demand() 에서 에서 System.AppDomainSetup.VerifyDir log4net.Config.XmlConfiguratorAttribute.ConfigureFromFile (조립 sourceAssembly, ILoggerRepository targetRepository)에서 log4net.Util.SystemInfo.get_ConfigurationFileLocation() 에서 (문자열 DIR, 부울 정상화) 했다 실패

액션 : 수요가 typ 실패한 첫 번째 권한 전자이었다 : System.Security.Permissions.FileIOPermission 했다 실패 어셈블리의 지역 : 인터넷

처리되지 않은 예외 : System.Security.SecurityException는 : 액세스를 시도하면서 ConfigurationPermission에 대한 요청이 실패했습니다 구성 섹션 'nant'. 모든 호출자가이 섹션의 데이터에 액세스 할 수있게하려면이 섹션이 선언 된 구성 파일에서 섹션 속성 'requirePermission'을 'false'로 설정하십시오. ---> System.Security.SecurityException : 'System.Configuration.ConfigurationPermission, System.Configuration, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a'형식의 사용 권한 요청이 실패했습니다. System.Security.CodeAccessSecurityEngine.Check에서 System.Security.CodeAccessSecurityEngine.Check에서 (개체 수요, StackCrawlMark & stackMark, 부울 isPermSet) (CodeAccessPermission과 캡, StackCrawlMark & stackMark) System.Security.CodeAccessPermission.Demand() 에서 에서 System.Configuration.BaseConfigurationRecord.CheckPermissionAllowed에서 System.Configuration.BaseConfigurationRecord.CheckPermissionAllowed (문자열 configKey, 부울 requirePermission, 부울 isTrustedWithoutAptca) --- 내부 예외 스택 추적의 끝 --- (문자열 configKey, 부울 requirePermission, 부울 isTrustedWithoutAptca) System.Configuration.BaseConfigurationRecord.GetSectionRecursive (String configKey, Boolean getLkg, Boo) ,의 checkPermission, 부울 getRuntimeObject, 부울 requestIsHere을 의지 & 결과를 객체, System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection에서 System.Configuration.BaseConfigurationRecord.GetSection (문자열 configKey) (문자열 sectionName에서) 을 & resultRuntimeObject 객체) at System.Configuration.ConfigurationManager.GetSection (String sectionName) at NAnt.Console.ConsoleStub.Framework.GetRuntimeFramework() at NAnt.Console.ConsoleStub.메인 (문자열 [] args를

(대답 .... 참조에 대한 질문으로 게시, 향후입니다)

+0

여전히 NAnt 0.92 ** 및 ** Windows 8.1 **과 동일한 문제가 발생합니다. 그러나 이것은 예상 할 수있는 것이었다. [다른 의견] (https://stackoverflow.com/questions/8605122/how-do-i-resolve-configuration-errors-with-nant-0-91/8605149#comment51546943_8605149)에서 확인할 수있는 것처럼 ** Windows 10 ** - 추가 할 다른 태그가 있습니까? – Wolf

답변

188

이상한 일이지만, 이것은 실행 파일이 NANT 0.91 아카이브에서 추출되는 방식과 관련이 있습니다. http://surfjungle.blogspot.com/2011/11/tip-running-nant-091-on-windows-7.html

내가 문제가 다운로드은 NAnt 점에서 관련 윈도우 7 보안 것으로 나타났습니다 :

소스 (... 나는 실제로 그것을 시도 할 때까지 나에게 아무 의미하지,하지만 실제로 작동 하는가) 0.91 zip 파일 예 추가 보안 관련 설정을 수행하기 전에 : 압축 파일을 마우스 오른쪽 단추로 클릭하고 속성을 선택하고 일반 탭에서 차단 해제 단추를 클릭 한 다음 속성 창에서 확인을 클릭하십시오. 이제 파일을 원하는 위치 인으로 추출하고 시스템 경로에 있는지 확인한 다음 새 명령 줄을 열고 NAnt가 성공적으로 실행되어야합니다.

+1

또한 다운로드 한 .zip 파일을 로컬 컴퓨터에 저장 한 다음 차단 해제를 클릭하고 압축을 풉니 다. 나는이 파일을 네트워크 공유에 저장하고 Windows는 차단 해제되지 않은 것처럼 위장한 상태에서이 작업을 시도했습니다. #ProTip –

+0

이 솔루션이 Windows 10에서도 작동하는지 궁금한 사람이있을 경우 –

+1

다른 언어 (번역) 이상한 점 : 독일어의 경우 버튼에 '* Zulassen' * – Wolf

8

내 등록 정보/일반 탭에는 차단 해제 단추가 없었지만 동일한 문제가있었습니다. (이유는 모르겠지만 VMWare Fusion 가상 머신에서 실행되고 있다는 사실과 관련이있는 것처럼 보입니다.)

Windows 내장형 이외의 다른 것을 사용하면이 문제는 해결되지 않은 것처럼 보입니다. ZIP 추출기를 사용하여 파일을 추출하십시오. 예를 들어, 7-Zip을 사용하여 아카이브를 추출하면 모든 것이 정상적으로 작동합니다.

+0

물론 있습니다! 그러나 대부분 압축하는 데 7-Zip을 사용하더라도 내장 옵션이 ** 매력적이므로 **;) 압축을 풀 때 오른쪽 컨텍스트 메뉴 항목을 누르는 것이 때때로 혼란 스럽습니다. – Wolf

관련 문제