I am very new in using ActiveX controll through java script,
I write var f = new ActiveXObject('Scripting.FileSystemObject'); in my code and Its was working fine on IE6, but recently I upgraded my IE6 to IE8 and what I found now its not working on IE8, returning the error given below:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MS-RTC LM 8;
.NET4.0C; .NET4.0E; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Wed, 31 Aug 2011 14:23:40 UTC
Message: Automation server can't create object
Line: 735
Char: 9
Code: 0
URI: http://localhost:8080/
qocweb/script/main/MainLetter.js
I googled this and found there is something missing in the IE ActiveX setting and got resolved this problem,
But now I have a requirement that it should be solved without playing with IE8 setting.
Can anyone have any idea about this, any suggestion would be really appreciable...
You can not use this component with default security settings due to security reasons. Read this for more information.
Related
I've got a curious problem with a friend's computer. Although I've verified he's using Internet Explorer 8.0.6001.18702 on Windows XP (up to date with all things from Microsoft Update).
However, here is the user agent string it reports:
Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C)
This is bizarre for a number of reasons:
IE8 is reporting that it's IE9. The Trident/4.0 definitely verifies that it's IE8. This is referenced by the official Microsoft documentation on the user agent string: http://msdn.microsoft.com/en-us/library/windows/desktop/ms537503(v=vs.85).aspx
I've only ever seen Mozilla/5.0 in the user agent string for actual versions of IE9.
I'm stumped. We've done a reset of IE (KB923737 at http://support.microsoft.com/kb/923737), I've disabled all extensions/addons inside IE, and there doesn't seem to be anything installed that would be purposefully altering the user agent string. I've also dug into the registry to see if the user agent string is being spoofed, and it is at the default (unaltered).
Anyone have any ideas of what I should look at or try next...or what might be responsible for IE8's apparent identity crisis?
We had a customer with the same issue. Also stumped. We changed to using TRIDENT as well as the MSIE number to accurately detect what they were using.
If they are using Trident 4, it is either IE 8 (or IE 7 because of compat mode) but nothing higher. Same for other versions of IE as well. Trident 5 can't be higher than IE 9, etc.
I am using SignalR on my project.It is working fine with mozilla and google chrome.When I load the page.During loading error message is shown in IE developer tool. The error is
'$.signalR.transports' is null or not an object connect?transport=foreverFrame&connectionId=f233ca33-962e-4b47-9ec4-f4398fda38d0&connectionData=%5B%5D&frameId=1, line 5 character 9.
Also in error popup this message shown
Webpage error details
User Agent: 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.2)
Timestamp: Fri, 4 May 2012 06:06:17 UTC
Message: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)
Line: 0
Char: 0
Code: 0
URI: http://127.0.0.1:81/AddItem/AddItem?CourseItemID=0&CourseID=9976&SystemObjectName=Discussion&IsCourseHomePage=1
Think that you may need the json2.js file. See here?
http://lostinthegc.blogspot.com/2011/09/signalr-doesn-work-in-ie-internet.html
I just upgrated from VS2005 to VS2010 and works fine except for the following error on IE8 only:
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0;
.NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR
2.0.50727; yie8) Timestamp: Tue, 16 Aug 2011 18:46:04 UTC
Message: ASP.NET Ajax client-side framework failed to load.
Line: 130
Char: 34
Code: 0
URI: http://...
Message: 'Sys' is undefined
Line: 15
Char: 1
Seems like the the ScriptResource.axd js is not loaded correctly most of the time on this browser.
I've researched a lot about this kind of error and tried several things without luck. The wreird thing is that it's happenning just on IE8. Chrome and Firefox work fine.
It also works fine sometimes on IE8 :S
I din't find a conventional solution for this problem.
After debugging it I noticed that the problem was that the ajax script resources where loading after some other scripts.
I was not able to move the sripts up in the page because the application is very old and it wasn't even using master page, so I was limited on that.
I researched about the script manager and I found a new property on asp.net 4.0 called EnableCdn that basically, if it's set to "true", it loads the resources from the Microsoft content resource servers. Doing that those scripts loads quicker and the errors disappeared.
I hope this experience be useful for someone else.
Thanks!
Error occured in IE 8
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; IPMS/E040400A-14E2CBD58A8-000000501208; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3)
Timestamp: Mon, 25 Jul 2011 04:39:36 UTC
lines: 2979
Char: 5
Code: 0
URI: file:///C:/Users/sosiman/Desktop/sockets/socket.io.js
This line is "req.open(method || 'GET', this.prepareUrl() + '?t' + (+ new Date));"
WARNING: web-socket-js doesn't work in file:///... URL unless you set Flash Security Settings properly. Open the page via Web server i.e. http://...
It's find works in FF, chrom
But IE8 did't work
Any ideas how to fix that?
Thanks!
It's because you are testing it from your local drive, and IE doesn't allow that, so serve that page over a server and the error should disappear
When I asked this question I accepted the answere because it made sense and the documentation pointed was right.
Testing a machine with IE6 against other one with IE7 with the same compiled executable using TWebBrowser the behaviour was indeed as pointed in the answere.
Now I put the answere in doubt again, in a machine with IE8 that same executable is being identified as IE7 by the server. I wrote a simple rails app that pirnts the user agent and it is clear. In the same machine if I access this rails app in IE it prints:
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6.5; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; InfoPath.2; .NET CLR 3.0.30729)
When I access using that executable:
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; GTB6.5; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; InfoPath.2; .NET CLR 3.0.30729)
Furthermore, with a little help from my friend Process Monitor I realized that the classid called to instantiate the TWebBrowser is {8856F961-340A-11D0-A96B-00C04FD705A2} wich in windows registry has the name "Microsoft Web Browser" and points to ieframe.dll.
Now the things get a little more strange. If I go to system32/ieframe.dll and check the version... 8.0.
I´m really confused. The question is: When I use TWebBrowser, wich version of ie will be used, indeed?
Thanks.
It's using IE8, but in IE7 compatibility mode. The IE team blogged about this back in March 2009, where they also described how you can get IE8 rendering instead of the IE7 default.
I haven't seen anything about how IE9 will behave here, so I can't say if you'll need a different value to use IE9 rendering, or if there's some other value which simply means "newest" and gets IE8 rendering as well.
Maybe TWebBrowser saves the Useragent it had at the time of creation in ControlData property? Try deleting and re-adding the control to the form on a computer with IE8.0 installed.
At any case, those User agent strings looks oddly similar. It's probably the same IE8.0 engine, no matter what it prints.