Wpf webbrowser不会加载sharepoint模块

时间:2018-05-18 10:51:43

标签: wpf sharepoint webbrowser-control

我们目前正在尝试创建一个简单的WPF webbrowser,它在sharepoint站点上打开。在这个网站上有一些学习模块,如果你启动其中一个你被重定向到elearningforce模块,问题是每当我尝试从wpf webbrowser启动其中一个模块时,它只是停留在“加载学习模块” ”。我之前从未使用过wpf webbrowser或elearningforce,我是否需要允许重定向或什么?

2 个答案:

答案 0 :(得分:0)

WPF public async Task TestMethod1() { // Codes to follow. 控件使用其窗口中嵌入的Internet Explorer ActiveX控件。因此,它与安装的Internet Explorer版本具有相同的限制。默认情况下,它将使用IE 7兼容性,因此更现代的 --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-e6c5369957bc> in <module>() 55 print(feed_dict) 56 _ , loss_val = sess.run(tr_op, ---> 57 feed_dict=feed_dict) 58 print('Loss of the current batch is {}'.format(loss_val)) TypeError: 'NoneType' object is not iterable 可能无法正常工作。

您可以通过设置注册表项来强制控件使用更现代的呈现引擎,如Microsoft文章中所述:Browser Emulation

您需要为.exe名称添加条目。例如,如果您的应用程序是myapp.exe,那么获取IE 11将会是这样的。

print(type(tr_op))
print(type(feed_dict))
try:
    some_object_iterator = iter(feed_dict)
except TypeError as te:
    print (feed_dict, 'is not iterable')
print(feed_dict)

答案 1 :(得分:0)

我最终使用了CefSharp,这使我能够将wpf应用程序使用的浏览器从IE更改为Chrome,这解决了我的问题

相关问题