Error message when you try to deploy a Visual C++ smart device project in Visual Studio 2005: "The operation could not be completed" (922324)



The information in this article applies to:

  • Microsoft Visual Studio 2005 Standard Edition
  • Microsoft Visual Studio 2005 Professional Edition
  • Microsoft Visual C++ 2005 Express Edition

SYMPTOMS

When you try to deploy a Microsoft Visual C++ smart device project in Microsoft Visual Studio 2005, you may receive the following error message when Authenticode Signing is set:
Error: The operation could not be completed. The parameter is incorrect.

CAUSE

This problem occurs when one of the following conditions is true:
  • The project provisioning certificate cannot be found.
  • The certificate name is invalid.
  • The certificate path is invalid.

WORKAROUND

To work around this problem, type the path of a valid certificate in the Certificate box of the Authenticode Signing property element in the ProjectName Property Pages dialog box. The easiest way to make sure that you have typed the path of a valid certificate is to click the ellipsis button (.) at the end of the Certificate box, select a certificate from the list in the Select Certificate dialog box, and then click OK. The certificate path will resemble the following:

SHA-1 Hash=C4E71F7EC724A613EDAC1AD511AE808F73F267F8

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

Steps to reproduce the problem

  1. Start Visual Studio 2005.
  2. On the File menu, point to New, and then click Project.
  3. Under Project types, expand Visual C++, and then click Smart Device.
  4. Under Templates, click Win32 Smart Device Project, type TestProject in the Name box, and then click OK. The Win32 Smart Device Project Wizard opens.
  5. In the Win32 Smart Device Project Wizard, click Finish.
  6. On the Project menu, click Properties.
  7. In the TestProject Property Pages dialog box, expand Configuration Properties, click Authenticode Signing, and then type an invalid certificate name in the Certificate box.

    Note An invalid certificate name has one of the following characteristics:
    • It is in an invalid format.
    • It represents a certificate that does not exist.
    An example of an invalid certificate name is "abcde."
  8. In the Provision Device list, click Privileged Certificate Store, and then click OK.
  9. On the Build menu, click Deploy TestProject. You receive the error message that is mentioned in the "Symptoms" section.

REFERENCES

For more information about Authenticode Signing, visit the following Microsoft Developer Network (MSDN) Web site:

Modification Type:MajorLast Reviewed:8/29/2006
Keywords:kbBug kberrmsg kbtshoot kbprb KB922324 kbAudDeveloper