Are you checking out a license? If not, then your code won't run. Also, if you're using ArcGIS 10 then you will also have to bind to a product before checking out the license.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.