x
Main Site login Signup

Running Awesomium Offscreen on Windows Azure

Hi,

I am having problems running an Awesomium Offscreen on Windows Azure. My ASP.Net C# web project works fine locally using IIS Express & Local IIS. However, when I run it on Windows Azure it seems to crash half way through my code. All I am doing is setting the source on WebView, waiting for it to finish loading and then trying to get the html, e.g.

// This code works _webView.Invoke(new Action(() => { _webView.Source = uri; }));

// This code also works while (WebCore.DoWork(() => { return _webView.IsLoading; })) { Task.Delay(WebCore.AutoUpdatePeriod).Wait(); }

// I get an exception on this code string html = WebCore.DoWork(() => { return _webView.ExecuteJavascriptWithResult("document.documentElement.outerHTML;"); });

The exception I am getting is: System.InvalidOperationException: This IWebView instance is invalid. It has either been destroyed or it was never properly instantiated. at Awesomium.Core.WebView.e0TZVKjMwE() at Awesomium.Core.WebView.ExecuteJavascriptWithResult(String script, String frameXPath) at Awesomium.Core.WebView.ExecuteJavascriptWithResult(String script) at AutomateStuffPrototype.WebSessionAwesomium.b__11_3()

Any ideas?

Thanks!

asked Nov 17, 2016 at 11:30 AM avatar image searcher 0
more ▼
(comments are locked)
10|1100 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.