Deployment error: when deploy solution using visual studio 2010


  • Hi,

    I created two different feature on activation of first feature activate the other one using feature receiver and other hand deactivation of first feature deactivate and uninstall the other one using the same feature receiver. It's really work good when i deploy it by using stsadm but when try to deploy this solution using visual studio 2010 it's show the error like Error occurred in deployment step 'Activate Features': Feature 'Feature2' (ID: xxxxxxxxxx) is already activated at scope 'http://xxxxxx'.

    I really shocked for this situation.

    Please any suggest me how to deploy it using vs 2010 bcz my client wants to use deployment with visual studio.

    Thanks in Advance


    Thursday, August 25, 2011 5:51 AM


  • Try modifying the Deployment Configuration in Visual Studio on activate or deactivate.

    Deployment with Visual Studio should only be used for development environments, so I hope that's what you're doing ?

    • Marked as answer by Zizhuoye Chen Friday, September 02, 2011 1:47 AM
    Thursday, August 25, 2011 9:27 AM