BronwenWeeGo I was trying to add some validation logic into one of my forms. I added a function to my domain data service that I wanted to call from my Silverlight application using an [Invoke] attribute.

It all looked good but every time I tried to call it I kept getting an an error:

Invoice operation [functionname] failed validation. Please inspect ValidationErrors on the operation for details

After pulling my hair out for a bit I realised the entity I was passing into the function was getting validated and ValidationErrors were getting set. This is somewhat annoying.

To get around this for now, what I’ve done is change my function from:

[Invoke]
public bool IsLayerNameUnique(Entity myEntity)

to pass the fields that i need instead e.g.

[Invoke]
public bool IsLayerNameUnique(string name, Guid id)

This now means I can run the function but is somewhat annoying. If I needed to validate a bunch of fields it would mean I’d have to pass them all in.  Anyone got a better way to do this?

BronwenWeeGo While doing some development using RIA services, Silverlight 4 and SQL I started to get this error after modifying one of my pages:

A transport-level error has occurred when receiving results from the server. (provider: Shared Memory Provider, error: 0 - The handle is invalid.)

My application had shut down correctly and I then discovered it had also broke all my current forms so figuring whatever I’d just changed must have caused it, I reverted my change to continue with this error. I stopped and started SQL Server..still no luck. I commented out a bunch of code till it was bare minimum and still no luck.

Still don’t know what caused it but after an hour of trying things I did the reboot your computer trick and tada it all worked again.  So if anyone knows how to fix this other than rebooting your computer, please let me know.

BronwenWeeGo I was trying to create a RIA Services Class Library in VS2010 today and it kept failing to create both of the required projects with “A project with that name is already opened in the solution” as the error.

After searching around I’d found other projects that had a similar issue and the common thing was they were using  AnkhSVN.  There are 2 workarounds that also worked for me:

1. Disable AnkhSVN create the project, and re-enable it.

2. When you create the project make sure the casing exactly matches the actual directory e.g. use C:\Users\BronwenZ\Documents\Visual Studio 2010\Projects and not the default of c:\users\bronwenz\documents\visual studio 2010\projects

MDS_Logo_Web_NewCurrently priced at only $2,500 per organisation MapData Sciences has just released the most current online road data map for Australia and New Zealand ready for you to use. Supplied as a hosted tile set the product is amazing value, you can simply plug this into your current generation GIS software or web application with ease, get 4 updates per year and a SLA to top it off. Find all the details here on MDS’ website.

The tile set is supplied in the now de facto web standard EPSG:3857, 256px square “Quad Tree” tiles. This format is used by Bing, Google, Yahoo, OSM and ESRI meaning that the most recent version of most GIS software will allow you to add this as a layer. MDS provides instructions on how to integrate with ESRI’s products as part of your welcome email.

Apart from the good value the impressive news is around Australia and New Zealand getting a first class current road map with an actual schedule of updates:

MDS

MapData Science shows the new tunnel...

Read More »

Copyright © 2002-2013 Soul Solutions Pty Ltd. | Login