How to deploy this .net dll to staging?

  • Thread starter Loke Kit Kai [MVP]
  • Start date
L

Loke Kit Kai [MVP]

Hi, desperate for help here....
I have develop a .net assembly that is supposed to run in IE, to allow
SharePoint to call Microsoft Office Document Imaging up to edit some tiff
files.
On development machine, I manage to get this to work, with the assembly
registered in IE as ActiveX, as shown on the Internet Option > Programs >
Manage Add-ons...
I thought I just use regasm to register the assembly, and deploy it to GAC,
and it would work, but on my staging environment, I couldn't get it to
register and show up in the Manage Add-on list... What am I supposed to do
to get it registered?
Thanks!

--
Best Regards,
Kit Kai
MVP (SharePoint MVP)

SgDotNet Council Member
Visit us @ http://www.sgdotnet.org
My Blog: http://community.sgdotnet.org/blogs/kitkai
 
L

Luke Zhang [MSFT]

Hello,

If you didn't register it in IE add-ons (Only registered with regasm.exe),
would it not work in your target computer?

Regards,

Luke Zhang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
L

Luke Zhang [MSFT]

Hello,

Have the assembly been strong named and placed in the global assembly cache
on the staging? Also, you can test some VBScript code on it like:

set obj=createobject("MyLibrary.MyClass")

Can the object been created in this way?

Regards,

Luke Zhang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
L

Luke Zhang [MSFT]

Hello,

Is there any progress on this issue? Can you try to create the object with
simple VBScript? If even this didn't work, it should a registry issue, and
we may check if it is registered correctly.

Reagrds,

Luke Zhang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
L

Loke Kit Kai [MVP]

This is the html i created to test, just for you to verify..
<html>
<head>
</head>
<body>
<a href="javascript:test()">Javascrpit Test</a>
</body>
</html>

<script language="VBScript">
function test()
{
set obj = createobject("Commerce.SharePoint.ActiveX.DocumentImaging")
alert(obj);
alert("testing");
}
</Script>

IE says error, object expected, line: 1 char: 1


--
Best Regards,
Kit Kai
MVP (SharePoint MVP)

SgDotNet Council Member
Visit us @ http://www.sgdotnet.org
My Blog: http://community.sgdotnet.org/blogs/kitkai
 
L

Luke Zhang [MSFT]

The error may be caused by mixed vbscript and javascript, how about
following code:

<html>
<head>
</head>
<body>
<a href="javascript:test();">Javascrpit Test</a>
</body>
</html>

<script language="VBScript">

sub test()

set obj = createobject("Commerce.SharePoint.ActiveX.DocumentImaging")
msgbox obj

End Sub
</Script>

You may try above HTM page on both of the two computers, can you get same
result?

Regards,

Luke Zhang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
L

Loke Kit Kai [MVP]

Hi Luke,
I seem to be able to create the object if i put
Commerce.SharePoint.ActiveX.DocumentImaging.1

Attached is my code...
[ProgId("Commerce.SharePoint.ActiveX.DocumentImaging.1"),
Guid("1F41AD45-F8C9-45d4-A925-961FB766ED2E"),
ClassInterface(ClassInterfaceType.AutoDual)]

public class DocumentImaging: IObjectSafety, IDocumentImaging






--
Best Regards,
Kit Kai
MVP (SharePoint MVP)

SgDotNet Council Member
Visit us @ http://www.sgdotnet.org
My Blog: http://community.sgdotnet.org/blogs/kitkai
 
L

Luke Zhang [MSFT]

Then, can you find the "Commerce.SharePoint.ActiveX.DocumentImaging.1" in
the add-on list on the target server? It will be added once it is loaded in
IE.

Regards?

Luke Zhang
Microsoft Online Community Lead

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
L

Luke Zhang [MSFT]

Can this component ("Commerce.SharePoint.ActiveX.DocumentImaging.1") work
on your SPS page now? If not, what is the error it reported?

We have try to create the object in a HTML page:

<script language="VBScript">

sub test()

set obj = createobject("Commerce.SharePoint.ActiveX.DocumentImaging")
msgbox obj

End Sub
</Script>

If we change the code like:

set obj = createobject("Commerce.SharePoint.ActiveX.DocumentImaging")
msgbox obj.SomeProperty

SomeProperty should be some static property of
"Commerce.SharePoint.ActiveX.DocumentImaging", can it display correct value
for the property?

Regards,

Luke Zhang
Microsoft Online Community Lead

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
L

Loke Kit Kai [MVP]

Got more info.
the error occurs when ActiveObject(varEditor + ".2");
The error description is Automation server can't create object.

But the test html works fine on the same machine.
This is a sharepoint script, which I can't modify. How do I go about solving
this? what is the missing step in my activex registration?


--
Best Regards,
Kit Kai
MVP (SharePoint MVP)

SgDotNet Council Member
Visit us @ http://www.sgdotnet.org
My Blog: http://community.sgdotnet.org/blogs/kitkai
 
L

Luke Zhang [MSFT]

Hello,

".2" is a version information for the ActiveX component, have you tried
same string (with ".2") in the HTML file and got same result?

Regards,

Luke Zhang
Microsoft Online Community Lead

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
L

Luke Zhang [MSFT]

Thank you for the update. I glad the problem was resolved finally. Thank
you again for sharing the exprience!

Regards,

Luke Zhang
Microsoft Online Community Lead

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

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