Exception occurred while using "System.Windows.Forms"classes on server core 2016


i using  "savefiledialog" windows form in powershell script in windows server 2106 server core , getting below exception when using showdialog() method. behaviour noticed "openfiledialog" well. 

exception calling "showdialog" "0" argument(s): "creating instance of com component clsid
{c0b4e2f3-ba21-4773-8dba-335ec946eb8b} iclassfactory failed due following error: 80040111 classfactory
cannot supply requested class (exception hresult: 0x80040111 (class_e_classnotavailable))."
@ line:1 char:1
+ $f.showdialog()
+ ~~~~~~~~~~~~~~~
    + categoryinfo          : notspecified: (:) [], methodinvocationexception
    + fullyqualifiederrorid : comexception




<font face="trebuchet ms" color="green" size="3">cheers,</font> <br/> <b><font face="trebuchet ms" color="green" size="5">arunbv</b> </font>&nbsp;&nbsp;&nbsp;<a href="http://in.linkedin.com/in/arunbv" target="_blank"><img src="http://aka.ms/glr0s5" border="0"></a><br/> <br/> <b>if found post helpful, please give helpful vote. if answered question, remember mark answer</b>

hi,

>>cannot supply requested class (exception hresult: 0x80040111

this error message clarity.

server core has no gui .

you try script on desktop experience, suspect you'll desired results.

best regards,

andy


please remember mark replies answers if help.
if have feedback technet subscriber support, contact tnmff@microsoft.com.



Windows Server  >  Server Core



Comments

Popular posts from this blog

Motherboard replacement

Cannot create Full Text Search catalog after upgrading to V12 - Database is not fully started up or it is not in an ONLINE state

Remote Desktop App - Error 0x207 or 0x607