Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
OstroSoft Winsock Component
 OstroSoft Forums : OstroSoft Winsock Component
Subject Topic: Windows Server 2008 Compatibility Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Millsy
Newbie
Newbie


Joined: 13 July 2010
Location: United Kingdom
Online Status: Offline
Posts: 2
Posted: 13 July 2010 at 4:04am | IP Logged Quote Millsy

Hi,

I am currently trying to run the Ostrosoft Winsock Component on Windows Server 2008 R2 Foundation Edition.

I have added the component and it shows up in the toolbox as the object and in my project I have the following references:

AxInterop.MSWinsockLib

AxOSWinsockControl

Interop.MSWinsockLib

Interop.OSWinsckControl

OSWinsckControl

I'm wondering if this version of Windows 2008 is supported?, as when I try to run I get the following error:

An error occurred creating the form. See exception.InnerException for details. The error is: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

Back to Top View Millsy's Profile Search for other posts by Millsy
 
Millsy
Newbie
Newbie


Joined: 13 July 2010
Location: United Kingdom
Online Status: Offline
Posts: 2
Posted: 14 July 2010 at 8:55am | IP Logged Quote Millsy

******* SOLVED ***********

I was trying to run it using a 64-bit operating system and the vb.net application didn't like it, to solve it did the following:

Go to your vb.net project directory and locate the file : <PROJECT NAME>.vbproj and open with notepad.

Locate the following lines:

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <DefineDebug>true</DefineDebug>
    <DefineTrace>true</DefineTrace>
    <OutputPath>bin\Debug\</OutputPath>
    <DocumentationFile>WRX Crane Comms.xml</DocumentationFile>
    <NoWarn>42016,41999,42017,42018,42019,42032,42036,4202 0,42021,42022</NoWarn>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <DefineDebug>false</DefineDebug>
    <DefineTrace>true</DefineTrace>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DocumentationFile>WRX Crane Comms.xml</DocumentationFile>
    <NoWarn>42016,41999,42017,42018,42019,42032,42036,4202 0,42021,42022</NoWarn>
  </PropertyGroup>

Add the following line before </PropertyGroup> on both instances: <PlatformTarget>x86</PlatformTarget> and it should then look like below:

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <DefineDebug>true</DefineDebug>
    <DefineTrace>true</DefineTrace>
    <OutputPath>bin\Debug\</OutputPath>
    <DocumentationFile>WRX Crane Comms.xml</DocumentationFile>
    <NoWarn>42016,41999,42017,42018,42019,42032,42036,4202 0,42021,42022</NoWarn>
    <PlatformTarget>x86</PlatformTarget>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <DefineDebug>false</DefineDebug>
    <DefineTrace>true</DefineTrace>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DocumentationFile>WRX Crane Comms.xml</DocumentationFile>
    <NoWarn>42016,41999,42017,42018,42019,42032,42036,4202 0,42021,42022</NoWarn>
    <PlatformTarget>x86</PlatformTarget>
  </PropertyGroup>

Save and re-run the application...it should now work.

Back to Top View Millsy's Profile Search for other posts by Millsy
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

Powered by Web Wiz Forums version 7.92
Copyright ©2001-2004 Web Wiz Guide