Alternative solution for ActiveX with Chrome - asp.net

I have a .NET web app that is served to our end users via Citrix using IE11. The web app uses an ActiveX control in the browser to get access to the Citrix client details, ie, it's environment variables.
This allows the browser to automatically identity the terminal that the web app is running from and adapt its behaviour to suit that particular terminal.
For various reasons, we need to remove IE11 and switch to Chrome for our browser, which lacks ActiveX.
I'm not an expert with Citrix and I am open to alternative modern solutions that avoids ActiveX and lets the Chrome browser access the Citrix client details.

Related

How to prevent CEFSharp application from accessing widows resources

I have created wpf windows browser application using CEFSharp 69.0 and chromium version 3.3497.1841.0
It is working fine and able to access websites and popups also enabled.
This CEF Application is working in a secured environment access to system resources need to be blocked.
Please let me know is there any way to block accessing system windows resources from CEF web application.
For example some websites have a print button. On clicking that it will get navigated to system windows printer.
Need a way to restrict this behavior.
please help me on this.

Kerberos not working with Chrome

I have a .net web application that is hosted in IIS 8.5. The application is accessing Microsoft System Center Service Manager (SCSM) using the SCSM SDK. The site is using Windows Authentication and impersonating the user accessing the site. Therefore I have followed this guide to setup Kerberos authentication.
Kerberos is working fine and I am able to update and retrieve data from SCSM and that the authenticated user's identity is used. However, during testing, I am noticing that using Chrome (40.0.2214.115), the authentication mode used is NTLM, thus it fails to interact with SCSM.
IE (11.0.9600.17501) works fine.
The kicker: If I open up IE and connect to the application first, and then open up Chrome, it works fine in Chrome.
Most of the users are on IE, but I want to understand what is happening and correct it if I can.
What am I missing?
First: what I can really recommend is to use WireShark (or probably some other network sniffer tool) to analyze what is on the wire. This helped me more than often to trace and find weird problems with Windows, networking, WCF development, Kerberos.... It is not easy with hundreds of captured packets to spot the problem, but you can always compare against a known-good configuration.
For your specific problem, I suggest starting Chrome with
--auth-server-whitelist="*example.com"
as described at http://www.chromium.org/developers/design-documents/http-authentication.
Just to complement previous answer: indeed, Chrome requires site to be "whitelisted" and theoretically in Windows it should be picking up values from Internet Options.
For me what solved the problem was adding Registry Keys on my Windows 7 computer as follows:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome]
"AuthNegotiateDelegateWhitelist"="*"

ITHit webdav EditDoc js not working in ios browsers

We have used ITHit ajax library to open documents from browser using EditDocument javascript method. (ITHit.WebDAV.Client.DocManager.EditDocument)
All works fine in desktop browsers.(Safari/Chrome/IE/Firefox)
But when we try from IPhone/IPad browsers, the javascript method is invoked but the document opening is not triggered.
Even though the IT Hit WebDAV Ajax Library runs both in mobile and desktop web browsers, it supports document editing in desktop web browsers only.
It is using components installed by Microsoft Office (in case of MS office docs and if MS Office is found) or Java applet in all other cases to mount a drive and than to open a document. Unfortunately iOS, Android and Win Phone does not provide drive mounting capabilities.
Many mobile applications has built-in WebDAV support. For example here you can find how to open documents in iWork on iOS.

Google Earth Map Plugin not works in desktop application

I developed a web page, which displays a google earth map and hosted in an iis server. Now, I want to invoke that page in a browser control through a vb.net desktop application.
When i run the application, the browser control shows 'Your browser does not support the Google Earth Plugin'. But, at the same time, the web page is getting displayed in the chrome browser without any error in the client systems. Also, the desktop application works properly in the server system.
Kindly suggest what could be the reason for the plugin not works in desktop application.
Windows XP & 7
Google Chrome Version 34.0.1847.137 m
Thanks
Sivakumar
It could be that the webbrowser control is using the 64bit version of Internet Explorer, hence the GEPlugin wont work.
To fix this simply compile your vb.net desktop application to target 'x86' rather than 'anyCpu'.

Debugging Websites with Google Chrome

When writing an ASP.NET website, Visual Studio allows me to specify which browser to use for debugging. I've just started playing with MVC 3 and I'm not seeing any such option.
With MVC, debugging occurs in Google Chrome, which is fine except that Visual Studio doesn't recognize when I've closed the browser. I must then manually shut down the debugger.
Is there a way to either A) have the Visual Studio debugger recognize when I've stopped debugging the website in Chrome, or B) specify that IE should be used when debugging? (I prefer to keep Chrome as my default browser when browsing the Web.)
When you debug a web application, Visual Studio simply attaches itself to the IIS process (or the development server process, if you're using that), and starts the browser with the correct URL. The browser doesn't even know you're debugging. With IE, Visual Studio performs some additional inter-process voodoo to detect when IE closes; other browsers however are unaware of this mechanism and simply do what they always do - display the page until the user closes it. So your choices are:
Live with the fact that you'll have to close the browser manually
Reuse browser windows (instead of running the browser from inside Visual Studio, use "Attach to process" and open the page manually)
Bite the bullet and use IE
I believe this extension allows you to choose your browser with MVC applications. Or, you could just add a normal HTML page, and set the browser default on that. This should become the default for the rest of your project.
To keep IE as you browser right click on an aspx file and click browse with. you should be able to set a default from there.
If you don't have an aspx form just create one, set pref then delete.

Resources