Microsoft KB Archive/922324

= Error message when you try to deploy a Visual C++ smart device project in Visual Studio 2005: &quot;The operation could not be completed&quot; =

Article ID: 922324

Article Last Modified on 8/29/2006

-

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  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 &quot;Applies to&quot; section.



Steps to reproduce the problem
 Start Visual Studio 2005. On the File menu, point to New, and then click Project. Under Project types, expand Visual C++, and then click Smart Device. Under Templates, click Win32 Smart Device Project, type TestProject in the Name box, and then click OK. The Win32 Smart Device Project Wizard opens. In the Win32 Smart Device Project Wizard, click Finish.</li> On the Project menu, click Properties.</li> 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: <ul> It is in an invalid format.</li> It represents a certificate that does not exist.</li></ul>

An example of an invalid certificate name is &quot;abcde.&quot;</li> In the Provision Device list, click Privileged Certificate Store, and then click OK.</li> On the Build menu, click Deploy TestProject. You receive the error message that is mentioned in the &quot;Symptoms&quot; section.</li></ol>

<div class="references_section">