I'm having trouble connecting to a remote COM object using Reflection. I've
got a Web Form using C# that needs to connect to a COM object on a remote
server. The snippet of code that follows is what I've got (and found through
all of my research as the necessary code):
Type remoteType = Type.GetTypeFromProgID(r2wprogid, r2wserver) ;
object remoteObject = Activator.CreateInstance(remoteType, true) ;
The call to the Activator.CreateInstance continually causes an exception
stating that the remote server is unavailable. However, if I run the
associated code in my old 'standard ASP' page, there is no problem connecting
and performing my function calls.
Can anyone see something specific that I'm missing that would cause my Web
Form to be unable to connect to the remote server? Any ideas and suggestions
would be appreciated.