c# - Silverlight Prism View Switching Affected By URL? -


i have developed silverlight business application using prism requires user log in before can access main application. silverlight application hosted on iis 7.5 (port *:8086) , makes calls wcf services hosted on same instance of iis 7.5 (port *:8069)

when access silverlight application via http://localhost:8086 works expected (i.e. after successful authentication, prism modules loaded , views switched appropriately) when access via either machine's name (http://xps1521-pc:8086) or ip address (http://192.168.10.104:8086), not work expected (i.e. after successful authentication, prism modules loaded but views not switched). cannot seem figure out why happening , appreciate help/guidance.

thanks!

after close inspection of exception submitted, think problem.

most you're using sort of reflection code (or opening ui dialog) in viewmodel subscription handler can executed when silverlight runs in full trust mode.

so when url of silverilght application changes besides localhost (your dev server) , doesn't run in full trust mode anymore, that's why exception.

you have check if you're executing method call attribute [securitycritical]. if , if need execute method have run silverlight client in full trust mode (not recommended since should feasible intranet scenarios).

see more info

hope helps


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -