Home All Groups Group Topic Archive Search About

How to deploy this .net dll to staging?

Author
7 Jun 2006 1:17 AM
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

Author
7 Jun 2006 9:48 AM
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.)
Author
7 Jun 2006 2:00 PM
Loke Kit Kai [MVP]
What I did on staging was just use regasm, but sharepoint (actually it is
the javascript generated by sharepoint) couldn't detect the control... I
don't know what i did in dev environment that got it listed in IE add-ons...

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

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

Show quote
"Luke Zhang [MSFT]" <lukez***@online.microsoft.com> wrote in message
news:uuE7hehiGHA.1740@TK2MSFTNGXA01.phx.gbl...
> 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.)
>
Author
8 Jun 2006 6:55 AM
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.)
Author
13 Jun 2006 2:57 AM
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

Show quote
"Luke Zhang [MSFT]" <lukez***@online.microsoft.com> wrote in message
news:RqAGTisiGHA.5596@TK2MSFTNGXA01.phx.gbl...
> 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.)
>
Author
14 Jun 2006 3:24 AM
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.)
Author
16 Jun 2006 9:45 AM
Loke Kit Kai [MVP]
You are right! I didn't noticed I change back to JavaScript.

The error I get now is
Line: 13
Char: 1
ActiveX component can't create object:
Commerce.SharePoint.ActiveX.DocumentImaging

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

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

Show quote
"Luke Zhang [MSFT]" <lukez***@online.microsoft.com> wrote in message
news:8iDRgI2jGHA.764@TK2MSFTNGXA01.phx.gbl...
> 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.)
>
Author
19 Jun 2006 1:37 AM
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

Show quote
"Loke Kit Kai [MVP]" <kitkai@community.nospam> wrote in message
news:eVaKkmSkGHA.4104@TK2MSFTNGP04.phx.gbl...
> You are right! I didn't noticed I change back to JavaScript.
>
> The error I get now is
> Line: 13
> Char: 1
> ActiveX component can't create object:
> Commerce.SharePoint.ActiveX.DocumentImaging
>
> --
> Best Regards,
> Kit Kai
> MVP (SharePoint MVP)
>
> SgDotNet Council Member
> Visit us @ http://www.sgdotnet.org
> My Blog: http://community.sgdotnet.org/blogs/kitkai
>
> "Luke Zhang [MSFT]" <lukez***@online.microsoft.com> wrote in message
> news:8iDRgI2jGHA.764@TK2MSFTNGXA01.phx.gbl...
>> 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.)
>>
>
>
Author
19 Jun 2006 3:07 AM
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.)
Author
19 Jun 2006 3:58 AM
Loke Kit Kai [MVP]
it doesn't show...

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

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

Show quote
"Luke Zhang [MSFT]" <lukez***@online.microsoft.com> wrote in message
news:WGKmI20kGHA.4928@TK2MSFTNGXA01.phx.gbl...
> 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.)
>
Author
21 Jun 2006 6:28 AM
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.)
Author
9 Jul 2006 3:40 PM
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

Show quote
"Luke Zhang [MSFT]" <lukez***@online.microsoft.com> wrote in message
news:ID5r7vPlGHA.4948@TK2MSFTNGXA01.phx.gbl...
> 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.)
>
Author
10 Jul 2006 9:23 AM
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.)
Author
11 Jul 2006 4:52 AM
Loke Kit Kai [MVP]
Freaking annoying!!! It's because of security issue!!! Now its working...
thanks Luke!

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

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

Show quote
"Luke Zhang [MSFT]" <lukez***@online.microsoft.com> wrote in message
news:$ifd3JApGHA.6028@TK2MSFTNGXA01.phx.gbl...
> 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.)
>
Author
12 Jul 2006 7:00 AM
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.)
Author
12 Jun 2006 9:18 AM
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.)

AddThis Social Bookmark Button