Thursday, November 8, 2007

Importing and exporting a custom webpart in to sharepoint using dotnet API

I would like to import a custom webpart that was exported from other system in to mine .
I have tried adding the safe control tag to the web.config file and i have also place the assembly in the GAC. but I still don't know why i am facing error.

1 comment:

swastik nath said...

Just exporting and importing a .DWP or .webpart file wont help if you are trying it on different machines(by that i thing u mean different sharepoint servers, right?). You have to copy the assembly file of that webpart to the root bin folder of of the site or to GAC on target machine. Again u have to make "SafeControl" entry for that webpart to the web.config file of the target sharepoint site web application.

As you already have created a web part and using it in a site i hope you know the details of the steps i mentioned above.