How to remotely call .NET code from Outlook via VBScript

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.
 
S

Sue Mosher [MVP-Outlook]

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.
 
P

Pavel Rosoi

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?
 
P

Pavel Rosoi

So, there is no way to call a Web service from Outlook without deploying an
assembly on the client-side?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top