I have installed SP 2010 in a Windows Server 2008 R2 loaded environment. I have been using VS 2010 for developing application pages for SP 2010.
I make use of wsp b
To resolve, you should first instruct IIS to display detailed error messages, instead of just "500".
Adjust your web.config file and set custom errors to off:
web.config
(case-sensitive).
In addition, if you are using Internet Explorer, turn of the advanced option "Show friendly error messages".