locked
Custom Webpart Silverlight RRS feed

  • Question

  • How can you get to the code of a custom webpart, silverlight application to edit the code?  I do not have a copy of it and not sure how to access the code.  The programmer that made it is gone. 

     

    Also, this is Sharepoint 2010.

    Wednesday, November 24, 2010 5:00 PM

Answers

  • Can you please confirm whether or not you have the source code or Visual Studio project? If you don't then the best you can do is use Reflector, http://www.red-gate.com/products/reflector/, to read the source code (which likely won't be exactly as it was written) and then try to re-write the web part. You can also download the .wsp package from the server (assuming it was delpoyed as a feature), rename it as a .cab file and then extract all of the files out of it. This will help you to determine which assemblies and artifacts made up the web part and silverlight application. These are some options.

    Alternatively, is it possible to contact the programmer who has left the company? See if it is feasible to send a friendly note inquiring where the source code may be in your organization. This might be the easiest way to start. If this is not a possibility, then you have to re-engineer the entire thing if you need to make changes to it.

    I hope this helps,

    Craig

    Wednesday, November 24, 2010 6:10 PM

All replies

  • Can you please confirm whether or not you have the source code or Visual Studio project? If you don't then the best you can do is use Reflector, http://www.red-gate.com/products/reflector/, to read the source code (which likely won't be exactly as it was written) and then try to re-write the web part. You can also download the .wsp package from the server (assuming it was delpoyed as a feature), rename it as a .cab file and then extract all of the files out of it. This will help you to determine which assemblies and artifacts made up the web part and silverlight application. These are some options.

    Alternatively, is it possible to contact the programmer who has left the company? See if it is feasible to send a friendly note inquiring where the source code may be in your organization. This might be the easiest way to start. If this is not a possibility, then you have to re-engineer the entire thing if you need to make changes to it.

    I hope this helps,

    Craig

    Wednesday, November 24, 2010 6:10 PM
  • I do have Visual Studio, so this will require full re-engineering of the web part?  I am really only trying to make a simple change.  So contacting the programmer would be easiest?
    Wednesday, November 24, 2010 7:06 PM
  • that would be easier...
    Serge Luca; MVP blog: http://sergeluca.spaces.live.com Devoteam Belgium. http://twitter.com/sergeluca
    Wednesday, November 24, 2010 7:28 PM
  • Also on a separate note, I got the code, does anyone have a link to where I can repackage it and re-deploy the webpart?
    Friday, December 3, 2010 1:46 AM