Script fails to replay

I just recorded a as short codedui script.  when I re-played it fail.  I appeared to me that it was attempted to populate a textfield.  I looked in the trace and could not figure out.  Could you help pointing me out that the cause and
how to fix the issue.  below is relate error:

 

Error Message:
===============
Test method myFirstTry.myCreateCases.myStuff threw exception:
Microsoft.VisualStudio.TestTools.UITest.Extension.PlaybackFailureException: Cannot perform ‘SetProperty of Text with value “9016”‘ on the control. Additional Details:

TechnologyName:  ‘Web’
ControlType:  ‘Edit’
Id:  ‘tbFN4Digit’
Name:  ‘tbFN4Digit’
TagName:  ‘INPUT’
 —> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0xF004F006

Error Stact Trace:
==================
Microsoft.VisualStudio.TestTools.UITest.Playback.Engine.IScreenElement.SetValueAsEditBox(String bstrNewValue, Int32 nSetValueAsEditBoxFlag)
Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.SetValueAsEditBox(String value, Boolean isEncoded, Int32 flag)
Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.SetValueAsEditBox(String value, Boolean isEncoded)
Microsoft.VisualStudio.TestTools.UITesting.TechnologyElementPropertyProvider.SetValueAsEditBox(UITestControl uiControl, String value, Boolean isEncoded, Boolean useCopyPaste)
Microsoft.VisualStudio.TestTools.UITesting.HtmlPropertyProvider.SetPropertyValue(UITestControl uiControl, String propertyName, Object value)
Microsoft.VisualStudio.TestTools.UITesting.UITestPropertyProvider.SetPropertyValueWrapper(UITestControl uiControl, String propertyName, Object value)
Microsoft.VisualStudio.TestTools.UITesting.UITestControl.SetPropertyValue(String propertyName, Object propertyValue)
Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowComException(COMException innerException, IPlaybackContext context)
Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, IPlaybackContext context)
Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, String actionName, UITestControl uiControl)
Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, String actionName, Object parameterValue, UITestControl uiControl)
Microsoft.VisualStudio.TestTools.UITesting.UITestControl.SetPropertyValue(String propertyName, Object propertyValue)
Microsoft.VisualStudio.TestTools.UITesting.UITestControl.SetProperty(String propertyName, Object value)
Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlEdit.set_Text(String value)
myFirstTry.UIMap.myCase()
myFirstTry.myCreateCases.myStuff()

Debug Trace:
============
E, 3268, 35, 2010/08/25, 13:12:04.881, 382031102055681, QTAgent32.exe, LoadLibrary() : Unable to find the resource 37382 from assembly C:WINDOWSsystem32en-USieframe.dll.mui: Error1814
E, 3268, 35, 2010/08/25, 13:12:04.881, 382031106867450, QTAgent32.exe, LoadLibrary() : Unable to find the resource 41728 from assembly C:WINDOWSsystem32en-USieframe.dll.mui: Error1814
E, 3268, 35, 2010/08/25, 13:12:04.881, 382031112116592, QTAgent32.exe, LoadIEStrings() – Could not find user32 resource assembly in en-US or en-US
E, 3268, 35, 2010/08/25, 13:12:05.116, 382031822686167, QTAgent32.exe, IEDOM : Could not get valid window handle of Internet Explorer_server
W, 3268, 35, 2010/08/25, 13:12:05.116, 382031822883609, QTAgent32.exe, IEDOM : Unable to get the document Window Handle
E, 3268, 35, 2010/08/25, 13:12:07.116, 382034376038691, QTAgent32.exe, IEDOM : Could not get valid window handle of Internet Explorer_server
W, 3268, 35, 2010/08/25, 13:12:07.116, 382034376257778, QTAgent32.exe, IEDOM : Unable to get the document Window Handle
W, 3268, 35, 2010/08/25, 13:12:09.288, 382037167676268, QTAgent32.exe, Exception when trying to get zoom: System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
   at Microsoft.VisualStudio.TestTools.UITest.Extension.IE.Communication.Interop.IECommunicatorClass.PageZoom(Object punkWebBrowser)
   at Microsoft.VisualStudio.TestTools.UITest.Extension.IE.DocumentManager.ThrowIfZoomNotAtHundred()
W, 3268, 35, 2010/08/25, 13:12:09.741, 382038490371339, QTAgent32.exe, FindScreenElementInSinglePass : Attempting to find control in one pass of search. Failures can occur.
W, 3268, 35, 2010/08/25, 13:12:10.788, 382039808775615, QTAgent32.exe, Playback – [WARNING] Internal warning:Search failure: [MSAA, VisibleOnly]ControlType=’MenuBar’ && Name=’Application’ | [MSAA]ControlType=’MenuItem’ && Name=’Favorites’ |
[MSAA]ControlType=’MenuItem’ && Name=’IMPACT’ | Performed (2) search retries, UI element not found

E, 3268, 35, 2010/08/25, 13:12:10.788, 382039809268590, QTAgent32.exe, Playback – {1} [FAILED] Function ElementFetcher::FindScreenElement failed to locate UI element (Searching: ;[MSAA, VisibleOnly]ControlType=’MenuBar’ && Name=’Application’;[MSAA]ControlType=’MenuItem’
&& Name=’Favorites’;[MSAA]ControlType=’MenuItem’ && Name=’IMPACT’) (The object specified was not found.)

E, 3268, 35, 2010/08/25, 13:12:10.850, 382039965486972, QTAgent32.exe, Playback – [IMAGE] C:Documents and SettingsmytestLocal SettingsTempUITestLogsLastRunRPF2DC.png

W, 3268, 35, 2010/08/25, 13:12:10.850, 382039965772020, QTAgent32.exe, Playback – [WARNING] Internal warning: Couldn’t find descendants that match QueryId

W, 3268, 35, 2010/08/25, 13:12:10.850, 382039971655950, QTAgent32.exe, FindScreenElementInSinglePass : Attempting to find control in one pass of search. Failures can occur.
W, 3268, 35, 2010/08/25, 13:12:10.866, 382040007532650, QTAgent32.exe, FindScreenElementInSinglePass : Attempting to find control in one pass of search. Failures can occur.
W, 3268, 35, 2010/08/25, 13:12:11.132, 382040517462561, QTAgent32.exe, Playback – {2} [SUCCESS] LeftButtonClick – “[MSAA, VisibleOnly]ControlType=’MenuBar’ && Name=’Application'”  < Mouse cursor location (658, 82) >

W, 3268, 35, 2010/08/25, 13:12:11.272, 382040939241342, QTAgent32.exe, Playback – {3} [SUCCESS] LeftButtonClick – “[MSAA]ControlType=’MenuItem’ && Name=’Favorites'”  < Mouse cursor location (226, 82) >

W, 3268, 35, 2010/08/25, 13:12:12.038, 382042891041624, QTAgent32.exe, Playback – {4} [SUCCESS] MouseButtonClick – “[MSAA]ControlType=’MenuItem’ && Name=’IMPACT'”

W, 3268, 35, 2010/08/25, 13:12:12.163, 382043251601280, QTAgent32.exe, Playback – {5} [SUCCESS] TypeString “{RWin}”

W, 3268, 35, 2010/08/25, 13:12:12.804, 382045169612412, QTAgent32.exe, PERF WARNING: FindTopLevelWindowHelper::FindAllDescendents: took 521 ms. Expected it to take maximum 500 ms.
E, 3268, 22, 2010/08/25, 13:12:12.804, 382045213718280, QTAgent32.exe, Exception: System.InvalidCastException
 Message: Unable to cast COM object of type ‘mshtml.HTMLDocumentClass’ to interface type ‘mshtml.DispHTMLDocument’. This operation failed because the QueryInterface call on the COM component for the interface with IID ‘{3050F55F-98B5-11CF-BB82-00AA00BDCE0B}’
failed due to the following error: The object invoked has disconnected from its clients. (Exception from HRESULT: 0x80010108 (RPC_E_DISCONNECTED)).
 Stack Trace:    at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
   at mshtml.HTMLDocumentClass.getElementsByTagName(String v)
   at Microsoft.VisualStudio.TestTools.UITest.Extension.IE.IEWebControlElement.AddFrameDocumentManagers(HTMLDocument mshtmlDocument, List`1 parentDocumentIdList)
 BaseExceptionMessage: Unable to cast COM object of type ‘mshtml.HTMLDocumentClass’ to interface type ‘mshtml.DispHTMLDocument’. This operation failed because the QueryInterface call on the COM component for the interface with IID ‘{3050F55F-98B5-11CF-BB82-00AA00BDCE0B}’
failed due to the following error: The object invoked has disconnected from its clients. (Exception from HRESULT: 0x80010108 (RPC_E_DISCONNECTED)).

E, 3268, 22, 2010/08/25, 13:12:12.819, 382045217168745, QTAgent32.exe, IEDOM : AddFrameDocumentManagers : Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotAvailableException: Unable to cast COM object of type ‘mshtml.HTMLDocumentClass’ to
interface type ‘mshtml.DispHTMLDocument’. This operation failed because the QueryInterface call on the COM component for the interface with IID ‘{3050F55F-98B5-11CF-BB82-00AA00BDCE0B}’ failed due to the following error: The object invoked has disconnected
from its clients. (Exception from HRESULT: 0x80010108 (RPC_E_DISCONNECTED)). —> System.InvalidCastException: Unable to cast COM object of type ‘mshtml.HTMLDocumentClass’ to interface type ‘mshtml.DispHTMLDocument’. This operation failed because the QueryInterface
call on the COM component for the interface with IID ‘{3050F55F-98B5-11CF-BB82-00AA00BDCE0B}’ failed due to the following error: The object invoked has disconnected from its clients. (Exception from HRESULT: 0x80010108 (RPC_E_DISCONNECTED)).
   at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
   at mshtml.HTMLDocumentClass.getElementsByTagName(String v)
   at Microsoft.VisualStudio.TestTools.UITest.Extension.IE.IEWebControlElement.AddFrameDocumentManagers(HTMLDocument mshtmlDocument, List`1 parentDocumentIdList)
   — End of inner exception stack trace —
   at Microsoft.VisualStudio.TestTools.UITest.Extension.IE.BrowserUtility.MapAndThrowException(SystemException ex, IUITechnologyElement element, String message)
   at Microsoft.VisualStudio.TestTools.UITest.Extension.IE.BrowserUtility.MapAndThrowException(SystemException ex, IUITechnologyElement element)
   at Microsoft.VisualStudio.TestTools.UITest.Extension.IE.IEWebControlElement.AddFrameDocumentManagers(HTMLDocument mshtmlDocument, List`1 parentDocumentIdList)
   at Microsoft.VisualStudio.TestTools.UITest.Extension.IE.IEWebControlElement.AddFrameDocumentManagers(Int32 documentId)
W, 3268, 22, 2010/08/25, 13:12:12.819, 382045251488436, QTAgent32.exe, IEDOM : InitializeScriptElements : Invalid IES Handle
W, 3268, 35, 2010/08/25, 13:12:12.835, 382045268890728, QTAgent32.exe, Exception when trying to get zoom: System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
   at Microsoft.VisualStudio.TestTools.UITest.Extension.IE.Communication.Interop.IECommunicatorClass.PageZoom(Object punkWebBrowser)
   at Microsoft.VisualStudio.TestTools.UITest.Extension.IE.DocumentManager.ThrowIfZoomNotAtHundred()
W, 3268, 35, 2010/08/25, 13:12:13.929, 382048305165513, QTAgent32.exe, Playback – {6} [SUCCESS] SetValueAsEditBox “PERUSER210” – “[Web]ControlType=’Edit’ && TagName=’INPUT’ && Id=’tbUserName’ && Name=’tbUserName’
&& FilterCondition(LabeledBy=”, Type=’SINGLELINE’, Title=”, Class=’req’, ControlDefinition=’style=”WIDTH: 188px” id=tbUserName class’, TagInstance=’2′)”  < Set via SendKeys >

W, 3268, 35, 2010/08/25, 13:12:14.163, 382048704516771, QTAgent32.exe, Playback – {7} [SUCCESS] SendKeys “^{HOME}” – “[Web]ControlType=’Edit’ && TagName=’INPUT’ && Id=’tbPassword’ && Name=’tbPassword’ &&
FilterCondition(LabeledBy=”, Type=’PASSWORD’, Title=”, Class=’req’, ControlDefinition=’style=”WIDTH: 188px” id=tbPassword class’, TagInstance=’3′)”

E, 3268, 35, 2010/08/25, 13:12:14.163, 382048709296842, QTAgent32.exe, Msaa.GetFocusedElement: could not find accessible object of foreground window
W, 3268, 35, 2010/08/25, 13:12:14.241, 382048843912056, QTAgent32.exe, Playback – {8} [SUCCESS] SendKeys “^+{END}” – “[Web]ControlType=’Edit’ && TagName=’INPUT’ && Id=’tbPassword’ && Name=’tbPassword’ &&
FilterCondition(LabeledBy=”, Type=’PASSWORD’, Title=”, Class=’req’, ControlDefinition=’style=”WIDTH: 188px” id=tbPassword class’, TagInstance=’3′)”

E, 3268, 35, 2010/08/25, 13:12:14.241, 382048844293224, QTAgent32.exe, Msaa.GetFocusedElement: could not find accessible object of foreground window
W, 3268, 35, 2010/08/25, 13:12:14.273, 382048910837352, QTAgent32.exe, Playback – {9} [SUCCESS] SendKeys “{DELETE}” – “[Web]ControlType=’Edit’ && TagName=’INPUT’ && Id=’tbPassword’ && Name=’tbPassword’ &&
FilterCondition(LabeledBy=”, Type=’PASSWORD’, Title=”, Class=’req’, ControlDefinition=’style=”WIDTH: 188px” id=tbPassword class’, TagInstance=’3′)”

W, 3268, 35, 2010/08/25, 13:12:14.523, 382049243817777, QTAgent32.exe, Playback – {10} [SUCCESS] SetValueAsEditBox “[*]” – “[Web]ControlType=’Edit’ && TagName=’INPUT’ && Id=’tbPassword’ && Name=’tbPassword’ &&
FilterCondition(LabeledBy=”, Type=’PASSWORD’, Title=”, Class=’req’, ControlDefinition=’style=”WIDTH: 188px” id=tbPassword class’, TagInstance=’3′)”  < Set via SendKeys >

W, 3268, 35, 2010/08/25, 13:12:14.804, 382049734995819, QTAgent32.exe, Playback – {11} [SUCCESS] MouseButtonClick – “[Web]ControlType=’Button’ && TagName=’INPUT’ && Id=’btnOp’ && Name=’btnOp’ && FilterCondition(DisplayText=’Login’,
Type=’submit’, Title=”, Class=”, ControlDefinition=’style=”COLOR: black; FONT-WEIGHT: bold” ‘, TagInstance=’4’)”

W, 3268, 35, 2010/08/25, 13:12:16.304, 382053222481878, QTAgent32.exe, PERF WARNING: FindAllDescendents: took 586 ms. Expected it to take maximum 500 ms.
W, 3268, 35, 2010/08/25, 13:12:16.335, 382053341137734, QTAgent32.exe, Playback – {12} [SUCCESS] MoveMouse – “[Web]ControlType=’Pane’ && TagName=’DIV’ && Id=” && Name=” && FilterCondition(InnerText=’Cases’,
Title=”, Class=”, ControlDefinition=’style=”POSITION: absolute; TEXT-ALIGN: l’, TagInstance=’5′)”  < Mouse cursor location (57, 199) >

W, 3268, 35, 2010/08/25, 13:12:16.710, 382053797497512, QTAgent32.exe, IEDOM : MatchSecondaryCondition : Match Found Based on Instance
W, 3268, 35, 2010/08/25, 13:12:17.773, 382055492402271, QTAgent32.exe, Playback – {13} [SUCCESS] MouseButtonClick – “[Web]ControlType=’Pane’ && TagName=’DIV’ && Id=” && Name=” && FilterCondition(InnerText=’Mine’,
Title=”, Class=”, ControlDefinition=’style=”POSITION: absolute; TEXT-ALIGN: l’, TagInstance=’13’)”

W, 3268, 35, 2010/08/25, 13:12:19.085, 382057991641647, QTAgent32.exe, Playback – {14} [SUCCESS] MouseButtonClick – “[Web]ControlType=’Hyperlink’ && TagName=’A’ && Id=’ucHeader_lbNewDocument’ && Name=” &&
Target=” && InnerText=’Create New Case’ && FilterCondition(AbsolutePath=’__doPostBack(‘ucHeader$lbNewDocument’,”)’, Title=”, Href=’javascript:__doPostBack(‘ucHeader$lbNewDocument’,”)’, Class=’browse_link’, ControlDefinition=’id=ucHeader_lbNewDocument
class=browse_l’, TagInstance=’1′)”

W, 3268, 35, 2010/08/25, 13:12:19.195, 382058303805162, QTAgent32.exe, FindNTopWindows : Search will be continued for 12000 even on failure
W, 3268, 35, 2010/08/25, 13:12:19.195, 382058309949507, QTAgent32.exe, FindNTopWindows : Search will be continued for 12000 even on failure
W, 3268, 35, 2010/08/25, 13:12:19.413, 382058803942173, QTAgent32.exe, Exception when trying to get zoom: System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
   at Microsoft.VisualStudio.TestTools.UITest.Extension.IE.Communication.Interop.IECommunicatorClass.PageZoom(Object punkWebBrowser)
   at Microsoft.VisualStudio.TestTools.UITest.Extension.IE.DocumentManager.ThrowIfZoomNotAtHundred()
W, 3268, 35, 2010/08/25, 13:12:19.929, 382060119148605, QTAgent32.exe, Playback – {15} [SUCCESS] Check – “[Web]ControlType=’RadioButton’ && TagName=’INPUT’ && Id=’rblNewCase_0′ && Name=’rblNewCase’ && FilterCondition(Value=’R’,
LabeledBy=’Create Regular Case’, Title=”, ItemCount=’4′, Class=”, ControlDefinition=’id=rblNewCase_0 value=R CHECKED type=rad’, TagInstance=’2′)”

W, 3268, 35, 2010/08/25, 13:12:20.210, 382060496587050, QTAgent32.exe, Playback – {16} [SUCCESS] MouseButtonClick – “[Web]ControlType=’Button’ && TagName=’INPUT’ && Id=’btnContinue’ && Name=’btnContinue’ &&
FilterCondition(DisplayText=’Continue’, Type=’submit’, Title=”, Class=”, ControlDefinition=’id=btnContinue value=Continue type=submi’, TagInstance=’6′)”

E, 3268, 22, 2010/08/25, 13:12:20.742, 382062084752898, QTAgent32.exe, Exception: System.InvalidCastException
 Message: Unable to cast COM object of type ‘mshtml.HTMLDocumentClass’ to interface type ‘mshtml.DispHTMLDocument’. This operation failed because the QueryInterface call on the COM component for the interface with IID ‘{3050F55F-98B5-11CF-BB82-00AA00BDCE0B}’
failed due to the following error: The object invoked has disconnected from its clients. (Exception from HRESULT: 0x80010108 (RPC_E_DISCONNECTED)).
 Stack Trace:    at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
   at mshtml.HTMLDocumentClass.getElementsByTagName(String v)
   at Microsoft.VisualStudio.TestTools.UITest.Extension.IE.IEWebControlElement.AddFrameDocumentManagers(HTMLDocument mshtmlDocument, List`1 parentDocumentIdList)
 BaseExceptionMessage: Unable to cast COM object of type ‘mshtml.HTMLDocumentClass’ to interface type ‘mshtml.DispHTMLDocument’. This operation failed because the QueryInterface call on the COM component for the interface with IID ‘{3050F55F-98B5-11CF-BB82-00AA00BDCE0B}’
failed due to the following error: The object invoked has disconnected from its clients. (Exception from HRESULT: 0x80010108 (RPC_E_DISCONNECTED)).

E, 3268, 22, 2010/08/25, 13:12:20.742, 382062085505901, QTAgent32.exe, IEDOM : AddFrameDocumentManagers : Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotAvailableException: Unable to cast COM object of type ‘mshtml.HTMLDocumentClass’ to
interface type ‘mshtml.DispHTMLDocument’. This operation failed because the QueryInterface call on the COM component for the interface with IID ‘{3050F55F-98B5-11CF-BB82-00AA00BDCE0B}’ failed due to the following error: The object invoked has disconnected
from its clients. (Exception from HRESULT: 0x80010108 (RPC_E_DISCONNECTED)). —> System.InvalidCastException: Unable to cast COM object of type ‘mshtml.HTMLDocumentClass’ to interface type ‘mshtml.DispHTMLDocument’. This operation failed because the QueryInterface
call on the COM component for the interface with IID ‘{3050F55F-98B5-11CF-BB82-00AA00BDCE0B}’ failed due to the following error: The object invoked has disconnected from its clients. (Exception from HRESULT: 0x80010108 (RPC_E_DISCONNECTED)).
   at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
   at mshtml.HTMLDocumentClass.getElementsByTagName(String v)
   at Microsoft.VisualStudio.TestTools.UITest.Extension.IE.IEWebControlElement.AddFrameDocumentManagers(HTMLDocument mshtmlDocument, List`1 parentDocumentIdList)
   — End of inner exception stack trace —
   at Microsoft.VisualStudio.TestTools.UITest.Extension.IE.BrowserUtility.MapAndThrowException(SystemException ex, IUITechnologyElement element, String message)
   at Microsoft.VisualStudio.TestTools.UITest.Extension.IE.BrowserUtility.MapAndThrowException(SystemException ex, IUITechnologyElement element)
   at Microsoft.VisualStudio.TestTools.UITest.Extension.IE.IEWebControlElement.AddFrameDocumentManagers(HTMLDocument mshtmlDocument, List`1 parentDocumentIdList)
   at Microsoft.VisualStudio.TestTools.UITest.Extension.IE.IEWebControlElement.AddFrameDocumentManagers(Int32 documentId)
E, 3268, 35, 2010/08/25, 13:12:21.445, 382063539615417, QTAgent32.exe, Playback – {17} [FAILED] SetValueAsEditBox “9016” – “[Web]ControlType=’Edit’ && TagName=’INPUT’ && Id=’tbFN4Digit’ && Name=’tbFN4Digit’ &&
FilterCondition(LabeledBy=”, Type=’SINGLELINE’, Title=”, Class=’req’, ControlDefinition=’style=”BACKGROUND-COLOR: turquoise” onke’, TagInstance=’10’)”  < Primitive "SetValueAsEditBox" did not set the value correctly > (, See related internal warnings/failures
for more information)

E, 3268, 35, 2010/08/25, 13:12:21.507, 382063694295123, QTAgent32.exe, Playback – [IMAGE] C:Documents and SettingsmytestLocal SettingsTempUITestLogsLastRunRPF2DD.png

E, 3268, 35, 2010/08/25, 13:12:21.742, 382064204867742, QTAgent32.exe, AL: Playback Error: Microsoft.VisualStudio.TestTools.UITest.Extension.PlaybackFailureException: Cannot perform ‘SetProperty of Text with value “9016”‘ on the control. Additional Details:

TechnologyName:  ‘Web’
ControlType:  ‘Edit’
Id:  ‘tbFN4Digit’
Name:  ‘tbFN4Digit’
TagName:  ‘INPUT’
 —> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0xF004F006
   at Microsoft.VisualStudio.TestTools.UITest.Playback.Engine.IScreenElement.SetValueAsEditBox(String bstrNewValue, Int32 nSetValueAsEditBoxFlag)
   at Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.SetValueAsEditBox(String value, Boolean isEncoded, Int32 flag)
   at Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.SetValueAsEditBox(String value, Boolean isEncoded)
   at Microsoft.VisualStudio.TestTools.UITesting.TechnologyElementPropertyProvider.SetValueAsEditBox(UITestControl uiControl, String value, Boolean isEncoded, Boolean useCopyPaste)
   at Microsoft.VisualStudio.TestTools.UITesting.HtmlPropertyProvider.SetPropertyValue(UITestControl uiControl, String propertyName, Object value)
   at Microsoft.VisualStudio.TestTools.UITesting.UITestPropertyProvider.SetPropertyValueWrapper(UITestControl uiControl, String propertyName, Object value)
   at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.SetPropertyValue(String propertyName, Object propertyValue)
   — End of inner exception stack trace —
   at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowComException(COMException innerException, IPlaybackContext context)
   at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, IPlaybackContext context)
   at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, String actionName, UITestControl uiControl)
   at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, String actionName, Object parameterValue, UITestControl uiControl)
   at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.SetPropertyValue(String propertyName, Object propertyValue)
   at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.SetProperty(String propertyName, Object value)
W, 3268, 35, 2010/08/25, 13:12:21.851, 382064499476964, QTAgent32.exe, IEDOM : StopSession of the plugin called before StartSession
W, 3268, 35, 2010/08/25, 13:12:21.851, 382064499672813, QTAgent32.exe, UIA : StopSession of the plugin called before StartSession

I think I might found the cause. But still have question.The field which the script  attempts to populate  data accepts ONLY integer number.  The entered number was recorded  as a string, “9016”, in the filenameparams.  When replay  the script attempt to populate “9016” in the field.  The

Looks like your textbox doesn’t accept unicode characters. You should not convert to integer and try to set the value. It accepts only strings.Set Playback.PlaybackSettings.SendKeysAsScanCode = true before setting the value. I think it will solve your problem.Vinoth.

After adding the playback line, it fixed the first feild.  but it seems to happen to other textfileds and drop-down list.  Should I add the “Playback…” before I set or select value?Now, VS prompts error  message some thing like “Deployment is currently disabled. the deployment item …. was not deployed” What does that mean?NOTE:  I copy the (recorded), dothing() and dothingParams,  functions/class from UiMap.designer.cs  to Uimap.cs. 1) I rename “dothing” to “Mydothing()” and “dothingParams” to  “Mydothing Params” and I made chages there.2) in the codeduitest.cs I call   “Mydothing()”  instead of “dothing()”. Is this the right way to do?