Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
I cannot add webparts to my sharepoint site. It shows an error. "$Resources:core,ImportErrorMessage;". I am using SharePoint 2010. Could you please help me to fix this error.
Thank you...
Posted

Today i also faced the similar issue when i tried to import the webpart from Dev site and export to QA site. when i try to add this webpart to the page , it was giving the error."$Resources:core,ImportErrorMessage" . I could not figure out the solution for hours. I came to this Questions and did almost everything which has said here in other answers. like Adding the Safe control to Web config file and checking the public Key token and match with the assembly available in Webpart. but i was getting the Error again and again.

By doing try and trial once i Deployed the solution in Dev using VS 2010. and instead of Importing the .Webpart file from webpart gallery and exporting to the QA webpart gallery, i got the .webpart file from the "pkg" folder which is created by VS 2010 and then uploaded to QA webpart gallery and suddenly Error gone. you can try this if above answer does not work . it might help.

for refrence i have added same answer in my blog http://www.spissue.com/2015/01/getting-resourcescoreimporterrormessage.html[^]

Please let me know if anybody having objection or correction to my answer. since it was hit and trial but it worked for me so thought to share here.

Thanks.
 
Share this answer
 
v5
Comments
Deepu S Nair 29-Jan-15 4:08am    
Answering old questions adds nothing to the previous solution and is likely to attract downvoting.
vinit14360 29-Jan-15 7:03am    
I tried the first solution and did not work out. so how it worked for me i have just written. may be it will be helpful for some one. if this is wrong then i will remove my answer.
Deepu S Nair 29-Jan-15 8:09am    
Ok what about the reference link given.Is it your own website or not?
Deepu S Nair 29-Jan-15 8:57am    
I think your intention is good.But answering old question with links to your own site may sometimes considered as spam which may affect your account.Any way Good answer.
There are two possibilities. They are:

1. Non-matching GUIDS
Check if the guid on webpart class , and in the .xml and in .webpart class are same. On copy-pasting code from other webparts sources, you may forgot to fix guids.

2. GAC reference
When the assemblies in the GAC that web part referenced, was signed by a different strong name key file to what it was expecting. When inserting it into the GAC, there might be 2 entries for the same DLL but they had different Public Key Tokens.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900