Silverlight blank page but only from one machine - silverlight

A silverlight application is deployed to IIS. I can access it from two different machines. However, a user from another machine only sees blank page.
I do not suspect mime types and other IIS/server issues because it works fine except for this user.
The user can access other Silverlight apps, on same server.
What can be the problem on the client's machine?
UPD: user can't access .xap file directly, restricted access.
UPD: looks to be a proxy in the middle.

Hm, can't delete my own post? Well, this looks to be network problem with proxy.

It seems a cross-domain issue, and normally an unhandled exception causes the Silverlight content to go blank, even-though if you right-click you would get Silverlight menu action.

Related

Accessing browser history in Silverlight

If I am at site abc.com and I go to my site def.com which hosts a silverlight app. How can I find out which domain I just came from within my silverlight app?
Assuming you got to your site via a link (this does not work if you simply typed in your website address), your hosting ASPX page on def.com will receive a referring URL.
You then just need to pass it into the Silverlight application via the InitParams setting of the Silverlight control.
See the HttpRequest.UrlReferrer Property and this example on how to pass the property to Silverlight.
You can't. You will have to use Javascript for that and even then you won't be able to see from which site the user came, you can just go back to the previous page.
You can do it on the server side by checking the web server logs.

Login screen while accessing wcf from silverlight application

I have a Silverlight 4 application which gets data from a silverlight enabled WCF service and using binding(basichttp). Sometimes when we open the silverlight application windows login screen appears it asks for username and password but we haven't enabled such things from code. I tried to add some config settings for the WCF service but unable to solve so.
To fix this, use Ntlm authentication to the WCF service instead of Windows. This problem will normally appear when you run the service under a non-domain (i.e. a machine) account.
For more details, check this MSDN article: Debugging Windows Authentication Errors (to make it easier to read, think of Kerboros and Windows authentication as being synonymous).
I Think I got near to Solution as my WCF service was not able to send large amount of data to my silverlight application so the connection between both terminates regularly resulting in the Login Screen to appear(tries to reconnect). After increasing the '' inside the behaviours tag in the web.config i.e setting the max value for the "maxItemsInObjectGraph" solved my issue and that login screen just dissappeared.
Hope this Helps.
Regards,
Zafar

SharePoint 2010 and Silverlight

We currently have a Silverlight application which is hosted in a SharePoint 2010 page. The Silverlight app makes web service calls to a another server on our domain, which has a clientaccesspolicy file in place. We are experiencing cross-domain issues in our production environment.
Users in the farm admin group can use the Silverlight application without any issues. However, all other users recieve the generic cross domain exception when they try to use this app. We have attached Fiddler to the process and noticed that the farm admins are served the clientaccesspolicy file, but that non-admin users are not. In fact, Fiddler does not ever show an attempt to load this file for non-admins.
This only happens in our production environment, which leads me to believe there is a web config or permission setting causing the issue. Unfortunately, I cannot find anything that backs this up.
Has anyone else run into this issue or know if such a setting exists?
See comments above. I had to change the URL to use the full machine name i.e. from webserver/service.svc to webserver.domain.com/service.svc. It solved the problem but doesn't answer the question about why the farm admins could access it. vorrtex's response is the best possible explanation I have seen so far.

Silverlight 4 launch a trusted application into the browser?

I just lost 5 hours looking for a answer which i haven't been able to find :p
First, I'd like to force a trusted application (i need to access the file system) to display into the browser. Based on what i found on google a trusted application must be installed and launched as a desktop application (also called out-of-browser application).
So, i want to have an installed application on the client side but meanwhile, the user must also be able to start this same application into a browser window when he goes on my web site. Is this possible ?
Second, I'd like to give to the user the possibility to start the application from the browser. To be clear, the application is installed on the client computer but i want a button on my web site which starts the desktop application. How can i do that ?
Thanks
The answers are sort of and no.
Yes you can run an application that has been installed on the client also in the browser. However, not all of the installed application features will be available. Anything that requires elevated trust will not work inside the browser.
No you can't launch the installed application programmatically from within code running in the browser. The best you can do is display a polite message to the user to the effect that they have this app already installed and in order to access all of its feature they will need to launch it.
Yes, it is possbile since Silverlight 5, see my answer on silverlight-4-elevated-permission-inside-the-browser

Internet Explorer download notification on HTTPS

I have a Silverlight application deployed on a HTTPS server. My applications generates reports that are saved as PDF files. Whenever a user tries to download a file from my application from IE, he gets a notification under the toolbar asking him if he really wants to download the file. If you agree, then IE reloads the page, sending the user back to the login page of my application. After logging again, the user can download any file, but this is very annoying for the user. How can I resolve this problem? Thanks!
If you know who your users are (condition), you might ask them to put your website under their list of Trusted Sites, which will avoid the annoying notification bars.
You need to trigger the download in such a way that it's obviously a user-initiated action. I'm not sure if Silverlight offers a method for this.

Resources