# in URLs getting encoded as %23 and passed through to server - html

Our single page app contains hash-based URLs (ie #map).
I've had a few errors show up in my logs similar to the one below:
[MissingControllerException] Controller class %23mapController could not be found.
It seems that under some condition the hash tag is being encoded rather than being treated as the special character that it is.
Incidentally, a grep through the source indicates one occurrence of navigation to that particular location,
<a href="#map">
I have not been able to recreate a scenario that triggers this issue. It happens only on infrequent occasion. It has been logged for IE 7-9. It is possible that this error may occur in other browsers, but it has only been recorded for IE. Sample user agents:
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; 360SE)
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3)
Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/5.0)
Is anyone aware of a scenario under which this behavior might be exhibited?

Perhaps it has something to do with the proper encoding eg UTF-8 vs iso... on your client app.
I had this issue using Spring MVC, the default in my app it was utf but in apache it was iso

Related

Outlook opens in old version in chrome headless mode. How to resolve it in Selenium C#

While running chrome in headless mode outlook open as in the older version
It should open with the latest outlook web mode
Note: When we run in chrome browser (with head) it opens the outlook with latest UI
Is there anything should i add in ChromeArgument?
Headless mode user agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/109.0.5414.120 Safari/537.36
Whereas the real Chrome user agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
we need to override the chrome argument while initializing the chromedriver
chromeOptions.Add("--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36");

Is there a way to upgrade the HTML WebBrowser control in WPF? [duplicate]

Does the WPF WebBrowser control depend on the version of IE that is installed on the user's machine, or does it use a separate library that is consistent across machines? I've read that it only renders in IE7 mode, but I want to make sure there wouldn't be any issues with a user who either doesn't have IE installed or is still on IE6 for some reason.
The MSDN remarks for WebBrowser indicate it rehosts the IE ActiveX control:
The WebBrowser control internally instantiates the native WebBrowser ActiveX control.
The WebBrowser ActiveX control is better known as Shdocvw.dll. This in turn wraps Mshtml.dll, and probably other DLL's given your environment. One caveat of rehosting this control is its setting for Browser Emulation:
For applications hosting the WebBrowser Control, the default value is 7000. To control the value of this feature by using the registry, add the name of your executable file to the following setting and set the value to match the desired setting.
0x7000 means IE7 compatibility mode. Therefore, if you would like your WPF application to render using some other mode you need to update the registry, as adapted from this example:
[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]
"MyApplication.exe" = dword:2328
I created a WPF app with a WebBrowser Control on a machine with IE11 and got this user agent string:
user agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3; .NET CLR 1.1.4322)
I created a WPF app with a WebBrowser Control on a machine with IE10 and got this user agent string:
user agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
Trident/7.0 indicates IE11 and Trident/6.0 indicates IE10. More about user-agent strings.
The system with IE10 also had the page render differently than the system with IE11. I also verified this with the standalone IE browsers on each system.
I've yet to try it on a system WITHOUT IE or a system running IE6, but it seems that WebBrowser control is related to the version of IE currently installed on the system.

No connection with webservice Windows Phone 8.1

In my universal app i'm connecting with remote webservice. In windows phone I get WebException : The remote server returned an error: NotFound. The same application I have on windows 8.1 and there connection with webservice work fine.
What can be wrong?
this is not about a code. Is work fine on windows 8.1, IOS and android. It worked on windows phone a few days ago. Is a simple HttpWebRequest. The point is that I cant connect to webservice ONLY on windows phone. I checked on the two devices with this system. In addition, the webside which probably stands on the same server does not work on internet explorer in this devices. But when I open it in another browser website work fine.

WebSocket server on Windows Phone 8

Is there any library to run a WebSocket server on Windows Phone 8? Or samples?
There is the SuperWebSocket library (http://superwebsocket.codeplex.com) but it does not support the .NET for Windows Phone 8.

Install Visual Studio 2013 on Windows 7

I would like to install Visual Studio 2013 on Windows 7 64-bit.
For some reason, the installer says "Setup Blocked" with an error "This version of Visual Studio requires a computer with a newer version of Windows".
This error is not exactly descriptive of what's wrong. The least I could do was verify that I have the following installed :
Windows 7 Professional (64-bit) with Service Pack 1
Internet Explorer 10
Version: 10.0.9200.16750
Update Versions: 10.0.12 (KB2898785)
All Windows Updates that were available for installing on 11th of Dec. 2013.
Executed the installer with the /log winexp.log argument and got the following : winexp.log.
Any ideas of what else could be the problem ?
Thanks.
Edit : by looking at this question there was a crack that allowed installing Windows Phone's SDK on Windows 7 - does anyone know a similar solution for VS 2013 ?
The minimum requirements are based on the Express edition you're attempting to install:
Express for Web (Web sites and HTML5 applications) - Windows 7 SP1 (With IE 10)
Express for Windows (Windows 8 Apps) - Windows 8.1
Express for Windows Desktop (Windows Programs) - Windows 7 SP1 (With IE 10)
Express for Windows Phone (Windows Phone Apps) - Windows 8
It sounds like you're trying to install the "Express 2013 for Windows" edition, which is for developing Windows 8 "Modern UI" apps, or the Windows Phone edition.
The similarly named version that is compatible with Windows 7 SP1 is "Express 2013 for Windows Desktop"
Source
Visual Studio Express for Windows needs Windows 8.1. Having a look at the requirements page you might want to try the Web or Windows Desktop version which are able to run under Windows 7.
Visual Studio 2013 System Requirements
Supported Operating Systems:
Windows 8.1 (x86 and x64)
Windows 8 (x86 and x64)
Windows 7 SP1 (x86 and x64)
Windows Server 2012 R2 (x64)
Windows Server 2012 (x64)
Windows Server 2008 R2 SP1 (x64)
Hardware requirements:
1.6 GHz or faster processor
1 GB of RAM (1.5 GB if running on a virtual machine)
20 GB of available hard disk space
5400 RPM hard disk drive
DirectX 9-capable video card that runs at 1024 x 768 or higher display resolution
Additional Requirements for the laptop:
Internet Explorer 10
KB2883200 (available through Windows Update) is required
And don't forget to reboot after updating your windows
Fake IE10 to install Visual Studio 2013
Visual Studio 2013 requires Internet Explorer 10. If you try to install it on Windows 7 with IE8 you get the following error This version of Visual Studio requires Internet Explorer 10”.
The value that the VS 2013 installer checks is svcVersion in the
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorerkey on 32-bit Windows and
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer on 64-bit Windows. Any value >= 10.0.0.0 makes the installer happy.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer]
"svcVersion"="10.0.0.0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer]
"svcVersion"="10.0.0.0"
your log files shows it is stopping on error "0x8004C000"
From MS Website (http://social.technet.microsoft.com/wiki/contents/articles/15716.visual-studio-2012-and-the-error-code-2147205120.aspx):
Setup Status
Block
Restart not required
0x80044000 [-2147205120]
Restart required
0x8004C000 [-2147172352]
Description
If the only block to be reported is “Reboot Pending,” the returned value is the Incomplete-Reboot Required value (0x80048bc7).