How to remotely call .NET code from Outlook via VBScript

  • Thread starter Thread starter Pavel Rosoi
  • Start date Start date
P

Pavel Rosoi

Hello
I am trying to call some code from .NET using a Outlook 2003 custom form.
I create a .net assembly and exposed to com as described in
http://msdn.microsoft.com/en-us/library/ms973802.aspx.
I put the assembly in GAC on my Exchange Server 2003.

When I run this code I have Microsoft VBScript runtime error: ActiveX
component can't create object: 'Demo.Demo'

Function Item_Open()
Dim remoteObj
Set remoteObj = CreateObject("Demo.Demo", "10.200.4.28")
End Function

Does anybody know what I missed? Thank you.
 
Since VBScript behind a form runs locally, any components that script calls also need to be installed and registered locally, not on a server somewhere.

You might want to test in Outlook VBA before worrying about whether it runs in VBScript -- just for the better debugging environment.
 
Thank you for your immediate answer.

I have a requirement to call some server code. Via a VSTO Add-In it’s
achievable, but I am wondering if it possible in another way in order to
minimize the deployment.
Which are my alternatives for an Outlook 2003 development in order to be
able to call some server code and have the easiest deployment to do?
 
So, there is no way to call a Web service from Outlook without deploying an
assembly on the client-side?
 
Back
Top