locked
Migrating SharePoint 2007 code to 2010 - debugging RRS feed

  • Question

  • I have multiple SharePoint 2007 custom web parts (created as UserControls) that I need to migrate to SharePoint 2010. I upgraded all solutions to 2010 and I add them through a User Control Web Part. How do I now debug these 2007 solutions in VS 2010?

    I know I can debug if I create new Visual Web Parts for each, but this is a lot of work as there are many UserControls in each 2007 solution.

    Wednesday, March 28, 2012 2:51 PM

Answers

  • Hey,

    this might be helpful - http://mosshowto.blogspot.in/2010/06/sharepoint-2010-dll-migration.html


    Warm Regards, Pratik Vyas | SharePoint Consultant | http://sharepointpratik.blogspot.com/ | Posting is provided "AS IS" with no warranties, and confers no rights

    Friday, March 30, 2012 12:04 AM
  • Hi Mike,

    Its little bit tricky but as I developer I did this way and gradually  not only upgraded this SP 2007 Webparts into Visual WebPart and enchanced too.
    Its applicable for "WSS based webpart also".

    Solution : 1

    If you have your webparts are packaged then,you can rename the.wsp as .cab.Open this cab file you'll see all the supporting files to make this webPart specifically .ascx and .cs files,script and .dll files.

    Now you so lucky then.add this files to your visual webpart solution and change the namespace class name as per your SP 2007 WebPart.

    Solution : 2

    If you have your webparts are .dll based,then you need to pick the .ascx files from the Layout folder.Ofcourse you will not find the code behind files for this.
    Locate the .dll file from BIN folder of the site or from GAC.

    Use the "Reflector" tool to see the code and make your .cs file as per the namespace and class name,you can comes to know this on your webpart's markup file(.ascx)

    You can easily locate the dll on GAC.Use command prompt instead of using explorer.
    C:\windows\assembly\GAC_MSIL here you can see all webparts categorised as "Folder" get into that folder find your .dll


    Murugesa Pandian.,MCTS|App.Devleopment|Configure



    Friday, March 30, 2012 3:05 AM

All replies

  • Hey,

    this might be helpful - http://mosshowto.blogspot.in/2010/06/sharepoint-2010-dll-migration.html


    Warm Regards, Pratik Vyas | SharePoint Consultant | http://sharepointpratik.blogspot.com/ | Posting is provided "AS IS" with no warranties, and confers no rights

    Friday, March 30, 2012 12:04 AM
  • Hi Mike,

    Its little bit tricky but as I developer I did this way and gradually  not only upgraded this SP 2007 Webparts into Visual WebPart and enchanced too.
    Its applicable for "WSS based webpart also".

    Solution : 1

    If you have your webparts are packaged then,you can rename the.wsp as .cab.Open this cab file you'll see all the supporting files to make this webPart specifically .ascx and .cs files,script and .dll files.

    Now you so lucky then.add this files to your visual webpart solution and change the namespace class name as per your SP 2007 WebPart.

    Solution : 2

    If you have your webparts are .dll based,then you need to pick the .ascx files from the Layout folder.Ofcourse you will not find the code behind files for this.
    Locate the .dll file from BIN folder of the site or from GAC.

    Use the "Reflector" tool to see the code and make your .cs file as per the namespace and class name,you can comes to know this on your webpart's markup file(.ascx)

    You can easily locate the dll on GAC.Use command prompt instead of using explorer.
    C:\windows\assembly\GAC_MSIL here you can see all webparts categorised as "Folder" get into that folder find your .dll


    Murugesa Pandian.,MCTS|App.Devleopment|Configure



    Friday, March 30, 2012 3:05 AM