@Greg - you've just described the essence of why I give people who do "Add Service Reference" a rap on the knuckles - it will hurt you in the future, I guarantee it. And no, this is nothing to do with Silverlight.
The alternative to "Add Service Reference" is to use ChannelFactory, which gives much more control but requires a bit more effort to take control of your generated proxy code - this is done with svcutil (or its brother slsvcutil) which is a topic for another day. In response to your question about debugging the initial cross-domain call, Fiddler will help you to spot this issue. Before a Silveright app makes a request to a different domain, it will request a resource at the root of the domain to verify that it is allowed to make the service call. It will check for one of these files: - Silverlight client access policy file (clientaccesspolicy.xml) - A subset of the Adobe Flash cross-domain policy file (crossdomain.xml) If it cannot find either, it will fail hard as a defensive measure. Yes, the error messages could be more descriptive. But I've found Fiddler to be a godsend when doing anything HTTP-related - web, Silverlight, WPF, whatever. Leave it running in the background and it will save you time diagnosing what is going on between the client and server. Cheers, Brendan On Thu, Mar 29, 2012 at 1:02 PM, Scott Barnes <scott.bar...@gmail.com>wrote: > Also comb through the xaml and make sure that any references you have made > and ensure there arent any lingering .. Resharper etc when u refactor can. > E bit and miss > > Welcome to Silverlight / wpf development where the emphasis on bleeding in > bleeding edge isn't a pun. It's not the future of development though as now > you truly get to experience pain by adopting html5 and JavaScript or take > what you see in Silverlight and roll it back toSilverlight 2 and hail winRt > :) > > note when I was on the teams I did advocate that we should have spent a > year or so solely on stabilizing tooling and the clr/slr. ... Growth won in > the end > > Sent from my iPhone > > On 29/03/2012, at 11:41 AM, Jordan Knight <jak...@gmail.com> wrote: > > Yeah - what Chris said - then level fiddler at it... > > Cheers, > > Jordan. > > On 29/03/2012, at 12:29 PM, Chris Anderson <christheco...@gmail.com> > wrote: > > What's your startup project? The Web project or the Silverlight one? > Maybe your Silverlight project is set as the startup project, hence the > issue. > > Chris > > > On 29 March 2012 11:01, Greg Keogh <g...@mira.net> wrote: > >> Well it’s happened again.**** >> >> ** ** >> >> I spent two hours this morning refactoring a demo SL4 project to prepare >> for expansion. I split a few classes, tidied things up, etc. I hit F5 to >> run and it says I have a cross domain call failure. I spent the next two >> hours trying to fix this problem. I removed and added the service ref again >> about 40 times in different ways, I searched the web and all of the advice >> is worse than useless. I even had bizarre errors adding the ref back again >> like “*Custom tool warning: Unable to load one or more of the requested >> types. Retrieve the LoaderExceptions property for more information*” >> which I’ve never had before and advice in this matter is useless. The >> referenced service didn’t even change, it’s not in the solution. I didn’t >> add any new service types. I have now spent 4 hours trying to get a >> previously working demo project going again without hope. I could restore >> everything and incrementally reapply my morning’s changes, but that would >> take another 2 hours.**** >> >> ** ** >> >> I created a fresh SL4 project and web app out of the wizard, added the >> save service ref and it works. So something “has gone wrong” with my demo >> project and nothing seems to resurrect it. My only hope therefore is to >> slowly paste the contents of the old app into the fresh one and pray that >> it keeps working. I estimate that this will take 6 hours.**** >> >> ** ** >> >> I’ve been writing software for 35 years and I haven’t seen such f***ing >> mind-blowing instability and idiocy and insanity before and it just seems >> to get worse and worse with every passing year and every new kit and tool >> and framework that comes out. Are we going through a historical period in >> IT history where everything is actually “dis-integrating”? Is it an >> internal joke by Microsoft to cull the weak and breed a new generation of >> drone developers who just accept that everything doesn’t work? I spend more >> time searching the web for answers to insane problems that and I do >> actually coding, and most of the time I get no answers or increasing >> numbers of stupid answers cluttering the web.**** >> >> ** ** >> >> More and more often I get problems where quite simply “I have no frigging >> idea what to do”. There are no meaningful clues and no obvious course of >> action. The only thing to do is delete stuff, jiggle options, add stuff >> back, restart IIS, reboot, restore backups, compare old and new files, etc. >> There is usually no diagnostic path to follow, you just bumble around until >> you get a different (less worse) error that might give you a clue.**** >> >> ** ** >> >> Is this the future of software development?**** >> >> ** ** >> >> Greg**** >> >> _______________________________________________ >> ozsilverlight mailing list >> ozsilverlight@ozsilverlight.com >> http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight >> >> > _______________________________________________ > ozsilverlight mailing list > ozsilverlight@ozsilverlight.com > http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight > > _______________________________________________ > ozsilverlight mailing list > ozsilverlight@ozsilverlight.com > http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight > > > _______________________________________________ > ozsilverlight mailing list > ozsilverlight@ozsilverlight.com > http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight > >
_______________________________________________ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight