{"id":5240,"date":"2025-05-06T11:54:03","date_gmt":"2025-05-06T03:54:03","guid":{"rendered":"https:\/\/support.fuxinsoft.cn\/?p=5240"},"modified":"2025-05-08T10:27:09","modified_gmt":"2025-05-08T02:27:09","slug":"c%e8%af%ad%e8%a8%80%e7%9a%84sdk%ef%bc%8c%e5%9c%a8library-lnitializesnkey%e8%a1%8c%e5%87%ba%e7%8e%b0%e6%8a%a5%e9%94%99","status":"publish","type":"post","link":"https:\/\/support.fuxinsoft.cn\/?p=5240","title":{"rendered":"C# SDK\u4e2dLibrary.Initialize(sn,key)\u62a5\u9519\u5206\u6790\u4e0e\u89e3\u51b3\u65b9\u6848"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u5e38\u89c1\u62a5\u9519\u60c5\u51b5\u5206\u6790<\/h2>\n\n\n\n<p>\u5728\u4f7f\u7528C#\u8bed\u8a00\u7684SDK\u65f6\uff0c\u5f53\u6267\u884c<code>Library.Initialize(sn,key)<\/code>\u4ee3\u7801\u884c\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u4ee5\u4e0b\u4e24\u79cd\u62a5\u9519\uff1a<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>foxit.PDFException: &#8220;Load fail&#8221;<\/li>\n\n\n\n<li>DllNotFoundException: \u65e0\u6cd5\u52a0\u8f7d DLL&#8221;fsdk.dll&#8221;: \u627e\u4e0d\u5230\u6307\u5b9a\u7684\u6a21\u5757<\/li>\n<\/ol>\n\n\n\n<p>\u8fd9\u4e9b\u62a5\u9519\u90fd\u4e0e\u5f00\u53d1\u5305lib\u76ee\u5f55\u4e0b\u7684fsdk.dll\u6587\u4ef6\u6709\u5173\u3002fsdk.dll\u662f\u4e00\u4e2aC++\u7f16\u5199\u7684\u52a8\u6001\u94fe\u63a5\u5e93\uff0c\u5982\u679c\u6ca1\u6709\u6b63\u786e\u590d\u5236\u5230\u751f\u6210\u76ee\u5f55\u4e0b\uff0c\u7a0b\u5e8f\u5728\u7f16\u8bd1\u65f6\u901a\u5e38\u4e0d\u4f1a\u62a5\u9519\uff0c\u4f46\u5728\u8fd0\u884c\u65f6\u4f1a\u51fa\u73b0\u4e0a\u8ff0\u9519\u8bef\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u89e3\u51b3\u65b9\u6848<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u60c5\u51b51\uff1ax86\u6216x64\u67b6\u6784\u9879\u76ee<\/h3>\n\n\n\n<p>\u5982\u679c\u5f53\u524d\u9879\u76ee\u660e\u786e\u8bbe\u7f6e\u4e3ax86\u6216x64\u67b6\u6784\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5c06\u5bf9\u5e94\u67b6\u6784\u7684<code>fsdk.dll<\/code>\u6587\u4ef6\u590d\u5236\u5230\u8f93\u51fa\u76ee\u5f55\u4e0b<\/li>\n\n\n\n<li><strong>\u91cd\u8981\u63d0\u793a<\/strong>\uff1a\u786e\u4fddfsdk_dotnet.dll\u548cfsdk.dll\u7684\u67b6\u6784\u4fdd\u6301\u4e00\u81f4<\/li>\n<\/ul>\n\n\n\n<p>\u5982\u679c\u4e0d\u9075\u5faa\u6b64\u6b65\u9aa4\uff0c\u5c06\u4f1a\u51fa\u73b0&#8221;\u65e0\u6cd5\u52a0\u8f7dDLL&#8217;fsdk.dll'&#8221;\u7684\u62a5\u9519\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img fetchpriority=\"high\" decoding=\"async\" width=\"603\" height=\"363\" src=\"https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2025\/05\/image.png\" alt=\"\" class=\"wp-image-5242\" style=\"width:798px;height:auto\" srcset=\"https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2025\/05\/image.png 603w, https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2025\/05\/image-300x181.png 300w\" sizes=\"(max-width: 603px) 100vw, 603px\" \/><\/figure>\n\n\n\n<p><br><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u60c5\u51b52\uff1aAnyCPU\u67b6\u6784\u9879\u76ee<\/h3>\n\n\n\n<p>\u5982\u679c\u9879\u76ee\u8bbe\u7f6e\u4e3aAnyCPU\u67b6\u6784\uff1a<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>\u5728\u8f93\u51fa\u76ee\u5f55\u4e0b\u65b0\u5efa\u4e24\u4e2a\u5b50\u6587\u4ef6\u5939\uff1a<code>x64<\/code>\u548c<code>x86<\/code><\/li>\n\n\n\n<li>\u5c06\u5bf9\u5e94\u67b6\u6784\u7684fsdk.dll\u6587\u4ef6\u5206\u522b\u653e\u5165\u76f8\u5e94\u76ee\u5f55\n<ul class=\"wp-block-list\">\n<li>x64\u67b6\u6784\u7684dll\u653e\u5165x64\u6587\u4ef6\u5939<\/li>\n\n\n\n<li>x86\u67b6\u6784\u7684dll\u653e\u5165x86\u6587\u4ef6\u5939<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p>\u5982\u679c\u4e0d\u6267\u884c\u6b64\u64cd\u4f5c\uff0c\u5c06\u4f1a\u51fa\u73b0&#8221;foxit.PDFException: Load fail&#8221;\u7684\u62a5\u9519\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" width=\"646\" height=\"386\" src=\"https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2025\/05\/image-1.png\" alt=\"\" class=\"wp-image-5243\" style=\"width:800px;height:auto\" srcset=\"https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2025\/05\/image-1.png 646w, https:\/\/support.fuxinsoft.cn\/wp-content\/uploads\/2025\/05\/image-1-300x179.png 300w\" sizes=\"(max-width: 646px) 100vw, 646px\" \/><\/figure>\n\n\n\n<p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0c\u53ef\u4ee5\u6709\u6548\u89e3\u51b3Library.Initialize(sn,key)\u8c03\u7528\u65f6\u51fa\u73b0\u7684dll\u52a0\u8f7d\u95ee\u9898\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5e38\u89c1\u62a5\u9519\u60c5\u51b5\u5206\u6790 \u5728\u4f7f\u7528C#\u8bed\u8a00\u7684SDK\u65f6\uff0c\u5f53\u6267\u884cLibrary.Initialize(sn,key)\u4ee3\u7801\u884c\u65f6 [&hellip;]<\/p>\n","protected":false},"author":31,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[77],"tags":[527,532,531,529,530],"class_list":["post-5240","post","type-post","status-publish","format-standard","hentry","category-gsdk","tag-c","tag-dll","tag-fsdk-dll","tag-library-initialize","tag-load-fail"],"pp_statuses_selecting_workflow":false,"pp_workflow_action":"current","pp_status_selection":"publish","_links":{"self":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/5240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/users\/31"}],"replies":[{"embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5240"}],"version-history":[{"count":3,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/5240\/revisions"}],"predecessor-version":[{"id":5260,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/5240\/revisions\/5260"}],"wp:attachment":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}