Liferay Vaadin Portlet - JSON Undefined Error in IE - json

I have a Liferay Vaadin Portlet that is working with no issues (or errors) in both Firefox and Chrome. However,
when I use Internet Explorer (Version 11) I get the following error:
Webpage error details
3
4User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)
5Timestamp: Thu, 6 Nov 2014 17:29:44 UTC
6
7
8Message: 'JSON' is undefined
9Line: 147
10Char: 8
11Code: 0
12URI: http://server.com/receipt-lookup-portlet/VAADIN/vaadinBootstrap.js
I only get this error when pulling up the page from the server, when I pull it up from my environment I get no errors (using the same browser).
Thanks!
vaadin.version 7.3.4
liferay.version 6.0.6

I believe it may be something do with compatibility mode. Try adding this into your theme:
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
It's possible you've already got something similar, but have used IE conditional comments to condition it's inclusion. IE11 doesn't do IE conditional comments any more so you will need to have the meta tag included for all browsers.

Related

OsiSoft AF SDK 2018 SP2 with .NET 5 Application

I have an application that was upgraded to .NET 5. However, the OsiSoft AF SDK is still compiled in .NET. I'm getting errors as such:
Method not found: 'System.Security.AccessControl.DirectorySecurity System.IO.DirectoryInfo.GetAccessControl()'.
Is there a way to run AF SDK .NET in .NET Core/.NET 5 applications ? My understanding is AF SDK does not support .NET Core/.NET 5 as of yet.

How to set HttpCookie Samesite attribute in .Net framework 4.0.30319?

I'm currently using .Net framework 4.0 in my application. Upon checking i could see that the samesite attribute is available only from .Net framework 4.7.2 version(https://learn.microsoft.com/en-us/dotnet/api/system.web.httpcookie?view=netframework-4.0). Can anyone please let me know how to set samesite=None without upgrading the .Net version or How to handle samesite cookie in .Net version 4.0
Despite what Microsoft's documentation currently says about the minimum version, it does work on .NET 4.0, at least if you do it in your config file. Example:
<system.web>
<sessionState cookieSameSite="None" />
</system.web>

My robot framework test does not work with chrome

I have written some test suites with robot framework using RIDE. As browser I have used Firefox and all test passed without any problem. But I have now to use Chrome as reference browser. But chrome isn't working. So I have done a very simple test case:
Open Browser http://google.com ${BROWSER}
If I enter "ff" as my ${BROWSER} variable I get a Firefox window with the google website displayed within it.
When I change the ${BROWSER} variable to chrome, I get a browser window which is black.
I get the following error in the log file:
WebDriverException: Message: session not created exception
from timeout: Timed out receiving message from renderer: 600.000
(Session info: chrome=55.0.2883.87)
(Driver info: chromedriver=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9),platform=Windows NT 6.1.7601 SP1 x86_64)
My configuration is:
Robot Framework 3.0
RIDE 1.5.2.1
Selenium2Library 1.7.4
Python 2.7.12
wx 2.8.12.1
Google Chrome 55
Chromedriver 2.27

CaptureElement was not found , missing assembly reference

I am using Visual Studio 2013 Express, developing new camera app for windows mobile 8.1 , getting error :
<CaptureElement x:Name="myCaptureElement"
HorizontalAlignment="Left"
Width="320" Height="240" />
CaptureElement was not found, missing assembly reference . .
As you have mentioned, you are targeting WP8.1 Silverlight - and as MSDN says, CaptureElement class is olny for Runtime:
Windows Phone 8.1 [Windows Runtime apps only]
If you need to take a photo in Silverlight, you may think of using Camera Capture Task, which:
Applies to: Windows Phone 8 and Windows Phone Silverlight 8.1 | Windows Phone OS 7.1
You may also have a look at this nice article.

OpenSTA script error

I am trying to learn openSTA tool.
I recorded the script and then when I clicked on replay i got following error,
Compiling... TESTSCRIPT.HTP
"User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04
*************************************************************************************************************************************
TESTSCRIPT.HTP(27) : error (badrecsiz), Source Line is Too Long
CONSTANT S_cookie_3_0 = "ASP.NET_SessionId=30hreg5512fghcebgeqzn4na"
*********************************************************************
TESTSCRIPT.HTP(28) : error (exttxt), Unexpected Text Encountered Following Statement
"Cookie: "+S_cookie_3_0}
************
TESTSCRIPT.HTP(79) : error (undefvar), Undefined Variable
scl: info (endnoobj), TESTSCRIPT.HTP Completed with 3 Diagnostics - Object Deleted
Thanks to this post. The String in the script was too long just truncated some characters in it.