|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to deploy this .net dll to staging?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 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.) 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... -- Show quoteBest 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: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.) > 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.) 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 -- Show quoteBest 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: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.) > 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.) 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 -- Show quoteBest 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.) > 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 -- Show quoteBest Regards, Kit Kai MVP (SharePoint MVP) SgDotNet Council Member Visit us @ http://www.sgdotnet.org My Blog: http://community.sgdotnet.org/blogs/kitkai "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.) >> > > 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.) it doesn't show...
-- Show quoteBest 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: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.) > 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.) 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? -- Show quoteBest 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: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.) > 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.) Freaking annoying!!! It's because of security issue!!! Now its working...
thanks Luke! -- Show quoteBest 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:$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.) > 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.) 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.) |
|||||||||||||||||||||||