Jump to content
Software FX Community

interop


User (Legacy)
 Share

Recommended Posts

I am using CfxIESrv.dll (v. 4.5.15.2) in an asp.net application (VS.Net 03

created the wrapper), and am trying to convert existing, working, asp code

to c#. In the current vbscrip there is a call to

Set AnnotX = Server.CreateObject("AnnotationX.AnnList")

which works fine. But when I write it in c# as

AnnotateX.AnnotationXClass annotX = new AnnotateX.AnnotationXClass(); or

AnnotateX.IAnnList annotX = new AnnotateX.AnnotationXClass();

or

AnnotateX.AnnotationX annotX = new AnnotateX.AnnotationXClass();

I get a run time exception saying

Object reference not set to an instance of an object.

I ran the install file called CfxIESrv.exe as well as

CfxIESrvServicePack.exe, and I made sure C:\Program Files\Common

Files\Software FX Shared\AnnotateX.dll was registered. But still cannot get

by the line above.

Any thoughts, ideas, or help will be greatly appreciated.

Link to comment
Share on other sites

I also tried the suggestions in

Q1381095. Adding annotations in a COM Interop application

and it did not help, I get errors saying that the namespaces do not exist,

yet I did import the dlls into interop using VS.Net

<gv> wrote in message news:iEI90qz$EHA.1140@webserver3.softwarefx.com...

> I am using CfxIESrv.dll (v. 4.5.15.2) in an asp.net application (VS.Net 03

> created the wrapper), and am trying to convert existing, working, asp code

> to c#. In the current vbscrip there is a call to

> Set AnnotX = Server.CreateObject("AnnotationX.AnnList")

> which works fine. But when I write it in c# as

> AnnotateX.AnnotationXClass annotX = new AnnotateX.AnnotationXClass();

or

> AnnotateX.IAnnList annotX = new AnnotateX.AnnotationXClass();

> or

> AnnotateX.AnnotationX annotX = new AnnotateX.AnnotationXClass();

>

> I get a run time exception saying

> Object reference not set to an instance of an object.

> I ran the install file called CfxIESrv.exe as well as

> CfxIESrvServicePack.exe, and I made sure C:\Program Files\Common

> Files\Software FX Shared\AnnotateX.dll was registered. But still cannot

get

> by the line above.

> Any thoughts, ideas, or help will be greatly appreciated.

>

>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...