C# Windows服务在具有Interop.SHDocVw.dll ieframe.dll的本地系统下运行时出错res://ieframe.dll/dnserror.htm#
我正在从一个使用了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服务可以正常运行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服务可
但当在本地系统帐户下运行时,它会抛出上述错误如果您所做的只是屏幕抓取,那么您可能更喜欢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.用户帐户[运行成功。]我在帖子中有一个示例代码