Select to view content in your preferred language

COM Exception was unhandled and Class not registered

1343
3
12-13-2010 08:19 PM
sujaygarapati
Deactivated User
hi
i am  new to engine please help me ,When i start debugging its saying COM Exception was unhandled
    i attached JPEG,
0 Kudos
3 Replies
AnnaForrest
Emerging Contributor
Not sure about all the other parameters you've included, I usually just use:

AddItem("ProjectName.CommandName")
0 Kudos
sujaygarapati
Deactivated User
yes but its not working
0 Kudos
sujaygarapati
Deactivated User
i am running my system in 32bit,but when i such for solution i found this:
Please help me

http://resources.arcgis.com/content/kbase?fa=articleShow&d=33000

Error Message
Running an application from Visual Studio 2005 or 2008 on 64-bit computers, displays the following error message:

"Error : Class not registered(Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)"

Cause
When running a Visual Studio application, the default Common Language Runtime (CLR) platform in the Visual Studio is set to Any CPU. This default must be changed on 64-bit computers to compile the assemblies with the 32-bit, x86 compatible CLR.

Solution or Workaround
Change the default Platform Target CPU to allow applications to run on 64-bit machines.

If working in Microsoft Visual Studio:
1. Right-click on the solution in the Visual Studio Solution Explorer and open the Properties window.
2. Click the compile tab: Visual Basic, or the build tab: Visual C#.
3. For Visual Basic, click the Advanced tab.
4. Select x86 as the Target CPU (Visual Basic) or Platform Target (Visual C#).
5. Rebuild the solution.

If working in Microsoft Visual Basic or Visual C# Express Editions:
1. Open the solution in the Express Edition.
2. File > Save All, and save the project to a different location.
3. Using Windows Explorer, browse to the newly saved project, and open the project file (.csproj or .vbproj) with a text editor.
4. Insert the text <PlatformTarget>x86</PlatformTarget> into the 'Debug|AnyCPU' and 'Release|AnyCPU' sections. -show me-

[O-Image]

5. Save the project file.
6. Open the solution in the Express Edition, and build and run the application.
0 Kudos