Tuesday, November 16, 2010

unhandled error 4004 silverlight major issue child element

Can get the dread element already has a child element error...this is very generic.
Get the right error
Run f5, go debug , windows, processes and select all processes and right click with mouse to detach.
Run the program until get an error eg. data form scrolling and it blows up

Should get a better error message e.g load operation failed for query 'GetUser'

This error in the dataform scrollling up and down and it blows up after while caused by messing up web.config...some forms authentication stuff left in

esp fix up to have profile enabled =false and rolemanager enable and set up
set up identity impersonate=true






























Friday, November 5, 2010

Silverlight ria - data sources from domain sercvice disapear

Two reasons cannot see domain services data sources in order to drag and drop

1) vs not installed in default location c:\...etc (search web)

2) you have regenerared a entity framework framework and domain service and
the name of the entity does not match...eg complianceentities2 now. Make sure in edx model and classes all names match. Also check web.config file in project make sure connection has the right name etc.

Issue with Silverlight ria project running on network drive

Has issues with Silverlight running on network drive

1) Open devenv.exe.config (in C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE on my machine), and add this



....

Restart Visual Studio and it should work

2) Make sure that you have set your project to load from a proper letter drive e.g I:\finance systems\.... rather than unc \\servername\... YOU WILL FIND THAT THE DESIGNER PART OF YOUR XAML WILL NOT DISPLAY AND INTELLISENSE IS NOT WORKING FOR SOME THINGS ESPECIALLY YOUR DOMAIN SERVICE