I was just tryng to create a simple webpart in visual studio 2010 (for sharepoint 2010) I created an empty sharepoint project, then added a webpart. I wrote a simple code (pasting it from a book with examples) I Build the project, then deploy it (without errors)
Then when i go to the webpage where i want to add my webpart, i get this error when adding it:
"unhandled exception was thrown by the sandboxed code wrapper's Execute method in the partial trust app domain: $Resource:core,ImportErrorMessage;"
Any idea about it? If it's needed i'll post the code of the .cs file
Thanks