Results 1 to 5 of 5

Thread: [RESOLVED] Class Not Registered

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2009
    Posts
    99

    Resolved [RESOLVED] Class Not Registered

    ok i got a error while using my app on other System class not registered i search for the solution and this just to register the ocx component i registered the component by using setup factory its working fine on XP but in Window$ 7 i got the same error what is the best way to register the component

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Class Not Registered

    Is this on a 32-bit install of Win7 or 64-bit? Most COM components only come in 32-bit form so they will not work with a 64-bit app. If your project targets the Any CPU platform then it will run in 32-bit mode on a 32-bit system and in 64-bit mode on a 64-bit system. That means that your app will work on a 32-bit system because it can use the 32-bit COM component but on a 64-bit system there's no 64-bit COM component so it will fail. In that case you need to change the target platform to x86 and rebuild. Your app will then run in 32-bit mode on all systems, so it will always find the 32-bit COM component, assuming that you successfully registered it.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 2009
    Posts
    99

    Re: Class Not Registered

    ok if i can use this method to do it or there is any other way ?

    1. Close the project and/or solution
    2. Select Open File from the File menu
    3. Navigate to the project directory, and highlight the project file
    4. Press the Open button, the project file should open in the XML editor
    5. Locate the first <PropertyGroup> section and add the following line:
    <PlatformTarget>x86</PlatformTarget>
    1. Save the project file

  4. #4
    Junior Member
    Join Date
    Sep 2010
    Location
    Colombo
    Posts
    23

    Re: Class Not Registered

    its because the library you are using [i think a 3rd party API or a dll] is not registered on the external machine
    use regsvr32 to register it
    or copy the file to system32, windows

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Dec 2009
    Posts
    99

    Re: Class Not Registered

    ok its resolved

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width