Visual C# Developer Center > Visual C# Forums > Visual C# General > VS-Package: CodeDom Exceptions in Methods
Ask a questionAsk a question
 

General DiscussionVS-Package: CodeDom Exceptions in Methods

  • Monday, October 26, 2009 8:45 AMTraidor Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi together,

    I have an VS package where I get an CodeDom-Provider for the selected project item. This works without any problems. The returned CodeCompileUnit seems to be ok and I can access the namespaces, classes and so on.

    But if I access a method statements with the { brackets inside (try/catch, if, while), I get the System.ComponentModel.Design.Serialization.CodeDomSerializerException. If the method contains only "normal" statements without the brackets (Variable declaration for example), I can access the method without an exception.

    Is this an known problem of a maybe not full implemented CodeDomProvider I get returned? Or what is the problem I run into?


    Thx for any ideas!
    Fabian

All Replies

  • Monday, November 02, 2009 2:34 AMHarry ZhuMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    Could you please post some code that can help us to reporduce the scenario?

    Harry
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
  • Thursday, November 05, 2009 2:44 AMHarry ZhuMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    We are changing the issue type to “General Discussion” because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question” by opening the Options list at the top of the post  window, and changing the type. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.