SharePoint: Cannot import Web Part error

I get this quite often when moving webparts to other servers. In addition to the usual troubleshooting provided in posts like these:

http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2008/10/06/tr…

http://stackoverflow.com/questions/120928/sharepoint-error-cannot-import…

One thing I have found I need to do is check that the web.config file has all of the appSettings keys I am using in my code. If these are missing it can throw this error.

Another thing to check is that the web.config “” is set to “Full” if your dll requires that.

Additionally, make sure any files you need in the “bin” folder are there if you are using that instead of the GAC for anything.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s