Visual Studio Developer Center > Visual Studio Forums > Visual Studio Class Designer > VS2008 class lib with typed Dataset, rename Namespace
Ask a questionAsk a question
 

AnswerVS2008 class lib with typed Dataset, rename Namespace

  • Sunday, October 18, 2009 7:25 PMLazzerman42 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,
    I have a class lib project that I've updated from Net 2.0 -> 3.5 which was just fine. Thought I should change NameSpace aswell, right click->proj properties-> default namespace. VS2008 works for a while then I get a list of errors - mostly in the XSD files for my typed datasets. When I look at the XSD files, they are ruined, looks like they have been cut off.

    I have SP1 for VS2008 installed and my OS is Win 7 x64 RTM.

    How do I change namespace on a project that uses typed datasets?

    TIA!

    Best regards,

       Lars siden

Answers

  • Monday, November 02, 2009 6:09 AMYichun_FengMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Hi Lars,

     

     

    Thanks for reminding me of the email! Due to the time difference, it didn’t remind me the mail at night.  I’ve checked the mailbox again and find your email. Sorry for the delay.

     

    I’ve tested your project and it works well with non space character namespace, except some unrelated errors, for example SpärraSålda.cs and Supersök.cs could not be open. But all the xsd files are OK after changing namespace.

     

    I recommend that you post a new in .NET Framework Setup forum,

    http://social.msdn.microsoft.com/Forums/en/netfxsetup/threads

     

    This issue probably is cause by the installation of .NET Framework.

     

     

    Best Regards

    Yichun Feng

    MSDN Subscriber Support in Forum 

    If you have any feedback on our support, please contact msdnmg@microsoft.com


    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.
    • Marked As Answer byLazzerman42 Monday, November 02, 2009 11:33 AM
    •  

All Replies

  • Monday, October 19, 2009 6:11 AMYichun_FengMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi Lars,

     

    Welcome to MSDN forums!

     

    Based on your description, you encounter a problem when renaming the namespace after upgrading a library project. I test it as the following steps but it works fine:

     

    1)    Create a class library project with strong typed dataset in VS2005.

    2)    Add a winform project to the step1’s solution with reference of the class library.

    3)    Build the solution.

    4)    Open the project in VS2008 SP1 and follow the wizards to upgrade the project successfully.

    5)    Rename the namespace both in winform and class library project.

    6)    Build the solution and it successes.

     

    Are my steps as same as yours? If you do any other additional steps, please let us know! It is really important for us to reproduce the same issue locally to do some future investigations. So, if you can share the detailed steps or the target projects,  it will help!

     

    By the way, as I know, there was a similar issue before, but it is fixed in SP1, please refer to,

    https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=313984

    To test if the SP1 is correctly installed on your machine, you can find instructions from the following blog,

    http://blogs.msdn.com/astebner/pages/8999004.aspx

     

    Have a nice day!

     

    Best Regards

    Yichun Feng


    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.
  • Monday, October 19, 2009 7:19 PMLazzerman42 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hello mr Feng,

    Thanks for your reply!

    I reinstalled SP1 for VS2008/3.5 - still same error. I right click the project and change the default namespace. It takes a while(like 1 minute) - then when I rebuild - all typed dataset/XSD files are broken, looks like this:

    Mapping SourceColumn="UtskriftsTyp" DataSetColumn="UtskriftsTyp" />

     

    Mapping SourceColumn="UtforarKommentar" DataSetColumn="UtforarKommentar" />

    <

     

    Mapping SourceColumn="Generation" DataSetColumn="Generati

    VS2008 cut the file after "Generati" so the files aren't valid longer.

    When I run the verification util you pointed out, I get an error when verifying 3.5 sp1
    [10/19/09,21:08:40] Launching process 'Netfx20TestApplication.exe' now
    [10/19/09,21:08:40] Process successfully launched. Waiting 300 seconds for it to complete.
    [10/19/09,21:08:40] Process 'Netfx20TestApplication.exe' exited with return code 0
    [10/19/09,21:08:40] ****ERROR**** Verification failed for product .NET Framework 3.5 SP1

    As far as I can see, I don't have "'Netfx20TestApplication.exe".

    Any more good ideas?

    Is this maybe cause I run x64?

    TIA!

    Regards,

       Lars Siden

  • Wednesday, October 21, 2009 5:05 AMYichun_FengMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi Lars,

     

    Have you tried to create a new similar project with strong typed dataset for it?

     

    If the xsd file in the new project is still ruined after namespace modification, it may be caused by SP1. You can post in .NET Framework Setup forum,

    http://social.msdn.microsoft.com/Forums/en/netfxsetup/threads

     

    If the new project works well, it might be caused by the complexity of the specified project. To better support on this issue, we want to reproduce it locally. Would you mind sending me a sample project for reproducing?

     

    My email address is v-mofeng AT Microsoft DOT com. Please title with EFForum, so that I can address it as soon as possible.

     

     

    Best Regards

    Yichun Feng


    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, October 29, 2009 4:50 AMYichun_FengMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi Lars,

     

    We are changing the issue type to “Comment” 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 editing your initial post and changing the radio button at the top of the post editor window. 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.

     

     

    Best Regards

    Yichun Feng

    MSDN Subscriber Support in Forum 

    If you have any feedback on our support, please contact msdnmg@microsoft.com


    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.
  • Saturday, October 31, 2009 9:06 AMLazzerman42 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    I haven't ? I mailed you my complete solution more than 2 weeks ago.

    Regards,

       Lars Siden
  • Monday, November 02, 2009 6:09 AMYichun_FengMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Hi Lars,

     

     

    Thanks for reminding me of the email! Due to the time difference, it didn’t remind me the mail at night.  I’ve checked the mailbox again and find your email. Sorry for the delay.

     

    I’ve tested your project and it works well with non space character namespace, except some unrelated errors, for example SpärraSålda.cs and Supersök.cs could not be open. But all the xsd files are OK after changing namespace.

     

    I recommend that you post a new in .NET Framework Setup forum,

    http://social.msdn.microsoft.com/Forums/en/netfxsetup/threads

     

    This issue probably is cause by the installation of .NET Framework.

     

     

    Best Regards

    Yichun Feng

    MSDN Subscriber Support in Forum 

    If you have any feedback on our support, please contact msdnmg@microsoft.com


    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.
    • Marked As Answer byLazzerman42 Monday, November 02, 2009 11:33 AM
    •  
  • Monday, November 02, 2009 11:33 AMLazzerman42 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     


    Hello Mr Feng,

    Ok, thanks! Good to know that it works on your machine. I got like 4-5 dev machines, so I'll try the namespace rename on them as well.

    I'll try the other forum if I can't get it working on some other machine(I got one Win XP SP3 machine that may work)

    Regards,

      Lars Siden
  • Monday, November 09, 2009 2:27 AMabadia Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    Select the xsd dataset file on Solution Explorer, go to properties(F4) and set "Custom Tool Namespace" to desired namespace.

    Best regards,

    Fabrizzio Abadia.