c# 4.0 - weird error with RIA Services "code generator encoutered a fatal exception" -


This is the second time that I have this very awkward problem with WCF RIA services! The sad thing is that I had to solve the problem twice, again going through separate hoops :(, even though I have left the note pointing myself to the solution: P < Anyway, the "pretty useful" error message is the following:

... \ MSBuild \ Microsoft \ Silverlight \ v4.0 \ Microsoft.Ria.Client.targets (304,5) : Error: Code Generator 'Microsoft.ServiceModel.DomainServices.Tools.CSharpCodeDomClientCodeGenerator' encountered a fatal exception and the project "ProjectA"

(for some time), I found the source of the "real problem", which, I have some resource files ( .resx ) Was using the web application (host), and it was linked to my menopause project ( ProjectA ). This issue was in place of resource class names. To resolve this issue, I had to make sure that the original .resx files are also linked to In the form, the following properties are set correctly:

  "custom tool" is set to PublicResXFileCodeGenerator "Custom tool namespace" is set to the same namespace ("ProjectA.Web.Resources" Case in me)   

It is difficult to reproduce the obscure problem. Once I solved it, trying to change the properties was not brought back then: s

Anyway, the note I wrote helped me in this situation, so I hope It is possible that this note will help someone else to help with this issue (maybe this will be the future: P)

Comments