silverlight-4.0

Getting Useful Error Messages from MS Dynamics CRM Plugins through WCF

梦想与她 提交于 2020-01-15 11:05:31
问题 We have a Silverlight 4 front-end with a WCF Service middle tier, which in turn references CRM 4 web services. When a InvalidPluginExecutionException occurs in our plugins, the best error message I can obtain from the WCF FaultException is a general SoapException message, which really isn't that helpful. Is there a way to get specific error messages from our plugins propogated up to our WCF (and eventually to our Silverlight app). We want to know which Plugins are failing. I posted my answer

Getting Useful Error Messages from MS Dynamics CRM Plugins through WCF

会有一股神秘感。 提交于 2020-01-15 11:05:04
问题 We have a Silverlight 4 front-end with a WCF Service middle tier, which in turn references CRM 4 web services. When a InvalidPluginExecutionException occurs in our plugins, the best error message I can obtain from the WCF FaultException is a general SoapException message, which really isn't that helpful. Is there a way to get specific error messages from our plugins propogated up to our WCF (and eventually to our Silverlight app). We want to know which Plugins are failing. I posted my answer

What purpose does the Silverlight.js file serve?

坚强是说给别人听的谎言 提交于 2020-01-15 10:23:28
问题 I asked this question this morning. Essentially there's an IE hack in the Silverlight.js file that breaks in...IE9. The response I got was to get rid of the file altogether which, to my surprise, seemed to work after preliminary testing. So does this file actually serve a purpose? 回答1: I believe this was included as a way to launch Silverlight on browsers with an advanced "install" experience, or to show alternative HTML when Silverlight was not installed. http://archive.msdn.microsoft.com

What purpose does the Silverlight.js file serve?

余生颓废 提交于 2020-01-15 10:22:50
问题 I asked this question this morning. Essentially there's an IE hack in the Silverlight.js file that breaks in...IE9. The response I got was to get rid of the file altogether which, to my surprise, seemed to work after preliminary testing. So does this file actually serve a purpose? 回答1: I believe this was included as a way to launch Silverlight on browsers with an advanced "install" experience, or to show alternative HTML when Silverlight was not installed. http://archive.msdn.microsoft.com

What purpose does the Silverlight.js file serve?

二次信任 提交于 2020-01-15 10:22:46
问题 I asked this question this morning. Essentially there's an IE hack in the Silverlight.js file that breaks in...IE9. The response I got was to get rid of the file altogether which, to my surprise, seemed to work after preliminary testing. So does this file actually serve a purpose? 回答1: I believe this was included as a way to launch Silverlight on browsers with an advanced "install" experience, or to show alternative HTML when Silverlight was not installed. http://archive.msdn.microsoft.com

Impersonation failing for database connection

﹥>﹥吖頭↗ 提交于 2020-01-15 04:24:09
问题 I have a SL4 app that uses WCF to communicate with a backend SQL Server 2008 database. One of the WCF services needs to connect to the database with a dedicated system account due to the database permissions required by the stored procedure that is called. I have attempted to implement a solution using impersonation within the service code e.g. int result = LogonUser(userName, domain, password, LOGON32_LOGON_NETWORK, LOGON32_PROVIDER_DEFAULT, out _token); if (result > 0) {

Silverlight tests not working unless RDP connection open

会有一股神秘感。 提交于 2020-01-14 03:17:07
问题 I have a few Silverlight UI tests that I'm automating with White. These tests are subsequently run by a TFS build agent, which is running interactively so it can access the desktop. The build passes if I have a Remote Desktop connection open to the build agent as the tests are run; I can see the mouse pointer moving around. When the test clicks on a HyperlinkButton navigation takes place, and is subsequently verified by assertions within the test. The build fails if I do not have a Remote

Silverlight MVVM Confusion: Updating Image Based on State

穿精又带淫゛_ 提交于 2020-01-14 03:05:15
问题 I'm developing a Silverlight application and I'm trying to stick to the MVVM principals, but I'm running into some problems changing the source of an image based on the state of a property in the ViewModel. For all intents and purposes, you can think of the functionality I'm implementing as a play/pause button for an audio app. When in the "Play" mode, IsActive is true in the ViewModel and the "Pause.png" image on the button should be displayed. When paused, IsActive is false in the ViewModel

Is it possible to dynamically choose which Control to render based on bindable attribute in Silverlight 4?

霸气de小男生 提交于 2020-01-13 19:27:14
问题 I have a ListBox with an ItemTemplate which renders a Grid with two columns. The first column is a TextBlock and the second is a ComboBox. The idea is to present to the user a list of questions and a Combo from which the user can choose an answer. This works ok with this xaml: <ListBox x:Name="QAListBox" ScrollViewer.VerticalScrollBarVisibility="Auto" SelectedIndex="-1" ItemsSource="{Binding Questions}" IsTabStop="True" TabIndex="5" ScrollViewer.HorizontalScrollBarVisibility="Auto" Margin="10

System.Data.DataTable in Silverlight 4?

坚强是说给别人听的谎言 提交于 2020-01-13 13:01:32
问题 Does anyone know if System.Data.DataTable is now supported in Silverlight 4 beta? In the past I’ve used this for databinding in ASP.NET and WinForm projects where the UI and objects needs to be constructed at runtime. If not, is it in the road map? 回答1: Codeplex here have developed a lightweight datatable that can get you by in some situations 回答2: No this is not in SL4 and is unlikely to ever make it into later versions either. It represents an older approach to data access. In SL you would