Rhino 라이센스를 사용하여 라이센스 시스템을 개발하려고합니다. Rhino.Licensing.dll을 다운로드하고 내 프로젝트에 참조를 추가했습니다. 나는 this 예제를 실행하려고합니다. 나는 license.xml
발생하지만 execption이 라이센스를 사용하는 응용 프로그램에있다 : Rhino 라이센스
{"Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one of its dependencies. The system cannot find the file specified.":"log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821"}
내 질문에
...
using Rhino.Licensing;
...
static void Main()
{
var publicKey = File.ReadAllText(@"c:\publicKey.xml");
new LicenseValidator(publicKey, @"c:\license.xml").AssertValidLicense();
Console.WriteLine("Hello");
Console.ReadKey();
}
은을 : 그 난이 예외가 왜 프로젝트에 코뿔소가 - 라이센스 및 추가이 올바른 방법? 이
log4net.dll
이 (가)
Rhino.Licensing.dll
에 추가 된 것 같습니다.
죄송합니다.
제안 해 주셔서 감사합니다. 문제는 잘못된 형식의'license.xml'입니다. 'Rhino.Licensing.dll' 자체는 log4net 레퍼런스를 가지고 있습니다. – lubomir