.NET Forum / .NET Framework / New Users / July 2006
How to deploy this .net dll to staging?
|
|
Thread rating:  |
Loke Kit Kai [MVP] - 07 Jun 2006 02:17 GMT 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!
 Signature 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] - 07 Jun 2006 10:48 GMT 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.)
Loke Kit Kai [MVP] - 07 Jun 2006 15:00 GMT 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...
 Signature Best Regards, Kit Kai MVP (SharePoint MVP)
SgDotNet Council Member Visit us @ http://www.sgdotnet.org My Blog: http://community.sgdotnet.org/blogs/kitkai
> Hello, > [quoted text clipped - 13 lines] > (This posting is provided "AS IS", with no warranties, and confers no > rights.) Luke Zhang [MSFT] - 08 Jun 2006 07:55 GMT 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.)
Loke Kit Kai [MVP] - 13 Jun 2006 03:57 GMT 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
 Signature Best Regards, Kit Kai MVP (SharePoint MVP)
SgDotNet Council Member Visit us @ http://www.sgdotnet.org My Blog: http://community.sgdotnet.org/blogs/kitkai
> Hello, > [quoted text clipped - 18 lines] > (This posting is provided "AS IS", with no warranties, and confers no > rights.) Luke Zhang [MSFT] - 14 Jun 2006 04:24 GMT 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.)
Loke Kit Kai [MVP] - 16 Jun 2006 10:45 GMT 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
 Signature Best Regards, Kit Kai MVP (SharePoint MVP)
SgDotNet Council Member Visit us @ http://www.sgdotnet.org My Blog: http://community.sgdotnet.org/blogs/kitkai
> The error may be caused by mixed vbscript and javascript, how about > following code: [quoted text clipped - 32 lines] > (This posting is provided "AS IS", with no warranties, and confers no > rights.) Loke Kit Kai [MVP] - 19 Jun 2006 02:37 GMT 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
 Signature Best Regards, Kit Kai MVP (SharePoint MVP)
SgDotNet Council Member Visit us @ http://www.sgdotnet.org My Blog: http://community.sgdotnet.org/blogs/kitkai
> You are right! I didn't noticed I change back to JavaScript. > [quoted text clipped - 40 lines] >> (This posting is provided "AS IS", with no warranties, and confers no >> rights.) Luke Zhang [MSFT] - 19 Jun 2006 04:07 GMT 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.)
Loke Kit Kai [MVP] - 19 Jun 2006 04:58 GMT it doesn't show...
 Signature Best Regards, Kit Kai MVP (SharePoint MVP)
SgDotNet Council Member Visit us @ http://www.sgdotnet.org My Blog: http://community.sgdotnet.org/blogs/kitkai
> 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 [quoted text clipped - 13 lines] > (This posting is provided "AS IS", with no warranties, and confers no > rights.) Luke Zhang [MSFT] - 21 Jun 2006 07:28 GMT 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.)
Loke Kit Kai [MVP] - 09 Jul 2006 16:40 GMT 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?
 Signature Best Regards, Kit Kai MVP (SharePoint MVP)
SgDotNet Council Member Visit us @ http://www.sgdotnet.org My Blog: http://community.sgdotnet.org/blogs/kitkai
> Can this component ("Commerce.SharePoint.ActiveX.DocumentImaging.1") work > on your SPS page now? If not, what is the error it reported? [quoted text clipped - 33 lines] > (This posting is provided "AS IS", with no warranties, and confers no > rights.) Luke Zhang [MSFT] - 10 Jul 2006 10:23 GMT 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.)
Loke Kit Kai [MVP] - 11 Jul 2006 05:52 GMT Freaking annoying!!! It's because of security issue!!! Now its working... thanks Luke!
 Signature Best Regards, Kit Kai MVP (SharePoint MVP)
SgDotNet Council Member Visit us @ http://www.sgdotnet.org My Blog: http://community.sgdotnet.org/blogs/kitkai
> Hello, > [quoted text clipped - 13 lines] > (This posting is provided "AS IS", with no warranties, and confers no > rights.) Luke Zhang [MSFT] - 12 Jul 2006 08:00 GMT 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.)
Luke Zhang [MSFT] - 12 Jun 2006 10:18 GMT 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.)
Free MagazinesGet these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...
|
|
|