silverlight-5.0

No XAML binding debugging with breakpoints in Visual Studio 2012 (RTM, on Windows 8 RTM)?

你。 提交于 2019-12-04 09:35:27
After upgrading my Silverlight 5 solution to Visual Studio 2012 (RTM), and then updating to Windows 8 (RTM), I noticed that when you set a breakpoint in XAML, you get the following tooltip in debug mode: The breakpoint will not currently be hit. Symbol not found: System.Xml.Xsl.Runtime.XmlQueryRuntime.OnCurrentNodeChanged2. I then tried to set a breakpoint in the XAML of a Windows Store App test project, and then of a WPF application, but I got the exact same tooltip. I tried to repair Visual Studio 2012, but that did not change anything. In Visual Studio 2010 such breakpoints worked fine. Is

Silverlight 5 Backward Compatibility

放肆的年华 提交于 2019-12-04 04:48:42
I have a Silverlight application developed with version 4.0. I tried running it with Silverlight 5 client and everything seems to be fine up to now. But I am wondering; if my users installs Silverlight 5 for client, is it sure my application will still work well? Do I have to run all my Test Cases again? If anyone notices something that has been broke between versions, please list it here! :) Thanks There's little evidence around the internet at the moment, other than that published by Microsoft, which can be found here and here , which states, to summarise: Several changes have been made to

Visual studio 2012 - silverlight - XAML designer - Insert grid row before/ after

浪子不回头ぞ 提交于 2019-12-04 03:58:34
问题 Just switched to visual studio 2012, and I can't figure out how to insert a new row into a silverlight grid through the xaml designer. In visual studio 2010, we could easily insert rows and columns into our silverlight grid just by left clicking > rows > insert before . When we did this it would automatically re-number all the rest of the controls' row numbers. I don't want to have to re-number every control by hand, has this super convenient feature been removed from 2012? Or is there some

Publish an Event without PayLoad in Prism EventAggregator?

♀尐吖头ヾ 提交于 2019-12-04 02:22:09
Why can't we Publish Events without any PayLoad. _eventAggregator.GetEvent<SelectFolderEvent>().Publish(new SelectFolderEventCriteria() { }); Now, I don't need any pay load to be passed here. But the EventAggregator implementation mandates me to have an empty class to do that. Event: public class SelectFolderEvent : CompositePresentationEvent<SelectFolderEventCriteria> { } PayLoad: public class SelectFolderEventCriteria { } Why has Prism not given a way to use just the Event and publish it like _eventAggregator.GetEvent<SelectFolderEvent>().Publish(); Is it by design and I don't understand it?

How to use aspnet_regsql.exe

守給你的承諾、 提交于 2019-12-04 02:03:19
I'm having problems Creating Users in a Silverlight Business Application that uses the Local IIS Web Server. If I use the Visual Studio Development Server I have no problems, but once I check "Use Local IIS Web Server" in the properties page and run the application, whenever I try to create a new user using "login->Register now" I get an "Unable to connect to SQL Server" error. I found a similar problem as mine and the solution was to use aspnet_regsql in the command prompt. If I have to use this tool, then I don't know how to use it: aspnet_regsql.exe -S DBServerName -U DBLogin -P DBPassword

Troubleshooting Silverlight 5 and Ria services [Web-Services-AuthenticationService.svc does not exist]

前提是你 提交于 2019-12-03 20:42:29
I have two different versions of a Silverlight 5 project using Ria services. Both work locally. The older version (A) works when deployed to ISS7. The new version (B) does not. There is user/password authentication that fails for version B with the error: Load operation failed for query 'Login'. the remote server returned an error: NotFound. Referencing various SO and MSDN posts over the past week, I have tried many troubleshooting techniques. Adding error logging as suggested here to the web.config results in the following being logged: The service '/ClientBin/MyApp-Web-Services

C# HttpClient PostAsync turns 204 into 404

冷暖自知 提交于 2019-12-03 17:09:32
问题 Given this WebApi service: [ActionName("KillPerson")] [HttpPost] public void KillPerson([FromBody] long id) { // Kill } And this HttpClient PostAsync call: var httpClient = new HttpClient { BaseAddress = new Uri(ClientConfiguration.ApiUrl) }; httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); var serializerSettings = new JsonSerializerSettings { PreserveReferencesHandling = PreserveReferencesHandling.Objects, Formatting = Formatting.Indented,

Silverlight async unit testing

寵の児 提交于 2019-12-03 08:52:30
I'm having a weird issue with Silverlight Unit Test Framework. The very first method executed fails, every time. I have a second test with the exact same code, and it passes. The strange thing about the first time it's called is that it actually waits for the timeout and then executes the repository call (underneath it's an HTTP PUT if you care). Here's the code - the first one fails every time, second one passes every time: [TestMethod] public void AuthShouldSucceed() { var autoResetEvent = new AutoResetEvent(false); _authRepository.Authenticate(_username, _password, response => { Assert

Cannot implicitly convert type 'System.Collections.Generic.List<T>' to 'System.Linq.IQueryable<T>'

孤街醉人 提交于 2019-12-03 07:12:35
I am trying to create a query in my domain service (VS 2010 Silverlight Business Application) that returns the results from inspection readings that came out as a specific value, my database is set up as: Locations a) Inspections b) InspectionItems c) InspectionReadings a) Areas b) Inspections c) InspectionItems d) InspectionReadings So, as you can see, there are inspection readings for locations under areas and locations. I have a POCO called name StatusList: public class StatusList { [Key] [Editable(false)] public Guid ID { get; set; } public string LocationName { get; set; } public DateTime

C# HttpClient PostAsync turns 204 into 404

我与影子孤独终老i 提交于 2019-12-03 06:08:43
Given this WebApi service: [ActionName("KillPerson")] [HttpPost] public void KillPerson([FromBody] long id) { // Kill } And this HttpClient PostAsync call: var httpClient = new HttpClient { BaseAddress = new Uri(ClientConfiguration.ApiUrl) }; httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); var serializerSettings = new JsonSerializerSettings { PreserveReferencesHandling = PreserveReferencesHandling.Objects, Formatting = Formatting.Indented, ReferenceLoopHandling = ReferenceLoopHandling.Serialize }; var serializedParameter = JsonConvert