Invalid Window Handle when .NET App is hosted in Windows 2008 R2 64 bit Remote Desktop Services


i apologize front if incorrect forum question.

 

remote desktop services server: windows 2008 r2 64 bit

application: 32bit .net application using windowsapicodepack windows 7 features.

client machine: windows 7 64bit (all date)

we have .net application using .net 4.0, , when applications runs through remote desktop on server works fine no issues.  when mean remote desktop mean issue mstsc /v:servername windows 7 client machine, , double click short cut on desktop , application renders fine.

now when set same application remote app under remote desktop services, , create rdp file , use rdp file windows 7 client machine application goes , spikes processor.

attaching debugger , stepping through code looks issue result of invalid window handle being given application in main form show event.  this handle value passed function itaskbarlist3::thumbbaraddbuttons method, , getting e_invalidarg error returned.  the documentation states "the hwnd parameter not specify handle belongs process or not specify window associated taskbar button".  this error happens when running in embedded mode, , not when running on physical machine via remote desktop.  

 

so summarize, same code when running under remote desktop (mstsc) works fine, when running remote app via remote desktop services (rdpinit) fails invalid window handle.  i tested on windows 2008 32 bit remote desktop services same scenario , works fine.

 

any pointers, or ideas on @ appreciated.


craig dahlinger - senior software developer

hi,

this involves knowledge of code and development. in order to solve problem as possible, can leave this question the msdn forums:

http://social.msdn.microsoft.com/forums/en/categories/


technology changes life……


Windows Server  >  Remote Desktop Services (Terminal Services)



Comments

Popular posts from this blog

server manager error: ADAM.events.xml could not be enumerated.

Cannot access Anywhere Access using domain name?

WMI Failure: Unable to update Local Resource Group