|
You only need the ClientAccessPolicy.xml file. I notice from the exception that you are using https - in the allow-from section, you need to add
<domain uri="http://*" />
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
doesn't this accomplish the same thing:
<domain uri=”*” />
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
No.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Ok then, but wouldn't it be more correct to do this?
<access-policy>
<cross-domain-access>
<policy>
<allow-from http-request-headers="*">
<domain uri ="http://*" />
</allow-from>
<grant-to>
<resource path="/" include-subpaths="true"/>
</grant-to>
</policy>
<policy>
<allow-from https-request-headers="*">
<domain uri ="https://*" />
</allow-from>
<grant-to>
<resource path="/secure" include-subpaths="true"/>
</grant-to>
</policy>
</cross-domain-access>
</access-policy>
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
If this is the way your site is set up, then yes. Alternatively, you could put both the https://* and http://* in the first allow-from if you don't have to worry about the secure path.
The reason you have to add the https://* is because SL requires that you explicitly opt-in to secure services.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Well, I went ahead and made that change, and it still gives me the same exception. :/
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
I'd offer to test it for you but I'm running SL4 now.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
I saw a comment on the web that stated moving to SL4 fixes this problem. I don't have that option. I'm going to try putting the SL app on the same server as the service and seeing if that will fix it.
EDIT ========
Nope. In fact in some ways, it made it worse...
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
modified on Wednesday, June 9, 2010 2:59 PM
|
|
|
|
|
What happens if you drop it out of https into http?
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
I can't. It all has to stay https (DoD network).
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Even for testing? Is there not an internal test rig that could be used for this?
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Unfortunately no.
I do know for a fact that the app/web service work fine on my dev box. However, we haven't been able to get it to work when deployed. Because we're on a DoD network, it all has to be through https.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
I thought the crossdomain xml files had to be at the root of the site?
|
|
|
|
|
I had it there, and in the silverlight app's folder (just in case). It didn't seem to make a difference.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
This[^] looks similar to your problem. Check if it helps.
|
|
|
|
|
Nope, didn't help...
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
From whatever I have read so far, there are two reasons apart from the one in the link I had posted which can cause this:
1. Out of date service reference.
2. Long messages in response.
But most of the posts related to this have remained unanswered. Since I have never faced it, I am not sure. Just check if the references are fine and messages aren't larger than the default size.
BTW, how about .Net source debugging, it might tell what exactly is wrong.
|
|
|
|
|
I can double-check the reference thing, but:
0) The same app/service combination works on my dev box
1) I'm pretty positive that the DLL itself hasn't changed because I've only been monkeying with the web config to get it to even be browsable.
... but I'll double check anyway.
The response I'm expecting (a string) is less that 150 characters. Even if it was larger, maxReceivedMessageSize="2147483647" , and maxBufferSize="2147483647"
I thiink it's a configuration problem. This is a https situation.
I found one guy that said he moved to silverlight/dotNet 4, and all his problems magically went away. Unfortunately, that's not an option for me.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
John Simmons / outlaw programmer wrote: I found one guy that said he moved to silverlight/dotNet 4, and all his problems magically went away. Unfortunately, that's not an option for me.
Yes. I read that too.
Since I do not know anything about Silverlight, I cannot use your configuration to try and find what's wrong. I guess MS tech support is the last resort if nothing goes right.
|
|
|
|
|
I managed to retrieve the inner exception, and posted it as a reply to Pete's last comment.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Were you able to resolve the problem? How do you solved it?
|
|
|
|
|
Hy,
I am completely new to silverlights.I just installed silverlights 1.1 in my system as i have vs 2008 beta version .After that i craeted a silverlight project
but the design partof xaml file gae me an error .as it said that the following reference swere not present
agclr,system.silverlight,system.xml.core
Also,Can any one tell me wether vs 2008 would support silverlight 3.0
Please Help
|
|
|
|
|
As per this[^] link, this release does not work with the 1.1 editions.
"Note: This release will not work with the Visual Studio 2008 Express editions."
My signature "sucks" today
|
|
|
|
|
Hi,
I'm experiencing anoying problems in my app (app utilizes Prism modular architecture). I have main app with several modules. Main app has it's own resx file and each module has it's own resx file. For instance, module Calculation has it's own default resx file Calculation.resx (strings in English) and two localized resource files Calculation.es-ES.resx (for Spanish) and Calculation.hr-HR.resx (for Croatian). When I set CultureInfoUI to "es-ES" all strings defined in MainApp.resx are in Spanish as expected but strings defined in modules are in default language.
I must add that modules related dlls are in \Modules directory. In XAML I'm using resources as static (in main app and in modules):
<GridViewColumn Width="130" Header="{x:Static View:CalculationResources.Active}" DisplayMemberBinding="{Binding IsActive}" CellTemplate="{StaticResource GridViewCellTemplate}">
I know I wont be able to change language on the fly (because of x:Static) but that's not necessary. At least for now
How do I make my modules localized???
P.S. Since I have both, main app and modules, in same solution I tried to reference modules projects in main app and then everything worked fine. Of course, this breaks whole meaning of modularity...
|
|
|
|
|
I don't have my IDE up and running at the moment, but I seem to remember at the form level there is a localized property.
Setting that to true places all strings in a resource file for your localization of [default].
After that you have the fun job of translating all resulting strings in the file for every language you support and saving it in that localized version. This[^] will give you more detail.
|
|
|
|