473,811 Members | 2,788 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Register VB2005 com-object on 2003-server

Hi There,,,

I've createt a com-class in vb2005, but when i try to registrer it on a
windows 2003 server, with framework 2.0, by using the command regsvcs.exe.
Then i get the follewing error??
An unknown exception occurred during installation:
1: System.TypeLoad Exception - Could not load type
'System.Runtime .CompilerServic
es.RuntimeCompa tibilityAttribu te' from assembly 'mscorlib, Version=2.0.0.0 ,
Cult
ure=neutral, PublicKeyToken= b77a5c561934e08 9'.
Can anyone help me? It'works fine if I install it on XP....

-----------------------The Component------------------------
Imports System.Enterpri seServices

<ComClass(HHCom .ClassId, HHCom.Interface Id, HHCom.EventsId) > _
Public Class HHCom

#Region "COM GUIDs"
' These GUIDs provide the COM identity for this class
' and its COM interfaces. If you change them, existing
' clients will no longer be able to access the class.
Public Const ClassId As String = "d0cf11b9-4d24-4243-82d9-8d94a53089dc"
Public Const InterfaceId As String =
"60968d84-4f62-45ad-87a2-851cd1f3805a"
Public Const EventsId As String = "41e485c2-6538-469b-acd1-38756cfbc336"
#End Region

' A creatable COM class must have a Public Sub New()
' with no parameters, otherwise, the class will not be
' registered in the COM registry and cannot be created
' via CreateObject.
Public Sub New()
MyBase.New()
End Sub
Public Function TransferToDB(By Val xAmount As Integer) As Integer

TransferToDB = 2

End Function

End Class
Nov 21 '05 #1
0 961

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
3711
by: Chris Devol | last post by:
My dial-up connection sometimes hangs up and has to re-connect. The VB2005 installer/downloader apparently doesn't know how to resume when the connection is re-established. It just aborts! I've wasted many hours on this. Can the whole package be obtained at once with a "smart" download manager instead of having to use the VB2005 installer????? --
12
1497
by: Wes Spikes | last post by:
Ok, first things first: I'm a VB classic programmer and am considering upgrading now that I've seen VB2005. .NET1 & 1.5 never seemed to appeal to me, but now I'm considering the 2005. Does anyone have any comments on it from what you've experianced in the downloadable demo? Thanks -Wes
4
3521
by: Kejpa | last post by:
Hi, I know this ng isn't intended for VB2005 Beta, but I still hope for some good advice. Does anyone know of a chart control that works in the VB2005 beta? I've tried some working with VS2002/3 and some from the good ol' VB6 but they don't work in the beta :( Any help appreciated! /Kejpa
3
1883
by: Diarmuid | last post by:
I have the MS book, introducing Microsoft Visual Basic 2005 for Developers. No sample code comes with it.The location according to the book is http://msdn.microsoft.com/vbasic/VB6Migration but I don't see it there either. Anyone know where it is? Also, where would I find the 101 VB Code samples for VB2005? Or, indeed, some links to any VB2005 samples would be appreciated. Thanks Diarmuid
2
1320
by: Jerry Spence1 | last post by:
1. Is there a more suitable, dedicated newsfeed for VB2005 yet? 2. I'm confused as to which version to get. I work for a small company and we will just need VB2005 on my PC. Therefore that tends to suggest the express version, but I write some pretty complicated stuff (including SQLServer transactions, network programming etc) and I am wondering what is missing from the Express version in terms of components, functionality etc. I don't...
10
1950
by: Galen Somerville | last post by:
Going from VB6 (RAD) to VB2005 (SAD) The documentation always shows graphics drawing in a paint event like Private Sub Pictcolor_Paint(ByVal sender As Object, ByVal e _ As System.Windows.Forms.PaintEventArgs) Handles PictColor.Paint End Sub But my VB6 program draws to the picturebox PictColor from many different
5
2350
by: Kevin | last post by:
I have a Windows form with several Frame controls containing Textboxes, Comboboxes, Buttons, etc. The Enabled property on the Frames are set to False and the user can't edit any of the Textboxes until they click a button. When I try this in VB2005 and set the Enabled property to False, everything in the Frame turns gray and is hard to read (relatively speaking). Is there any way to duplicate the functionality of the VB6 Frames?
2
1611
by: Omar Abid | last post by:
Hi, This the best site where you can find Hi members, We are happy to tell that if you search for : jobs with high wage or to debug a program or to find a good source code and to make a good design 4 your apps our group is the best to help u just subscribe to :VB2005 EXPRESS at http://groups.google.com/group/vb2005 OMAR ABID GROUP MANAGER
7
1630
by: TAVOSOFT | last post by:
Hi friends, I am begginer , I wanna to learn VB2005 ,Which are good book for to learn VB2005 of level -begginer-intermediate. Thanks you friends.
1
1673
by: erickwan88 | last post by:
I am doing a final year project for my school and is going to provide for an organization, so I am asking for some help on here. Indeed, I have no idea on how to get the input from my pen driver and use on vb2005 as when I activate the pen driver, it will run its own program itself and when I deactivate it, it become a mouse. Therefore, I need to find out how to use the pen to write words on the vb2005 program instead of being either a...
0
9734
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10401
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10416
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10138
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7676
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5704
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4357
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3881
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3029
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.