WPF/E Deployment

Hello,

I have created a WPF/E control that I am attempting to deploy. I have successfully deployed the control locally. However, I want to deploy it to a publicly visible server.

A strange thing seems to be occurring. I have validated, via javascript, that my wpf/e control is not null. However, I attempt to access a wpf/e element via JavaScript using control.FindName("ControlElement") and the return value is null. However, when I run the same code locally, I get the expected control.

The item that is throwing me off is the fact that the wpf/e control is not null, however, I can't seem to access the elements of the control.

I have several questions,

  1. Does the hosting server have to have the .NET 3.0 framework installed for hosting WPF/E applications? I would assume not because I thought all of the execution of the WPF/E code is the responsibility of the client. I do not believe the hosting server has to have the .NET 3.0 components even for XBAPs.
  2. If the .NET 3.0 framework is not required, are there any special settings on the server that need to be set in order to deploy a WPF/E application?
  3. Why would/could my wpf/e activeXControlnot be null however I would not be able to access the elements? My thought would be that the XAML file would not be loading correctly. Is this correct?

Thank you,

Chad Campbell

[1442 byte] By [ChadCampbell] at [2008-3-5]
# 1

Re 1: No you do not need .NET Framework 3.0 on the server or the client.

Re 2: Since you have a XAML file on the server, you should register the MIME type

Re 3: Can you try hooking up the Loaded event on the root element in your XAML to a Javascript event handler? In that Javascript function, try the same control.FindName("...") call. That ensures you're referencing XAML elements after the tree has loaded.

AshishShetty-MSFT at 2007-9-4 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) Developer Issues...
# 3

Thank you for the follow-up. I have not abandoned this thread. I simply have not had time to test the deployment. I hope to do so by this weekend.

Thanks again

ChadCampbell at 2007-9-4 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) Developer Issues...
# 4
Some people have had success changing their .XAML files to .XML since hosts often allow .XML files to be 'GET''d. Since XAML files are XML, they still work as the source for your host object. And that way you do not have to get into the mapping changes that your website hosting company may not want.
ShawnWildermuth-MVP at 2007-9-4 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) Developer Issues...
# 5

Hi Shawn,

Thanks for your assistance. The company that hosts my website told me they added .xaml as a mime type, however, they may have not done it correctly. As soon as I converted the names from .xaml to .xml it worked.

I will have a very basic, proof-of-concept type ASP.NET user control that uses WPF/E available on my blog within the next 2 days if anybody is interested: http://cornucopia30.blogspot.com/

Thanks again

ChadCampbell at 2007-9-4 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) Developer Issues...