5

I just installed Visual Studio 2015 Professional, and it installed correctly. But starting to work on a Silverlight project, I had a problem with the RIA Services proxy project in my solution (the silverlight project that references the RIA servies server project). The project builds and runs successfully, but it shows 'cannot find reference' errors everywhere I reference classes from my server project, like it doesn't recognize the generated file .g.cs, so I can't work on my RIA Services classes on the client. Anyone had this problem too ??

h_djebli
  • 2,569
  • 2
  • 16
  • 15
  • It happened in the past and might be fixed by removing the old reference from this project and add it back after that. – Lex Li Jul 21 '15 at 12:20
  • I tried this but didn't work too – h_djebli Jul 21 '15 at 15:17
  • A temporary "fix" for me was to click the "show all files", navigate to the .g.cs and click refresh for that file. Works until the next clean. Impractical in many solutions though. – vpi Jul 30 '15 at 16:35

2 Answers2

1

Yes, have the same problem. I filed a bug with repro at Microsoft's Connect site: types in referenced RIA silverlight projects are not recognized in VS 2015

yowl00
  • 181
  • 1
  • 7
0

i have this problem,

  1. clean all projects,
  2. go to soulation folder and delete this folders ==>"obj"&"bin"
  3. remove all extention rference and web refrence from silverlight project,
  4. add all refrence agian
  5. rebuild project
  • Thanks for the reply, but it didn't work too. I tried all the steps above but the problem persists. The project builds successfully, but in the development it doesn't recognize all the classes contained in the RIA services generated file .g.cs – h_djebli Jul 22 '15 at 14:05
  • search in error, and find error without .g.cs, there are 1 or more, if fixed this error then with clean and rebuild project, you can run project – Mohammad Bigdeli Jul 23 '15 at 09:10