I am working on my college project to build a Web Browser. I am Halfway through My Project and i came to know that WebBrowsers need javascript interpreters to Display latest websites.I am using c# language in Visual studio 2012. It Still Displays Some of the Basic Webpages but Doesn't Displays latest updated webpages like Google maps. I tried to suppress the error but doesn't help in other high end web pages. So how can i build a javascript interpreter and install it in my web browser.
Code I used to suppress the error
c# getCurrentBrowser().ScriptErrorsSuppressed = true;
The reason is that, you code is using the IE browser of your windows. IE often have incompatibilities. Try doing some research and inject a proper browser like chromium or gecko.
Look at this package
Related
As Blazor can run on client side via WebAssembly, can we develop/design Google Chrome extensions using Blazor?
I have developed a package to be able to build a Blazor WebAssembly application into a chrome extension.
Checkout the repo on GitHub for a step by step instruction how to convert your project to a Blazor chrome extension project.
Check out this Github repo that demonstrates a Hello World Chrome Extension written in Blazor. It has no interaction with Chrome APIs but does show how to package up a Blazor app as an extension.
https://github.com/traxium/webassembly-chrome-extension
You should be able to use Javascript Interop to call browser APIs, but I don't know of any way to call them directly. An open source project that mapped the browser APIs to C# would be ideal here.
Yup! We can develop/design Google Chrome extensions using Blazor-webassembly-app.
I'm building a chrome extension using asp.net 5.0 in blazor-webassembly-app.
I have faced so many difficulty till now and right now I am continuously facing difficulty its because no one in the world tried it yet and I am researching on it while building my POC (proof of concept).
I am using C# Forms application that integrates GeckoFX browser to access web page. The web page is designed to use Flash.
I was able to integrate Flash driver into older version of GeckoFX (33.0) that is using xulrunner. The flash driver (NPSWF32.dll) is simply put into xulrunner\plugins directory and everything works fine.
However, I am not able to get the project run with recent versions of GeckoFX (eg. 45.x) that is not based on xulrunner. Is there any idea where should I put NPSWF32.dll?
I have build a c# Windows Form application which required both automation and human interaction on the Chrome browser opened by selenium.
Currently 3 separate windows open
1. My Winform application
2. Selenium Console
3. The Chrome browser
I would like to embed both the console (will embed but hide from view) and the browser opened in the application itself. I have found this answer explaining how to embed the console application.
The link you've provided gives you some example code to work off.
That allows you to embed the console in to your WinForms window.
I then found this link, which goes a bit more in-depth in to the matter.
Granted, the link is rather old but it should get you started in the right direction.
Regarding the links provided by the page I linked, Selenium provides NuGet packages for C#:
install-package selenium.webdriver
install-package selenium.webdriverbackendselenium
install-package selenium.support
That should at least provide you with a decent start.
a website made in .net/c#/html/css
locally works fine in internet explorer
but remotely (deployed) it has to be included in the compatibility settings of internet explorer!?
any one has a clue why? or how to find out?
the general issue is that for example some devexpress pagination does not work and some buttons do not work, and links don't do anything when clicked, etc...
but like i said localy - started from visual studio in internet explorer, no problems. deployed - in internet explorer it has these issues but chrome is just fine for example.
The likely culprit is that ASP.NET is not properly detecting Internet Explorer, as detailed in this Microsoft post. One way to tell is you will get a _doPostBack is undefined JavaScript error.
To resolve this issue, do one of the following:
Revise the application to use feature detection, rather than browser detection (preferred).
Update the ASP.NET browser definition files.
We have a .NET 3.5/ASP.NET MVC 1 solution. Everything works great on the developer machines but after that build starts on the build server we get:
"Only Content controls are allowed directly in a content page that contains Content controls."
For example
<error code="ASPPARSE" file="/temp/Views/Account/ChangePasswordSuccess.aspx" line="4" column="0" timeStamp="10/10/2011 01:25:46">
<![CDATA[Only Content controls are allowed directly in a content page that contains Content controls.]]>
</error>
Same ASP.NET MVC, same .NET. Visual Studio 2008 is not installed on the buildserver.
Any idea?
Environment
Build server: CC.NET 1.6
OS: Windows 2003 R2 SP2
IIS 6
Yeah. You build server likely builds a prod build, visual studio likely builds a dev build. The security restrictions and other configurations for these are likely different.
In visual studio, switch the build target off of debug and see if it still happens
That must be failing on the developer's machine, just that it does while trying to show the corresponding view / not while building it.
Have the developer build with it turned on, and locate the view that's failing the build.
Update: actually, I didn't pay close attention to the message, it is very likely you just have a page that uses a master page and has content Outside the content controls.
As i have seen according to your message there may some layout related problem in your page. which generates some html contents at run time...
have look on this asp.net forum post.
http://forums.asp.net/t/1251873.aspx/1
as Munim Abdul said, it may be possible in that way but i do not think it is the issue with an experienced person like you..
I have faced this error when i was learning sharepoint and in normal asp.net applications..
search out.. may be this will help you little bit..