죄송합니다. 이전에 요청 하셨지만 Google 또는 Bing 검색에서 관련 qns를 찾을 수 없습니다.OPOS with asp.net
ASP.net & IIS 서버 영수증 인쇄로 간단한 POS 시스템을 구축하고 있습니다. 나는 .net을위한 OPOS를 설치했고 .net을위한 OPOS와 나는 ASP.net 프로젝트에 대한 참고 자료로 포함시켰다. 그러나 나는 "새로운 PosExplorer();를 통과 할 수 없을 것 같습니다." 다음 코드의.
PosExplorer posExplorer = new PosExplorer();
DeviceInfo receiptPrinterDevice = posExplorer.GetDevice(DeviceType.PosPrinter);//posExplorer.GetDevice("PosPrinter", "ReceiptPrinter"); //May need to change this if you don't use a logicial name or use a different one.
return (PosPrinter)posExplorer.CreateInstance(receiptPrinterDevice);
내가 가진 오류가 나는의 app.config에 추가하여 C#을 바탕 프로젝트에서 작업 할 수있는 코드를 얻을 수 있어요
An exception of type 'System.TypeInitializationException' occurred in Microsoft.PointOfService.dll but was not handled in user code
Additional information: The type initializer for 'Microsoft.PointOfService.Management.Explorer' threw an exception.
입니다.
ASP.net 프로젝트에 대한 구성이나 코딩이 잘못 되었습니까? 가능한 코딩 예제가 큰 도움이 될 것입니다. 당신이 시도 할 수
건배, 크리스 심