簡體   English   中英

Powershell DSC Pull Server引發內部錯誤-找不到Microsoft.Isam.Esent.Interop

[英]Powershell DSC Pull Server throws internal error - Microsoft.Isam.Esent.Interop not found

我已按照Powershell.org的DSC手冊中的說明設置了可與DSC一起使用的http Pull服務器(Windows 2012服務器)。 我設置了http Pull Server,然后設計了要拉的配置,然后設置了節點的LCM以拉並運行該配置。

我可以在Task Scheduler / Microsoft / Windows / Desired State Configuration下的節點上看到Scheduled任務,因此我至少知道某些方法可以正常工作。 但是,我的配置沒有運行。 當我查看Apps&Svcs / Microsoft / Windows /所需狀態配置/操作日志下的事件日志時 ,看到以下事件:

Job {E0B6977A-E34F-4EDD-8455-E555063CD3DD} : 
This event indicates that failure happens when LCM is trying to get the configuration from pull server using download manager WebDownloadManager. ErrorId is 0x1. ErrorDetail is The attempt to get the action from server http://pullserver.local:8080/PSDSCPullServer/Action(ConfigurationId='adaba4f6-b2b6-420d-a1dd-3714106451d6')/GetAction returned unexpected response code InternalServerError.

啟用CustomErrors后,當我手動單擊該URL時,出現以下錯誤:

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Isam.Esent.Interop, Version=6.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

我嘗試谷歌搜索此錯誤(不走運),但無法在此DLL上找到有用的信息。 看起來它應該隨Windows的某些部分一起提供,但是我在系統上看不到它。 我不願意從那些“ DLL Downloader”站點之一下載它。

為什么DSC Pull Server似乎需要此DLL而我沒有它的任何想法?

似乎xPSDesiredStateConfiguration中的PSDSCPullServer資源默認使用Esent作為數據庫提供程序,僅適用於Windows 8.1(不適用於Server 2012)。 我在這里找到了一些可以復制的代碼文檔。 我只需要為我的請求服務器編輯web.config並更改它:

<add key="dbprovider" value="ESENT" />
<add key="dbconnectionstr" value="C:\Program Files\WindowsPowerShell\DscService\Devices.edb" />

有了這個:

<add key="dbprovider" value="System.Data.OleDb" />
<add key="dbconnectionstr" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Program Files\WindowsPowerShell\DscService\Devices.mdb;"/>

原始配置試圖指向Devices.edb(在我的系統中不存在,.mdb確實存在)的事實進一步證明了某些時髦的事情正在發生。

你用什么方法? 資源工具包中的xPSDesiredConfiguration模塊還是手動步驟? 我自己還沒有閱讀過DSC書。 因此,我不知道他們的建議。

Microsoft.Isam.Esent.Interop程序集是ESE數據庫提供程序。 但是,您僅需要將此提供程序用於Blue OS(Windows 8.1)。 您為Pull Server使用哪個操作系統? 對於除Blue OS以外的所有受支持的OS,都應該對device.mdb使用Jet提供程序。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM