Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/299.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Windows服务在具有Interop.SHDocVw.dll ieframe.dll的本地系统下运行时出错res://ieframe.dll/dnserror.htm#_C#_.net_Windows Services - Fatal编程技术网

C# Windows服务在具有Interop.SHDocVw.dll ieframe.dll的本地系统下运行时出错res://ieframe.dll/dnserror.htm#

C# Windows服务在具有Interop.SHDocVw.dll ieframe.dll的本地系统下运行时出错res://ieframe.dll/dnserror.htm#,c#,.net,windows-services,C#,.net,Windows Services,我正在从一个使用了Microsoft.mshtml和Microsoft Internet控件的网站上删除一些屏幕 在Windows窗体中,应用程序运行正常,但在Windows服务中绑定应用程序后,我遇到以下错误res://ieframe.dll/dnserror.htm# 在 wb.Navigate(ConfigurationManager.AppSettings.Get(“LoginUrl”)、ref o、ref o、ref o、ref o) 如果在用户帐户下运行,则相同的Windows服务可

我正在从一个使用了Microsoft.mshtml和Microsoft Internet控件的网站上删除一些屏幕

在Windows窗体中,应用程序运行正常,但在Windows服务中绑定应用程序后,我遇到以下错误res://ieframe.dll/dnserror.htm# 在

wb.Navigate(ConfigurationManager.AppSettings.Get(“LoginUrl”)、ref o、ref o、ref o、ref o)

如果在用户帐户下运行,则相同的Windows服务可以正常运行


但当在本地系统帐户下运行时,它会抛出上述错误

如果您所做的只是屏幕抓取,那么您可能更喜欢Awesomium-。但是,关于您的错误,您是否尝试过作为NetworkService运行?我尝试过使用1。本地系统[获取错误]res://ieframe.dll/dnserror.htm# 2.本地服务[检索CLSID为{0002DF01-0000-0000-C000-0000000000 46}的组件的COM类工厂时出错,原因是以下错误:80070005.]3.网络服务[检索CLSID为组件的COM类工厂时出错{0002DF01-0000-0000-C000-0000000000 46}由于以下错误而失败:80070005.]4.用户帐户[运行成功。]我在帖子中有一个示例代码