我是CefSharp的新手我已经创建了一个类库项目并引用了CefSharp库来呈现Web浏览器,但是我遇到了一些显示Web浏览器的问题.请找到确切的代码
WebBrowser_test1:
public partial class ChildWidget : Window
{
public CefSharp.Wpf.ChromiumWebBrowser webView;
public Widget()
{
InitializeComponent();
CefSharp.CefSettings settings = new CefSharp.CefSettings();
settings.PackLoadingDisabled = true;
if (CefSharp.Cef.Initialize(settings))
{
webView = new CefSharp.Wpf.ChromiumWebBrowser();
main_grid.Children.Add(webView);
webView.Address = "http://www.google.co.uk";
}
}
}
Run Code Online (Sandbox Code Playgroud)
我在另一个项目中引用了这个库(dll)
public MainWindow()
{
InitializeComponent();
Button newbutton = new Button();
newbutton.Width = 50;
main_grid.Children.Add(newbutton);
newbutton.Click += ButtonClick;
}
private void ButtonClick(object sender, RoutedEventArgs e)
{
try
{
Webbrowser_test1.ChildWidget childWidget = new Widget();
childWidget.Show();
}
catch (Exception)
{
throw;
}
}
Run Code Online (Sandbox Code Playgroud)
现在点击按钮,我将打开(WebBrowser_test1)子窗口小部件,我将在其中显示Web浏览器..当窗口打开时,它显示为空白.
如果我遗漏任何东西,请告诉我
想知道是否有人可以解释这个问题:
我正在尝试找到Airflow REST API URL以启动从AWS Lambda函数运行的DAG.
到目前为止,从查看Apache孵化器站点提供的所有相关文档,解决问题的唯一指导是在Lambda(python 3.6)代码中使用此URL结构:
Apache Experimental API:https: //airflow.apache.org/api.html#endpoints
基于该链接的语法应为:
http://airflow_hostname/api/experimental/dags/<DAG_ID>/
Run Code Online (Sandbox Code Playgroud)
但是,这无法从我的AWS Lambda函数启动特定DAG,任何帮助/指导或指针都会很棒.
所以这必须是我需要一个涂料巴掌的情况:
我使用Visual Studio(2013和2015)创建了新的测试WebAPI应用程序,并使用标准项目创建对话框将它们配置为使用组织帐户进行身份验证.我已经将它们连接到我工作场所的azure订阅上的测试Azure Active Directory(AAD)目录以及我的MSDN azure订阅中的一个.
在所有情况下,当第一次加载应用程序时,我得到一个IIS 401.2响应.好的.我在项目属性窗口上启用匿名身份验证.然后,当我导航到使用[Authorize]属性修饰的控制器时,我得到以下内容:
<Error>
<Message>Authorization has been denied for this request.</Message>
</Error>
Run Code Online (Sandbox Code Playgroud)
这既发生在本地也发生在云服务Web角色中(将Web角色URL添加到应用程序URL).
我知道它必须是简单的东西.我必须错过一些绝对愚蠢的东西,但不能,因为我的生活,弄清楚它可能是什么.
有没有人想到为什么我没有被重定向到AAD登录页面?
model-view-controller azure visual-studio asp.net-web-api azure-active-directory
当我分发我开发的软件时遇到问题,编译后的.exe在我的系统上运行正常,但在解析给其他人时,它会在32位和64位系统上显示以下错误.
我已经尝试了很多编译选项,包括混淆,为任何CPU构建,构建为64位和32位,我也试过,在其他系统上构建,所有.dll都在包中提供,我甚至累了合并.dlls我可以没有违反许可协议等
甚至在其他系统上注册了所有.dll.
有任何想法吗?我做了一些谷歌搜索,但作为最后的手段,我不得不在这里问,知道我的运气将是明显的东西,错误让我相信dll不存在但他们是......
以下是错误:
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: testtool.exe
Problem Signature 02: 1.0.0.0
Problem Signature 03: 4e1ec8bf Problem
Signature 04: ScintillaNet
Problem Signature 05: 2.2.3581.19319
Problem Signature 06: 4adf566e
Problem Signature 07: 66e Problem
Signature 08: 5c
Problem Signature 09: System.IO.FileNotFoundException
OS Version: 6.1.7600.2.0.0.272.7
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Run Code Online (Sandbox Code Playgroud)
...在我编译的系统上运行正常.
上面让我认为dll不存在......但它们是.
谢谢,斯科特