views:

93

answers:

1

Hi
I'm using silverlight 4 with ria serivces ..
I got an error said :

The type 'eLab.Web.SessionsHWFile' exists in both 'eLab.Web.dll' and 'DataContractSurrogates_c96b3601-cd13-4049-93bb-e7b3f59a4fd9'

where eLab.Web is the aspx web project that hosts the silverlight project, and SessionsHWFile is an edmx entity ,it's not a real table in DB, it's VIEW. I dragged a grid from the data source and doped it in XAML user control, and used a query to get the data from stored procedure in DB, but I'm getting the above error when I debug the code and expand the results view : alt text

I did this ,adding a view and getting the results from SP in DB, like a million time and nothing happened until this time ..

A: 

**I think I knew were the problem is ..
I discovered that you can't name two "riaControls:DomainDataSource" with the same Name, even if they're int different xaml pages.

Honestly I don't know why yet, but that's how I fixed the problem ..

Just change the Name property of the "riaControls:DomainDataSource" ...**

Al0NE
Try my answer and vote for it if it's right plz ..
Al0NE