Silverlight Bing error message in SSRS PowerPivot Report - silverlight

I have a current setup of SharePoint 2010 SP2 with PowerPivot Gallery and SSRS installed. While creating a Report from an Excel in the PowerPivot Gallery, I added a Map layout to plot cities. While this worked fine until yesterday, all of a sudden I receive Bing error: empty messages and one message saying:
Bing Error:[Arg_SecurityException]
Arguments:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem.
See http://www.microsoft.com/getsilverlight/DllResourceIDs/Default.aspx?Version=5.1.40416.00&File=mscorlib.dll&Key=Arg_SecurityException
Opening the MS link doesn't really help in solving the issue. Is there a way to debug this Silverlight message, like JavaScript console? Or do you have some possible suggestions on how to fix the Bing error in the Map encoding of the SSRS reports?
Thanks

Well, in the end I found the root cause of the issue. Unsuspectingly, it was a Network issue. The proxy changed rules and the Network team blocked the URL to Bing Maps, thus making rendering of Bing Maps in SSRS impossible. After adding an exception to the Bing Maps URL in the proxy filter, the Maps are shown again.
This still doesn't answer my question regarding the debug of Silverlight errors, but it closes my case.

Related

AngularJS osm leaflet - access denied to tiles

I use osm in my AngularJS app and in Google Chrome browser I get the following messages
So I do not have access (any more) to the tiles. Three days ago it worked fine. If I open the application in Firefox everything is fine and works.
Is this an adjustment in Google Chrome or how I can find out what I have to do in order to get it work with Google Chrome anymore.
Not sure if this will help, but from PINTOSTACK, in
https://help.openstreetmap.org/questions/83887/unable-to-download-tiles-403-forbidden
"Maybe this will help someone else, for those using leaflet, we fixed it by changing http to https on the tileLayer png. Seems to work on localhost in Chrome & Edge."
I made the change and this worked for me.
You are not adhering to the tile usage policy. That's why your access denied message links to that policy.
OSM became stricter in enforcing the policy recently.
Could be related to another provider that slashed It's free tier by 99% recently and therefore users flocking to OSM.
As the tile usage policy stats: "OpenStreetMap data is free for everyone to use. Our tile servers are not."
(see: https://operations.osmfoundation.org/policies/tiles/ )
So please follow that policy closely if you use OSM for light use. For use in a business context or an app you shouldn't use those tile servers by the OSMF anyway (see the usage policy that asks you not to hardcode the tile.openstreetmap.org URL into an app).
Alternatives can be found here: https://wiki.openstreetmap.org/wiki/Tile_servers
If your angular application is producing only light use and not used for business contexts, check your dev tools in Chrome about the User-Agent and referrer your angular app is sending.

How can I avoid getting a 'Permission needed / Bad Request' dialog when opening an Office 365 Addin?

My team is in the process of developing an Office 365 add-in, specifically to enable interaction with a hosted web application, and we're encountering a "Permission needed / Bad Request" error that we can't seem to pin down.
Context:
Developing and testing the add-in involves configuring an Azure Active Directory v2 application via the management portal as well as (for development purposes) creating an xml manifest file (which is for v1 apps as opposed to the json format for v2) that can be side-loaded via the O365 interface to provide access to our hosted app (currently only xml manifests can be side-loaded). We're still very much in the process of figuring things out in Office 365, as well as Azure/Active Directory and Microsoft Graph, and the documentation is fairly broad and doesn't always seem to be up to date.
Problem Description:
One of the problems that we're run into occasionally is encountering a "Bad Request" dialog message (in a browser dialog titled 'Permission needed') that is displayed when clicking the toolbar icon for our add-in. The actual URL being requested is similar to https://store.office.com/client/consentnotification.aspx with a number of parameters representing our application and it's required permissions. This results in an HTTP 400 with "Bad Request" being the only response content.
This is happening when the user clicks on our add-in in the O365 application toolbar and is occurring at the point where the user would have to authorize permission for the add-in.
This error seems to be related to the application configuration, but we can't seem to sort out how specifically (ie, some developers are encountering it, and others are not. Sometimes it'll show up if we recreate the Azure Active Directory application using one version of portal or another (there are currently two, with the v2 version being in preview).
Can anyone offer suggestions as to what might be causing this or provide information on why this might be occurring? We're not blocked, but it is rather annoying to deal with in development. I've done a fair bit of research trying to sort out why this is happening and I've gone through a number of tutorials/introductions on configuring Azure apps without success.
This turned out to be related to the Azure Active Directory Application configuration.
For the applications where this was occuring, the AADv2 application manifest was using a "signInAudience" value of "AzureADMyOrg". For cases where it was working as expected (ie, properly populating the permission request dialog) the "signInAudience" was set to "AzureADandPersonalMicrosoftAccount".
After some testing, the solution for our particular problem seemed to be either manually editting the AADv2 application manifest (json) to have "signInAudience": "AzureADandPersonalMicrosoftAccount", or via the Portal by setting the Application's Authentication Supported Account Types setting to be "Accounts in any organizational directory" (this results in a manifest setting of "signInAudience": "AzureADMultipleOrgs" which also seems to work).

Google App Engine Datastore Admin is disabled due to application hidden by an alias

Recently I migrated my application to the High-Replication datastore using the migration tool.
The Datastore Admin page now isnt diplaying correctly:
Error: Server Error
The server encountered an error and could not complete your request.
If the problem persists, please report your problem and mention this
error message and the query that caused it.
When I visit the Datastore Admin in the old application (the one I migrated from) I get the following notifications:
This application is hidden by an alias. The application lrweb2012 has
an alias that causes it to receive all traffic normally directed at
this one. Unless you are looking for historical data, you probably
want to see that application.
Datastore Admin is disabled. Because lrweb2012 has an alias that
shadows this application the Datastore Admin tool cannot be used.
Can anyone experianced suggest what is going on, and how I may go about resolving this issue?
Cheers,
You migrated your app, so you probably want to be looking at the admin for lrweb2012-hrd (or wherever you migrated it to) instead of the old setup.
Use the drop-down at the top-left corner to pick a different app.

SSRS Report Viewer only works when Fiddler2 is running

I have a WPF application using a WinForms Report Viewer control.
The report control loads reports from SSRS 2008.
All was working fine until we moved to a new server.
All users can connect and authenticate to http://SERVERNAME/reports and run reports with no issues.
Certain users can run the reports from the WPF app but other users get the message:
“The request failed with HTTP status 401: Unauthorized”.
I figured I would install Fiddler2 and see what traffic was being passed around.
Unfortunately (or fortunately), the reports load correctly in the Report Viewer control when Fiddler2 is running.
Why?
Though this is a "temporary workaround"; it is definitely not ideal.
And according to Fiddler... it works. The traffic appears to be valid I have nothing to fix.
Any ideas?
The problem ended up being a bad configuration of a Barracuda Networks web filter proxy running on the network. The proxy was getting in the way of the Report Viewer control authenticating. Why it still worked in IE or why it worked when Fiddler was running is still very strange to me but at least I now know what solves the problem.

How to track if browser is Silverlight enabled

I'm trying to get some stats on how many of the visitors to our website have Silverlight enabled browsers.
We currently use Google Analytics for the rest of our stats so ideally we'd like to just add 'Silverlight enabled' tracking in with the rest of our Google Analytics stats. But if it has to get written out to a DB etc then so be it.
Nikhil has some javascript to Silverlight tracking to Google Analytics. I have tried this code but Google Analytics doesn't pick it up.
Does anyone have any other ideas/techniques?
In case you missed it, there's a link to a more detailed article as well in the comments: http://blogs.msdn.com/jeffwilcox/archive/2007/10/01/using-google-analytics-with-rich-managed-web-applications-in-silverlight.aspx
Edit: As David pointed out, this article covers the reverse scenario more (how to write your silverlight app so that it plays well with Analytics).
I think you answered it yourself. The page you are linking to does just that: detect which version of Silverlight the user has (not if s/he installs it). From the page:
After a little poking around, I found that Google Analytics has support for reporting a user-defined field.
...
Basically this detects the presence of Silverlight, and if its available, it records the version as the value of the user-defined field. Now your analytics reports will have one of three values: "(not set)", "Silverlight/1.0" or "Silverlight/2.0".
#Vaibhav
The Using Google Analytics with rich (managed) web applications in Silverlight article is very interesing but is more focused on how to get your Silverlight app to send messages to Google Analytics.
#Cd-MaN
Yeah, I thought that too but I have tried running my page with Nikhil's javascript and Google Analytics didn't pick it up. But I could have screwed something up somewhere.
I'm just interested to know if anyone else has managed to do this (track Silverlight-ness) successfully.
I've written a lightweight Silverlight library that helps make it easy to integrate Google Analytics in your silverlight app. You can grab download the code or binaries here.
I think the code posted on Nikhil's blog is out of date if you are using ga.js and not urchin.js.
The use of the global function __utmSetVar() is replaced by the tracker method _setCustomVar()
http://code.google.com/apis/analytics/docs/gaJS/gaJSApiBasicConfiguration.html#_gat.GA_Tracker_._setCustomVar

Resources