Click here to Skip to main content
16,005,121 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralProblem programmatically downloading file from forms authenticated site Pin
Jim Taylor19-Aug-05 23:27
Jim Taylor19-Aug-05 23:27 
Generalcom+ serviced component Pin
mailmechandru19-Aug-05 21:46
mailmechandru19-Aug-05 21:46 
GeneralRe: com+ serviced component Pin
Rizwan Bashir20-Aug-05 2:14
Rizwan Bashir20-Aug-05 2:14 
GeneralRe: com+ serviced component Pin
mailmechandru22-Aug-05 20:09
mailmechandru22-Aug-05 20:09 
GeneralRe: com+ serviced component Pin
Rizwan Bashir22-Aug-05 21:59
Rizwan Bashir22-Aug-05 21:59 
GeneralRe: com+ serviced component Pin
mailmechandru23-Aug-05 2:44
mailmechandru23-Aug-05 2:44 
GeneralRe: com+ serviced component Pin
Rizwan Bashir23-Aug-05 22:21
Rizwan Bashir23-Aug-05 22:21 
GeneralRe: com+ serviced component Pin
mailmechandru24-Aug-05 21:00
mailmechandru24-Aug-05 21:00 
Now I have created the client application in which i call the following code
in the button click event ...

But an error occurs ...

Microsoft.VisualBasic cannot create ActiveX component. Now why is this happening ????

ServerClass is the serviced component class
chandru is the server name
dosomething is a public method in the component which returns a string.

now i'm testing the client project on the same server machine.i thoght after testing the client on the same server machine, i could then test it on the different machine ..

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim AA As Object
Try
AA = CreateObject("ServerClass", "chandru")
MsgBox(AA.dosomething())
Catch ee As Exception
MsgBox(ee.Source & ee.Message)
End Try
End Sub



Server Component code ....

Imports System.EnterpriseServices
Imports System.Runtime.CompilerServices
Imports System.Reflection

<assembly: applicationname("serverclass")="">
<assembly: assemblykeyfileattribute("d:\netprj\servicedcomponent\serverlibrary\serverclass.snk")="">

Namespace Serverclass
<transaction(transactionoption.required)> _
Public Class ServerClass
Inherits ServicedComponent
<autocomplete()> _
Public Function DoSomething() As String
Return " From a Serviced Component"
End Function
End Class
End Namespace
GeneralRe: com+ serviced component Pin
Rizwan Bashir24-Aug-05 22:06
Rizwan Bashir24-Aug-05 22:06 
GeneralRe: com+ serviced component Pin
mailmechandru25-Aug-05 0:33
mailmechandru25-Aug-05 0:33 
GeneralRe: com+ serviced component Pin
Rizwan Bashir26-Aug-05 0:12
Rizwan Bashir26-Aug-05 0:12 
GeneralRe: com+ serviced component Pin
mailmechandru24-Aug-05 21:05
mailmechandru24-Aug-05 21:05 
GeneralOffice 2003 Style Pin
moe18819-Aug-05 17:00
moe18819-Aug-05 17:00 
GeneralRe: Office 2003 Style Pin
toxcct19-Aug-05 22:55
toxcct19-Aug-05 22:55 
GeneralEasier way to run programs Pin
JoeySmith19-Aug-05 10:16
JoeySmith19-Aug-05 10:16 
GeneralRe: Easier way to run programs Pin
Dave Kreskowiak19-Aug-05 11:08
mveDave Kreskowiak19-Aug-05 11:08 
GeneralRe: Easier way to run programs Pin
JoeySmith19-Aug-05 11:31
JoeySmith19-Aug-05 11:31 
GeneralRe: Easier way to run programs Pin
Dave Kreskowiak19-Aug-05 12:09
mveDave Kreskowiak19-Aug-05 12:09 
GeneralPrinting Data on a form in VB.net Pin
waingee19-Aug-05 9:30
waingee19-Aug-05 9:30 
GeneralRe: Printing Data on a form in VB.net Pin
progload19-Aug-05 9:53
progload19-Aug-05 9:53 
GeneralRe: Printing Data on a form in VB.net Pin
waingee23-Aug-05 9:03
waingee23-Aug-05 9:03 
GeneralInheritance Problem Pin
ACatellani19-Aug-05 3:46
ACatellani19-Aug-05 3:46 
GeneralRe: Inheritance Problem Pin
Steve Pullan21-Aug-05 19:16
Steve Pullan21-Aug-05 19:16 
QuestionWhy the UBound funcion could not be used in another computer? Pin
rushing19-Aug-05 3:02
rushing19-Aug-05 3:02 
AnswerRe: Why the UBound funcion could not be used in another computer? Pin
Dave Kreskowiak19-Aug-05 7:07
mveDave Kreskowiak19-Aug-05 7:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.