Jiajian

Hi All,

I'm looking for any suggestion for the deployment problem (I thought it should be a common problem but

I didn't find a good answer by google)

I have a WPF window program, which hosts some common window form controls. When I try to deploy it

to another XP (NET 3.0 already installed), the program doesn't work. I debug the program on the development

machine and find that it needs to load "Microsoft.visualstudio.hostingprocess....DLL" to handle the hosting

stuff (hosting common window control in WPF window). I find that this assembly installed in the development

machine but not on the other one. So my question is: How to deploy such wpf-winformcontrol mixed program

Thanks a lot for any suggestion.

--Jiajian



Re: Windows Presentation Foundation (WPF) Deploy wpf program on another XP

WPCoder

Are you by any chance distributing an EXE named:

MyApp.vshost.exe

where "myapp" is the name of your application.

If you are, that's the executable VS uses to make the debugging experience relatively fast.

You'll want to distribute the application MyApp.Exe and run that on the other machine.






Re: Windows Presentation Foundation (WPF) Deploy wpf program on another XP

Jiajian

Thank you for the suggestion.

I did deploy and run Myapp.exe on another machine. I use .net framework config tool to check all assembly dependencies

of my EXE on the development machine and I think another Xp has all these dependencies dll installed. Is it possible that

some DLL is still missing

Also, how to trace running error of MyApp.exe on another XP without visual stuido installed

Thanks a lot.





Re: Windows Presentation Foundation (WPF) Deploy wpf program on another XP

WPCoder

Sorry, I'm confused by your question.

The Microsoft.VisualStudio.HostingProcess is only used by Visual Studio for debugging. It has nothing to do with hosting Winforms/WPF/etc. You don't/shouldn't need to deploy that.

You'll want to use the Fusion Log Viewer (fuslogvw) to see what assemblies are being loaded/attempted/failed.

Documentation for fusion log viewer can be found here:

http://msdn2.microsoft.com/en-us/library/e74a18c4(VS.71).aspx

What "config" tool did you use

Have you tried building a setup for your application