ETJorg

I have an application, intended to become a web page, that requires access to disk files, reflection, etc. However, I don't want it to have this access to the client machine - it is intended to read various files on the server machine, parse their contents, and display them to the user. So I don't think I really want a ClickOnce application. I want something similar to an Asp.Net application where all of the work is in the code-behind.

So far I've only managed to get it deployed as a ClickOnce application and it doesn't run as one (nor would the requirement that users set their permissions be acceptable since it's intended as a general web page, not a corporate site). What actually happens is that it downloads the code, then generates an exception (value not in expected range). You can see it if you wish at http://www.TomJorgensonConsulting.com/

If the application runs server-side I would think that either full trust would be assumed or could be set once on the server and that users could browse to the page and see it without changing anything on their own machine.

Is it possible to set up my web page that way that I would like to I can't imagine that Microsoft wouldn't allow for full-blown WPF web pages with code behind intended for anonymous users. Is this something they haven't worked on yet, but plan to ...Or




Re: Windows Presentation Foundation (WPF) Is it possible to run WPF applications server-side?

Matt Galbraith

I would suggest having an ASP.NET web service that does all those operations for you, and have an .xbap on the same machine consume said service and provide the graphical part of things.

So long as the Web Service you access is hosted on the same base domain as the .xbap, and the port used to access the service is < 1024, this should just work. For your debugging, simply make the .xbap fully trusted (not a problem when running from local machine), then revert to Internet-zone when deploying your application. I will warn you right now that if you dont get everything right, you WILL encounter annoying security exceptions. We'll be here to try to help of course Smile Also, there are many posts answered by ChangoV that cover similar issues.

As for the "value not in expected range" error, I suspect this is specific to one or more development machines. The problem arises when deploying an app with a similar application identity (a long string generated by several values including deployment path, version, hash, app name, and other stuff) multiple times and varying it slightly. To fix this, open an SDK command prompt and run mage.exe -cc to reset the ClickOnce application store. Next, make sure that you are not committing the application to the store... if incremental changes are not showing up between F5 debug sessions, then the app is probably going into the store. Check debugging options if so... If you're running Orcas Beta 1 or 2, there are issues around debugging scenarios that are fixed in RTM.

Hope this helps...

Matt




Re: Windows Presentation Foundation (WPF) Is it possible to run WPF applications server-side?

drstevenson1958

Silverlight 1.1 (alpha version) runs WPF in a web browser (Internet Explorer, Firefox, Safari), but Silverlight is a small subset of WPF functionality. It is To Be Determined how much of WPF will be supported in Silverlight in Silverlight 1.1 Release To Manufacturing (probably out next year sometime). It is unknown by me how much of WPF will be supported by Silverlight in the long term.




Re: Windows Presentation Foundation (WPF) Is it possible to run WPF applications server-side?

Doug_R_2007

I really hope Microsoft can begin to provide us the details of what WPF functionality WILL be supported in Silverlight 1.1 release. It's SO frustrating to have this limited functionality BS. All because a handful of you can't keep from doing something malicious; thank you very much black hats.

Just bring on the full WPF functionality Silverlight development in Blend 2 so I can start making flash-like apps without having to jump through 15 development environment hoops or deal with crazy configuration/implementation setups.





Re: Windows Presentation Foundation (WPF) Is it possible to run WPF applications server-side?

ETJorg

Hmmm. But I thought web service access required some level of 'trust' as well - plus although I appreciate the suggestion, it would muck-up what would otherwise be a pretty straight-forward application.






Re: Windows Presentation Foundation (WPF) Is it possible to run WPF applications server-side?

ETJorg

More than that, I hope Microsoft will provide us with their long-term goals in re: this type of support. IMHO WPF is a great way to program, but if you can't build content-rich web pages that don't require the user to open up their trust settings it will cost them a lot of the potential marketplace.

What I think most of us really want is a way to program one set of code for both Windows and Web applications. If Microsoft succeeds in providing this fairly seemlessly I think it will take the market by storm.






Re: Windows Presentation Foundation (WPF) Is it possible to run WPF applications server-side?

JDPeckham

clickonce xbap thin clients work really great as long as the services they access are on the same domain that you're downloading the xbap from it seems to work fine.

problem with xbaps on the web is that they can't be indexed by search engines.