c# - COMException when using Windows API Code Pack -
I downloaded the Windows® API code pack for Microsoft. On the Net Framework
On the test of the solution on VS 2008, I get an error in line
IKnownFolderManager knownFolderManager = (IKnownFolderManager) New known folderManagerClass () ; KnownFolderManager.GetFolderIds (Outside Folders, Count Out);
Details given below,
system.timetime. Interp Services COMException was unrestricted for message = "Recover COM class factory for CLSID {4DF0C730-DF9D-4AE3-9153-AA6B82E9795A} failed due to the following error: 80040154." Source = "Microsoft.WindowsAPICodePack.Shell" ErrorCode = -2147221164 StackTrace: On Microsoft. WindowsPicodePack Shell.nofofolders.getAllFolders () in D: \ WindowsAPICodePack \ WindowsAPICodePack \ shell \ known folders \ known folders.cs: line 43 on Microsoft.WindowsAPICodePack. Shell.KnownFolders.get_All () in D: \ WindowsAPICodePack \ WindowsAPICodePack \ Shell \ KnownFolders \ KnownFolders.cs: Row 29 Microsoft.WindowsAPICodePack.Samples.ExplorerBrowserTestForm..ctor () in D: \ WindowsAPICodePack \ Samples \ ExplorerBrowser \ CS \ WinForms \ ExplorerBrowserTestForm.cs: Microsoft.WindowsAPICodePack.Samples.Program.Main () in 27: D: \ WindowsAPICodePack \ Samples \ ExplorerBrowser \ CS \ WinForms \ Program.cs: line 18 system. On the AppDomain._nExecuteAssembly (Assembly assembly, System.AppDomain.ExecuteAssembly (String assemblyFile, Evidence assemblySecurity, string [] args) on Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly () on the system. String [] args on Threadi System Ng.ThreadHelper.ThreadStart_Context (Object State) on System.Threading.ExecutionContext.Run (ExecutionContext Execution Context, Context Callback Callback, Object State) in Threading.ThreadHelper.ThreadStart () InnerException:
Question
Please help solve this error.
This error code means that the object you requested is not registered on the system. IKnownFolderManager appeared to start with Vista.
Comments
Post a Comment