Reflections Connection Issues with Win7

Started by jpurches, November 05, 2013, 05:55:15 AM

Previous topic - Next topic

jpurches

Recently my employer upgraded (finally!) our operating system from XP to Windows7.  Coupled with that upgrade were some additional security parameters as well.  When we were running in the XP environment I used to be able to connect to an existing telnet based application (Diamond) via Reflections.  I used to be able to connect to an existing session using:

WRQ = ObjectAccess('Reflection2.Session',@FALSE)

In the new world it doesn't seem to be recognizing this connection and is always returning a 0.  The weird part is that I can create a new session without a problem and connect (supply username/password, etc.).

   WRQ = ObjectOpen('Reflection2.Session')
   WRQ.visible = @TRUE
   WRQ.ConnectionType = "TELNET"
   WRQ.ConnectionSettings = "Host myserver"
   WRQ.ConnectionSettings = "TelnetTermType ANSI"
   WRQ.HostCharacterSet = "102"
   WRQ.TerminalType = "219"
   WRQ.connect

Just seem to be having problems connecting to the existing Reflections setting that might be running.  Do you have any thoughts as to why this might be?  Should I be updating the context of my ObjectAccess command?  Something happen with Win7?  A security setting/issue?   Thoughts?

Deana

Difficult to say what might be going on.

To create a new instance of Reflection:
Code (winbatch) Select
Reflection = ObjectCreate("Reflection2.Session")

To attach to an existing instance of Reflection"
Code (winbatch) Select
Reflection = ObjectGet(,"Reflection2.Session")

Lets start with getting some DebugTrace output. Add DebugTrace(@on,"trace.txt") to the beginning of the script, run it until the error or completion. Post the trace file here ( removing any private info).

What version of Reflection are you running on Windows 7? If 2011 check out: http://support.attachmate.com/techdocs/2271.html

Deana F.
Technical Support
Wilson WindowWare Inc.

jpurches


************************************************************

*** Debug Initialized ***

==============================
Tue 11/5/2013 10:42:48 AM
WinBatch 32 2013B
WIL DLL 6.13bmb
Windows platform: NT, version: 6.1, build: 7601 (Service Pack 1)
ErrorMode: @CANCEL
Valid Code Signature: Yes
UAC Manifest Settings: level="highestAvailable" uiAccess="true"
UAC Elevation Level: Standard User or Disabled
==============================

WRQ = 0
(2059) VALUE INT => 0

********** ErrorMode: @OFF **********

ErrorMode(@OFF)
(2761) VALUE INT => 1

WRQ = ObjectGet(, 'Reflection2.Session')
(3167) VALUE INT => 0

WIL ERROR SUPPRESSED =>1129 (OleInitiate: Initiate Failed)

********** ErrorMode: @CANCEL **********

ErrorMode(@CANCEL)
(4150) VALUE INT => 0

exit
(4524) VALUE INT => 0

--- Normal termination ---

;;;END OF JOB;;;

td

Your trace file indicates that you are either running as a standard user or UAC is disabled.  The first thing to determine is whether or not UAC is enabled on your system.  If it is enabled, it may explain why you can't connect to an existing instance of your COM Automation object.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

jpurches

Figured it had to be some sort of security setting.  Thanks for your help ...