You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
We are using OpenRIA Services to generate silverlight client code from a server application.
When enabling Runtime Contract Checing : Full, the client code is not generated properly. There are a lot of missing entity properties in the generated code.
When debugging the OpenRiaServices.DomainServices.Tools project (during client code generation) it seems that when ccrewrite has done its job, the web-projects .pdb-file refers to the wrong .cs files.
By checking the Read/Writes from MSBuild it seems that it reads the correct pdb atleast, but since the wrong files are refered from the pdb the properties for each entity is not found.
This only happens when we enable Code Contracts. The pdb file refers to the correct files when Code Contracts is not enabled, and the client code is generated correctly.
(Also, i have tried to reinstall Code Contracts but same problem exists.)
We are using OpenRIA Services to generate silverlight client code from a server application.
When enabling Runtime Contract Checing : Full, the client code is not generated properly. There are a lot of missing entity properties in the generated code.
When debugging the OpenRiaServices.DomainServices.Tools project (during client code generation) it seems that when ccrewrite has done its job, the web-projects .pdb-file refers to the wrong .cs files.
This is the code used by OpenRiaServices to read the pdb. http://openriaservices.codeplex.com/SourceControl/latest#OpenRiaServices.DomainServices.Tools/Framework/Pdb/PdbSourceFileProviderFactory.cs
By checking the Read/Writes from MSBuild it seems that it reads the correct pdb atleast, but since the wrong files are refered from the pdb the properties for each entity is not found.
It seems like we are not the first to stumble upon this/similar problem : https://social.msdn.microsoft.com/Forums/en-US/e7a48a93-fe1d-4678-a150-6d025331388a/ria-services-client-code-generation-broken-after-installing-code-contracts-146031712?forum=codecontracts
This only happens when we enable Code Contracts. The pdb file refers to the correct files when Code Contracts is not enabled, and the client code is generated correctly.
(Also, i have tried to reinstall Code Contracts but same problem exists.)
(link to same issue on msdn : https://social.msdn.microsoft.com/Forums/en-US/1742d91f-a33e-41c9-b20f-5df5196267bc/ccrewrite-incorrect-pdb-files-causes-problem-in-open-ria-services-client-code-generation-code?forum=codecontracts)
The text was updated successfully, but these errors were encountered: