Webpart sample from Help fails

Dec 4, 2008 at 1:46 PM
Hi,
I am trying to deploy a webpart as per the sample code in the Help file. However, when I click to deploy I get the following error in my output:

Error parsing Solution. Error HRESULT E_FAIL has been returned from a call to a COM component.

I get the same when I try to look in the WSP view...

Also, I don't get an error when I compile, but reSharper tells me the file MyUserControl.ascx is wrong:

Inherits="MyWebPart.MyUserControl, MyWebPart, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9f4da00116c38ec5"

The bold underlined part is expected to be an interface according to reSharper...

On another note, don't I have to sign the project? and what about the public key tokens, can I really just copy them from the sample code like that? Shouldn't I generate my own?

I hope you can help,

Regards
Henrik W.
Dec 4, 2008 at 2:31 PM
Well, never mind the error. I solved with a good old trustworthy Visual Studio restart.

/HW
Developer
Dec 5, 2008 at 6:49 PM
yes, you should probably generate your own key and sign your assembly.