How can I get Silverlight code generation exception information?

Now I get the following error when I create a Silverlight for business application:

Code generator

'Microsoft.ServiceModel.DomainServices.Tools.CSharpCodeDomClientCodeGenerator' encountered a fatal exception and could not create code for the project

'C: \ Software \ ProjectPartCenterAdmin \ Alpha \ Latest Version \ ProjectPartCenterAdmin \ ProjectPartCenterAdmin.csproj':

An exception has been chosen to target the call.

I NEED ANYTHING TO MY CODE ever since it last worked! All I did was clean rebuild the application. Is there a way to get information about what an exception is? I'm dead in the water until I can figure it out

Oh, and by the way, I hate creating code! I had endless problems with RIA Services, and I try my best to "make the right path"; that is, no hacks.

Edit:

I also get a similar warning:

The following exception occurred creating the MEF container composition:

Unable to load one or more of the requested types. Check out the LoaderExceptions Property for more info.

The default code generator will be used.

I get this for some time and ignored it because the application seems to be working fine.

Also, when I remove the CustomValidation attributes, the exception disappears. But there are no warnings.

+4
source share
1 answer

First of all, you need to check if there were any user check errors in the project. I had the same problem, but when I realized that I have two methods of the test result with the same name! and change it, built was successful.

+1
source

Source: https://habr.com/ru/post/1343965/


All Articles